File tree Expand file tree Collapse file tree 1 file changed +70
-0
lines changed
tests/CTS/requests/search Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change 1327
1327
}
1328
1328
}
1329
1329
}
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
+ }
1330
1400
}
1331
1401
]
You can’t perform that action at this time.
0 commit comments