File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
tests/CTS/requests/search Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 534
534
}
535
535
}
536
536
}
537
+ },
538
+ {
539
+ "testName" : " promote single item" ,
540
+ "parameters" : {
541
+ "indexName" : " indexName" ,
542
+ "rule" : {
543
+ "objectID" : " promote-harry-potter-box-set" ,
544
+ "condition" : {
545
+ "pattern" : " Harry Potter" ,
546
+ "anchoring" : " contains"
547
+ },
548
+ "consequence" : {
549
+ "promote" : [{
550
+ "objectID" : " HP-12345" ,
551
+ "position" : 0
552
+ }]
553
+ }
554
+ }
555
+ },
556
+ "request" : {
557
+ "path" : " /1/indexes/indexName/rules/promote-harry-potter-box-set" ,
558
+ "method" : " PUT" ,
559
+ "body" : {
560
+ "objectID" : " promote-harry-potter-box-set" ,
561
+ "condition" : {
562
+ "pattern" : " iPhone" ,
563
+ "anchoring" : " contains"
564
+ },
565
+ "consequence" : {
566
+ "promote" : [
567
+ {
568
+ "objectID" : " iPhone-12345" ,
569
+ "position" : 0
570
+ }
571
+ ]
572
+ }
573
+ }
574
+ }
537
575
}
538
576
]
You can’t perform that action at this time.
0 commit comments