Im trying to work out Dynamic filtering.
If I add a filter with
{
"rule": {
"query": "{attr_brand}",
"match": "contains"
},
"filter_by": "attr_brand:={attr_brand}",
"remove_matched_tokens": true
}
It does nothing. In contrast without dynamic.. eg this "works"
{
"rule": {
"query": "something",
"match": "contains"
},
"filter_by": "attr_brand:=something",
"remove_matched_tokens": true
}
What could I be doing wrong? if it matters attr_brand is a dynamic property ie in the schema I have attr_*. This is the fields properties:
{"facet":true,"index":true,"infix":false,"locale":"","name":"attr_brand","optional":true,"sort":false,"stem":false,"stem_dictionary":"","store":true,"type":"string"}