Putting new rules will replace all existing rules associated with the specified
filter_value 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/refined_filters/[filter_name]/[filter_value]?key=[your index key]§ion=[section]
|filter_name||The name of facet you'd like to add searchandizing rules for.|
|filter_value||The value of that facet 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 a dictionary of the various rule specs as show in the above JSON example.|
|active||No||Your slot rule 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.|