The configuration of a search result summary for a version of an OpenSearch application.
Example
{
"name": "default",
"meta": [{
"field": "title",
"len": 50,
"element": "em",
"ellipsis": "...",
"snippet": 1
}],
"active": true
}Structure
| Field | Type | Description |
|---|---|---|
| name | String | The name of the search result summary. The only valid value is default. |
| meta[] | Object | The settings of the search result summary. For more information, see meta. |
| active | Boolean | Indicates whether the search result summary is the default one. |
meta
| Field | Type | Description |
|---|---|---|
| field | String | The field for which the search result summary is configured. |
| len | Integer | The length of the search result summary. Valid values: 1 to 300. |
| element | String | The HTML tag used to highlight matched terms in red. |
| ellipsis | String | The connector used to join summary segments. |
| snippet | Integer | The number of segments to include in the search result summary. Valid values: 1 to 5. |
该文章对您有帮助吗?