|
1
|
type: object |
|
2
|
description: How the matched terms are highlighted in a search result's hits. |
|
3
|
x-schemaName: SearchHighlightOptions |
|
4
|
required: |
|
5
|
- fields |
|
6
|
properties: |
|
7
|
fields: |
|
8
|
type: array |
|
9
|
description: The dotted paths of the fields to highlight. |
|
10
|
items: |
|
11
|
type: string |
|
12
|
title: fields |
|
13
|
description: A field's dotted path. |
|
14
|
pre_tag: |
|
15
|
type: string |
|
16
|
title: pre_tag |
|
17
|
description: The tag inserted before a matched term. Defaults to `<mark>`. |
|
18
|
post_tag: |
|
19
|
type: string |
|
20
|
title: post_tag |
|
21
|
description: The tag inserted after a matched term. Defaults to `</mark>`. |
|
22
|
snippet: |
|
23
|
oneOf: |
|
24
|
- type: boolean |
|
25
|
title: snippet |
|
26
|
description: >- |
|
27
|
Whether to crop a fragment around the match rather than returning the |
|
28
|
whole field, optionally specifying the fragment's length. |
|
29
|
- type: object |
|
30
|
description: >- |
|
31
|
Whether to crop a fragment around the match rather than returning the |
|
32
|
whole field, optionally specifying the fragment's length. |
|
33
|
required: |
|
34
|
- length |
|
35
|
properties: |
|
36
|
length: |
|
37
|
type: number |
|
38
|
title: length |
|
39
|
description: The length of the cropped fragment. |