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