Currently when using the OR operator, with a facet selected, the facet count for other options is 0. Elasticsearch can supposedly handle multi-select faceting similar to Apache Solr's tagging and excluding.

http://stackoverflow.com/questions/8908325/elasticsearch-excluding-filte...

What I want:

(-) Article
Basic page (5)
Blog entry (3)

What I'm getting:

(-) Article
Basic page (0)
Blog entry (0)

My settings are: OR operator, 0 minimum count, add facet for missing values (other facets only show with this enabled, makes it seem like the OR operator is not working correctly).

Comments

blake.thompson created an issue. See original summary.

blake.thompson’s picture

StatusFileSize
new1.32 KB

I attached a patch that seems to fix my issue with the OR operator and facet count. It's definitely possible it creates other issues with more complicated search setups though.

anrikun’s picture

Title: Facet option count with OR operator » OR operator does not work
Status: Active » Needs review
StatusFileSize
new793 bytes

Actually OR operator does not work at all!
The only necessary setting here should be OR operator, not 0 minimum count, nor facet for missing values.

Here 's a patch that should make it work.

anrikun’s picture

Title: OR operator does not work » Facet OR operator does not work
anrikun’s picture

Version: 7.x-1.0-alpha8 » 7.x-1.x-dev