Skip to content

Commit 3c9646f

Browse files
committed
feat: saveRule
1 parent 4abc404 commit 3c9646f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

tests/CTS/requests/search/saveRule.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,5 +534,43 @@
534534
}
535535
}
536536
}
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+
}
537575
}
538576
]

0 commit comments

Comments
 (0)