10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.24k stars 312 forks source link

BUG: Multiple Facets are not working together if OR relationship is used. #3945

Closed musharp-arslan closed 1 month ago

musharp-arslan commented 1 month ago

Describe the bug

I have created 4 Filter Facets on Instant Search and Its relation is OR, If it is AND relationship it eliminates the Filter values of filters. I want to have OR relationship and want to have multiple selection of Facet filters.

Steps to Reproduce

Same as Description

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress and ElasticPress information

No response

Code of Conduct

felipeelia commented 1 month ago

You'll have to double-check your data @musharp-arslan. Elasticsearch aggregations will only return more filter values when it is possible to use an AND condition. For example, if you have Color as a taxonomy, if you select "Blue" it will never display "Red" as an option, because something can't be blue and red at the same time (only an example, of course.)

I recommend you install our debugging add-on and understand what is returned in the "aggregations" section of your Query Result.

github-actions[bot] commented 1 month ago

It has been 3 days since more information was requested from you in this issue and we have not heard back. This issue is now marked as stale and will be closed in 3 days, but if you have more information to add then please comment and the issue will stay open.

github-actions[bot] commented 1 month ago

This issue has been automatically closed because there has been no response to our request for more information in the past 3 days. With only the information that is currently available, we are unable to take further action on this ticket. Please reach out if you have found or find the answer we need so that we can investigate further. When the information is ready, you can re-open this ticket to share it with us.