File tree Expand file tree Collapse file tree 3 files changed +14
-35
lines changed Expand file tree Collapse file tree 3 files changed +14
-35
lines changed Original file line number Diff line number Diff line change @@ -34,29 +34,21 @@ matchLevel:
34
34
description : Whether the whole query string matches or only a part.
35
35
enum : [none, partial, full]
36
36
37
- highlightResultOptionMap :
38
- type : object
39
- description : Surround words that match the query with HTML tags for highlighting.
40
- additionalProperties :
41
- x-additionalPropertiesName : attribute
42
- $ref : ' #/highlightResultOption'
43
-
44
- highlightResultOptionArray :
37
+ highlightResultArray :
45
38
type : array
46
39
description : Surround words that match the query with HTML tags for highlighting.
47
40
items :
48
- $ref : ' #/highlightResultOption'
49
-
50
- highlightResult :
51
- oneOf :
52
- - $ref : ' #/highlightResultMap'
53
- - $ref : ' #/highlightResultOption'
54
- - $ref : ' #/highlightResultOptionMap'
55
- - $ref : ' #/highlightResultOptionArray'
41
+ $ref : ' #/highlightResult'
56
42
57
43
highlightResultMap :
58
44
type : object
59
45
description : Surround words that match the query with HTML tags for highlighting.
60
46
additionalProperties :
61
47
x-additionalPropertiesName : attribute
62
48
$ref : ' #/highlightResult'
49
+
50
+ highlightResult :
51
+ oneOf :
52
+ - $ref : ' #/highlightResultOption'
53
+ - $ref : ' #/highlightResultMap'
54
+ - $ref : ' #/highlightResultArray'
Original file line number Diff line number Diff line change @@ -208,8 +208,3 @@ SearchPagination:
208
208
$ref : ' #/nbPages'
209
209
hitsPerPage :
210
210
$ref : ' ./IndexSettings.yml#/hitsPerPage'
211
- required :
212
- - page
213
- - nbHits
214
- - nbPages
215
- - hitsPerPage
Original file line number Diff line number Diff line change @@ -13,29 +13,21 @@ snippetResultOption:
13
13
x-discriminator-fields :
14
14
- matchLevel
15
15
16
- snippetResultOptionMap :
16
+ snippetResultMap :
17
17
type : object
18
18
description : Snippets that show the context around a matching search query.
19
19
additionalProperties :
20
20
x-additionalPropertiesName : attribute
21
- $ref : ' #/snippetResultOption '
21
+ $ref : ' #/snippetResult '
22
22
23
- snippetResultOptionArray :
23
+ snippetResultArray :
24
24
type : array
25
25
description : Snippets that show the context around a matching search query.
26
26
items :
27
- $ref : ' #/snippetResultOption '
27
+ $ref : ' #/snippetResult '
28
28
29
29
snippetResult :
30
30
oneOf :
31
- - $ref : ' #/snippetResultMap'
32
31
- $ref : ' #/snippetResultOption'
33
- - $ref : ' #/snippetResultOptionMap'
34
- - $ref : ' #/snippetResultOptionArray'
35
-
36
- snippetResultMap :
37
- type : object
38
- description : Snippets that show the context around a matching search query.
39
- additionalProperties :
40
- x-additionalPropertiesName : attribute
41
- $ref : ' #/snippetResult'
32
+ - $ref : ' #/snippetResultMap'
33
+ - $ref : ' #/snippetResultArray'
You can’t perform that action at this time.
0 commit comments