Skip to content

Commit 87a5de7

Browse files
committed
fix(snippets): set settings searchable attributes
1 parent 3070490 commit 87a5de7

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

tests/CTS/requests/search/setSettings.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,5 +1327,75 @@
13271327
}
13281328
}
13291329
}
1330+
},
1331+
{
1332+
"testName": "searchableAttributesWithCustomRankingsAndAttributesForFaceting",
1333+
"isSnippet": true,
1334+
"parameters": {
1335+
"indexName": "theIndexName",
1336+
"indexSettings": {
1337+
"searchableAttributes": [
1338+
"brand",
1339+
"name",
1340+
"categories",
1341+
"unordered(description)"
1342+
],
1343+
"customRanking": [
1344+
"desc(popularity)"
1345+
],
1346+
"attributesForFaceting": [
1347+
"searchable(brand)",
1348+
"type",
1349+
"categories",
1350+
"price"
1351+
]
1352+
}
1353+
},
1354+
"request": {
1355+
"path": "/1/indexes/theIndexName/settings",
1356+
"method": "PUT",
1357+
"body": {
1358+
"searchableAttributes": [
1359+
"brand",
1360+
"name",
1361+
"categories",
1362+
"unordered(description)"
1363+
],
1364+
"customRanking": [
1365+
"desc(popularity)"
1366+
],
1367+
"attributesForFaceting": [
1368+
"searchable(brand)",
1369+
"type",
1370+
"categories",
1371+
"price"
1372+
]
1373+
}
1374+
}
1375+
},
1376+
{
1377+
"testName": "searchableAttributesProductReferenceSuffixes",
1378+
"isSnippet": true,
1379+
"parameters": {
1380+
"indexName": "theIndexName",
1381+
"indexSettings": {
1382+
"searchableAttributes": [
1383+
"name",
1384+
"product_reference",
1385+
"product_reference_suffixes"
1386+
]
1387+
}
1388+
},
1389+
"request": {
1390+
"path": "/1/indexes/theIndexName/settings",
1391+
"method": "PUT",
1392+
"body": {
1393+
"searchableAttributes": [
1394+
"name",
1395+
"product_reference",
1396+
"product_reference_suffixes"
1397+
]
1398+
}
1399+
}
13301400
}
13311401
]

0 commit comments

Comments
 (0)