Skip to content

Commit 2128e0f

Browse files
committed
chore: more guides
1 parent 5830719 commit 2128e0f

File tree

3 files changed

+53
-4
lines changed

3 files changed

+53
-4
lines changed

tests/CTS/requests/search/partialUpdateObject.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,28 @@
135135
}
136136
}
137137
}
138+
},
139+
{
140+
"testName": "remove men pant",
141+
"parameters": {
142+
"indexName": "theIndexName",
143+
"objectID": "productId",
144+
"attributesToUpdate": {
145+
"categoryPageId": {
146+
"_operation": "Remove",
147+
"value": "men-clothing-pants"
148+
}
149+
}
150+
},
151+
"request": {
152+
"path": "/1/indexes/theIndexName/uniqueID/partial",
153+
"method": "POST",
154+
"body": {
155+
"categoryPageId": {
156+
"_operation": "Add",
157+
"value": "men-clothing-pants"
158+
}
159+
}
160+
}
138161
}
139162
]

tests/CTS/requests/search/saveObject.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
"parameters": {
44
"indexName": "<YOUR_INDEX_NAME>",
55
"body": {
6-
"objectID": "id",
7-
"test": "val"
6+
"name": "Black T-shirt",
7+
"color": "#000000||black",
8+
"availableIn": "https://source.unsplash.com/100x100/?paris||Paris",
9+
"objectID": "myID"
810
}
911
},
1012
"request": {
1113
"path": "/1/indexes/%3CYOUR_INDEX_NAME%3E",
1214
"method": "POST",
1315
"body": {
14-
"objectID": "id",
15-
"test": "val"
16+
"name": "Black T-shirt",
17+
"color": "#000000||black",
18+
"availableIn": "https://source.unsplash.com/100x100/?paris||Paris",
19+
"objectID": "myID"
1620
}
1721
}
1822
}

tests/CTS/requests/search/setSettings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,28 @@
280280
}
281281
}
282282
},
283+
{
284+
"testName": "attributesForFaceting availableIn",
285+
"parameters": {
286+
"indexName": "<YOUR_INDEX_NAME>",
287+
"indexSettings": {
288+
"attributesForFaceting": [
289+
"color",
290+
"availableIn"
291+
]
292+
}
293+
},
294+
"request": {
295+
"path": "/1/indexes/%3CYOUR_INDEX_NAME%3E/settings",
296+
"method": "PUT",
297+
"body": {
298+
"attributesForFaceting": [
299+
"color",
300+
"availableIn"
301+
]
302+
}
303+
}
304+
},
283305
{
284306
"testName": "api_attributes_for_faceting",
285307
"parameters": {

0 commit comments

Comments
 (0)