Facet values as query criteria

Hello.

I think that facets are mainly useful in creating systems similar to
e-shops.
Search returns products which are shown on the page, and facets represent
criteria that can be used to restrict products that are shown.
So it would be great to:

  1. Easily convert selected facet value (or values) into query/filters
    provided to next search operation
  2. Count facet values of a facet ignoring if any of its values was selected
    or not (like on most of e-shops - checking any facet value recounts other
    facets excluding modified one)

Is there an easy way to do this using ES?

Regards
Wojciech Durczyński

  1. How this is done depends on the client you are using.
  2. Elasticsearch Platform — Find real-time answers at scale | Elastic

Thanks,
Matt Weber

2011/9/9 Wojciech Durczyński wojciech.durczynski@comarch.com

Hello.

I think that facets are mainly useful in creating systems similar to
e-shops.
Search returns products which are shown on the page, and facets represent
criteria that can be used to restrict products that are shown.
So it would be great to:

  1. Easily convert selected facet value (or values) into query/filters
    provided to next search operation
  2. Count facet values of a facet ignoring if any of its values was selected
    or not (like on most of e-shops - checking any facet value recounts other
    facets excluding modified one)

Is there an easy way to do this using ES?

Regards
Wojciech Durczyński

You mean the multi select option I think.

Have a look:

which is really powerful but not that easy compared to Solr. Here is
the discussion:

BTW: I implemented this on http://jetsli.de/tweets (facet/filters
visible if logged in) sourcecode @github

Regards,
Peter.