|
9 | 9 | objectID:
|
10 | 10 | $ref: '../../../common/parameters.yml#/objectID'
|
11 | 11 | _highlightResult:
|
12 |
| - $ref: '#/highlightResultMap' |
| 12 | + $ref: '../../../common/schemas/HighlightResult.yml#/highlightResultMap' |
13 | 13 | _snippetResult:
|
14 |
| - $ref: '#/snippetResultMap' |
| 14 | + $ref: '../../../common/schemas/SnippetResult.yml#/snippetResultMap' |
15 | 15 | _rankingInfo:
|
16 | 16 | $ref: '#/rankingInfo'
|
17 | 17 | _distinctSeqID:
|
|
21 | 21 | _distinctSeqID:
|
22 | 22 | type: integer
|
23 | 23 |
|
24 |
| -highlightResultOption: |
25 |
| - type: object |
26 |
| - description: Show highlighted section and words matched on a query. |
27 |
| - additionalProperties: false |
28 |
| - properties: |
29 |
| - value: |
30 |
| - $ref: '#/highlightedValue' |
31 |
| - matchLevel: |
32 |
| - $ref: '#/matchLevel' |
33 |
| - matchedWords: |
34 |
| - type: array |
35 |
| - description: List of words from the query that matched the object. |
36 |
| - example: ['action'] |
37 |
| - items: |
38 |
| - type: string |
39 |
| - fullyHighlighted: |
40 |
| - type: boolean |
41 |
| - description: Whether the entire attribute value is highlighted. |
42 |
| - required: |
43 |
| - - value |
44 |
| - - matchLevel |
45 |
| - - matchedWords |
46 |
| - |
47 |
| -highlightResult: |
48 |
| - oneOf: |
49 |
| - - $ref: '#/highlightResultOption' |
50 |
| - - type: array |
51 |
| - items: |
52 |
| - $ref: '#/highlightResultOption' |
53 |
| - |
54 |
| -highlightResultMap: |
55 |
| - type: object |
56 |
| - description: Show highlighted section and words matched on a query. |
57 |
| - additionalProperties: |
58 |
| - $ref: '#/highlightResult' |
59 |
| - |
60 |
| -snippetResultOption: |
61 |
| - type: object |
62 |
| - description: Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty. |
63 |
| - additionalProperties: false |
64 |
| - properties: |
65 |
| - value: |
66 |
| - $ref: '#/highlightedValue' |
67 |
| - matchLevel: |
68 |
| - $ref: '#/matchLevel' |
69 |
| - required: |
70 |
| - - value |
71 |
| - - matchLevel |
72 |
| - |
73 |
| -snippetResult: |
74 |
| - oneOf: |
75 |
| - - $ref: '#/snippetResultOption' |
76 |
| - - type: array |
77 |
| - items: |
78 |
| - $ref: '#/snippetResultOption' |
79 |
| - |
80 |
| -snippetResultMap: |
81 |
| - type: object |
82 |
| - description: Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty. |
83 |
| - additionalProperties: |
84 |
| - $ref: '#/snippetResult' |
85 |
| - |
86 | 24 | rankingInfo:
|
87 | 25 | type: object
|
88 | 26 | additionalProperties: false
|
@@ -134,16 +72,6 @@ rankingInfo:
|
134 | 72 | - filters
|
135 | 73 | - userScore
|
136 | 74 |
|
137 |
| -highlightedValue: |
138 |
| - type: string |
139 |
| - description: Markup text with `facetQuery` matches highlighted. |
140 |
| - example: '<em>George</em> <em>Clo</em>oney' |
141 |
| - |
142 |
| -matchLevel: |
143 |
| - type: string |
144 |
| - description: Indicates how well the attribute matched the search query. |
145 |
| - enum: [none, partial, full] |
146 |
| - |
147 | 75 | matchedGeoLocation:
|
148 | 76 | type: object
|
149 | 77 | properties:
|
|
0 commit comments