Skip to content

Commit feb8c56

Browse files
Gary ConroyGary Conroy
Gary Conroy
authored and
Gary Conroy
committed
fix(specs): Increase optionalWords visibility in docs
1 parent 15691d4 commit feb8c56

File tree

3 files changed

+31
-16
lines changed

3 files changed

+31
-16
lines changed

specs/common/schemas/CustomRequest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
customRequest:
22
summary: Send requests to the Algolia REST API
3-
description: This method allow you to send requests to the Algolia REST API.
3+
description: This method lets you send requests to the Algolia REST API.
44
parameters:
55
- $ref: '#/PathInPath'
66
- $ref: '#/Parameters'

specs/common/schemas/IndexSettings.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,18 +1218,6 @@ booleanString:
12181218
- 'false'
12191219

12201220
optionalWords:
1221-
oneOf:
1222-
- type: string
1223-
- type: 'null'
1224-
- $ref: '#/optionalWordsArray'
1225-
1226-
optionalWordsArray:
1227-
type: array
1228-
items:
1229-
type: string
1230-
example:
1231-
- blue
1232-
- iphone case
12331221
description: |
12341222
Words that should be considered optional when found in the query.
12351223
@@ -1248,6 +1236,19 @@ optionalWordsArray:
12481236
For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words.
12491237
12501238
For more information, see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
1239+
oneOf:
1240+
- type: string
1241+
- type: 'null'
1242+
- $ref: '#/optionalWordsArray'
1243+
1244+
optionalWordsArray:
1245+
type: array
1246+
items:
1247+
type: string
1248+
example:
1249+
- blue
1250+
- iphone case
1251+
description: List of [optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
12511252
default: []
12521253
x-categories:
12531254
- Query strategy

specs/search/paths/advanced/getLogs.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,25 @@ get:
8181
type: string
8282
maxLength: 1000
8383
description: Response body.
84-
example: |
85-
'n{\n \"results\": [\n {\n \"hits\": [\n {\n \"name\": \"Amazon - Fire TV Stick\",\n \"description\": \"Amazon Fire TV Stick connects to your TV's HDMI port. Just grab and go to enjoy Netflix, Prime Instant Video, Hulu Plus, YouTube.com, music, and much more.\",\n \"brand\": \"Amazon\",\n \"categories\": [\n \"TV & Home Theater\",\n \"Streaming Media Players\"\n ],\n \"hierarchicalCategories\": {\n \"lvl0\": \"TV & Home Theater\",\n \"lvl1\": \"TV & Home Theater > Streaming Media Players\"\n },\n \"type\": \"Streaming media plyr\",\n \"price\": 39.99,\n \"price_range\": \"1 - 50\",\n \"image\": \"https:\/\/cdn-demo.algolia.com\/bestbuy\/9999119_sb.jpg\",\n \"url\": \"http:\/\/www.bestbuy.com\/site\/amazon-fire-tv-stick\/9999119.p?id=1219460752591&skuId=9999119&cmp=RMX&ky=1uWSHMdQqBeVJB9cXgEke60s5EjfS6M1W\",\n \"free_shipping\": false,\n \"popularity\": 9843,\n \"rating\": 4,\n \"objectID\": \"9999119\"\n'
84+
example: >
85+
'n{\n "results": [\n {\n "hits": [\n
86+
{\n "name": "Amazon - Fire TV Stick",\n
87+
"description": "Amazon Fire TV Stick connects to
88+
your TV's HDMI port. Just grab and go to enjoy
89+
Netflix, Prime Instant Video, Hulu Plus,
90+
YouTube.com, music, and much more.",\n
91+
"brand": "Amazon",\n "categories":
92+
[\n "TV & Home Theater",\n "Streaming
93+
Media Players"\n ],\n
94+
"hierarchicalCategories": {\n "lvl0": "TV
95+
& Home Theater",\n "lvl1": "TV & Home
96+
Theater > Streaming Media Players"\n },\n
97+
"type": "Streaming media player",\n "price":
98+
39.99,\n "price_range": "1
99+
}\n ]\n }\n ]\n}'
86100
url:
87101
type: string
88-
format: uri
102+
format: uri-reference
89103
description: URL of the API endpoint.
90104
example: /1/indexes
91105
ip:

0 commit comments

Comments
 (0)