I'd like to use multi-select faceting in Elastic Search.
This feature is described on Lucene's Jira:
I mean following part:
- evaluation of facet values that would dismiss due to other facet filters
(Yonik says Solr calls this "multi-select faceting").(realized by
Let me explain the last point: For the user a facet query
(color==green) AND (shape==circle OR shape==square)
may look like
[ ] (3) red
[x] (5) green
[ ] (7) blue
[x] (9) circle
[ ] (4) line
[x] (2) square
The red/blue/line facet values will display even though the
corresponding documents are not in the result set. Also there is
support for filtered facet values with zero results, so users
understand why they do not get results.
I'm sure that this feature would be very useful.
There is a workaround now - prepare facet requests with complex facet
filters, but it's so difficult sometimes and very ineffective.
Is there a possibility that ES would contain an out-of-the-box solution for
this use case?
I think that the greatest difficulty will be to match facet requests in
query and facet selections (provided probably as filters). Maybe there
should also be a way to convert selected facets into filters to next query