Putting new rules will replace all existing rules associated with the specified
collection_id if there are any.
The above command returns a 204 Success response on success. For simplicity sake, a 204 Success response will be returned even if the item already exists.
PUT https://ac.cnstrc.com/v1/refined_collections/[collection_id]?key=[your index key]§ion=[section]
|collection_id||The id of the collection you'd like to add searchandizing rules for.|
|section||Yes||The index section you'd like to retrieve results from (typically |
|slot_rules||With slot rules, you can add an item to recall and pin it to a particular position. Provide |
|boost_rules||Boost or bury the score (and in turn, ranking) of matching items.|
|whitelist_rule||Restrict recall to only the matching items.|
|blacklist_rules||Remove matching items from recall.|
|rule||Yes||Rules can accept an object of the various rule specs as shown in the above JSON example.|
|active||No||Your searchandizing rules can be defined but set to inactive if you wish by setting the |
|start_time||No||Start time when the searchandizing rule should be enabled.|
|end_time||No||End time when the searchandizing rule should be disabled.|