Is it possible to setup ES facets like Endeca's? I want to be able setup by
facet if it is a multi-select or and an and. In the case of Endeca you can
setup a facet, dimension, so that it is multi-select and that the counts
for the facet take in account just query term not the filters. I know that
the filter element allows you to setup facet navigation ignoring what
filters are set and filtered queries allow you to have facet counts based
off the filter applied. I want to mix and match these.
For example:
Language:
English (12)
French (10)
Spain (5)
I apply the English filter and get a result of 12 records and the facet
would look like
Language:
French (10)
Spain (5)
I then apply French as well and get 22 records cause it is a or filter
With other facets on the page I want the counts to be limited by the
filters applied say a facet Gender. Is this possible in ElasticSearch?
Each facet can take a different filter (facet_filter) than the one the
query uses. You can facet on the Language field while adding the current
select languages as an exclude term. With the Gender facet, you can just
apply the same filter from the query.
On Wed, Aug 21, 2013 at 4:13 PM, Travis Chase tchase@kyru.us wrote:
Is it possible to setup ES facets like Endeca's? I want to be able setup
by facet if it is a multi-select or and an and. In the case of Endeca you
can setup a facet, dimension, so that it is multi-select and that the
counts for the facet take in account just query term not the filters. I
know that the filter element allows you to setup facet navigation ignoring
what filters are set and filtered queries allow you to have facet counts
based off the filter applied. I want to mix and match these.
For example:
Language:
English (12)
French (10)
Spain (5)
I apply the English filter and get a result of 12 records and the facet
would look like
Language:
French (10)
Spain (5)
I then apply French as well and get 22 records cause it is a or filter
With other facets on the page I want the counts to be limited by the
filters applied say a facet Gender. Is this possible in Elasticsearch?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.