Add hook for additional filters
-
I am using this to search products, and I want to be able to use the product_visibility taxonomy to control what products show up in search.
I think I had hardcoded something to modify the filterquery a while back and forgot about it.
I have included this taxonomy in the indexed fields, but there doesn’t seem to be any way to add such a filter to the search query.
To get the desired effect, I have added the following to actions/cloud-search-action-search.php:275
$search_args['filterQuery']= '(and ' . $search_args['filterQuery'] . "(not ct_product_visibility:'exclude-from-search'))";
Adding a filter hook to this element of the array would be very useful.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add hook for additional filters’ is closed to new replies.