Hi,
I am trying to run a search query using multiple facets, and I want the
facet numbers to update in the same way as the site Zappos does. For
example, when I search for Nike in the men's shoe section, I get facets for
Brand and Color.
When I narrow my search by Brand (by selecting 'Nike'), the numbers within
the Brand facet do not change, but the numbers within the Color facet
change to reflect the narrowed search results.
I can widen my search by selecting 'Nike Action', and still no numbers
within the Brand facet are updated, but numbers in the Color facet have
been updated to reflect the additional results.
I can see the same expected results if I select a term within the Color
facet:
I can think of two ways to do this using Elastic Search, and I'm looking
for any guidance/suggestions as to the best way to implement this.
-
Filtered query using fairly complex facet filters within each facet,
including global = true flag. -
Top-level filter (which I understand does not affect the facet results)
with slightly less complex facet filters within each facet
Which of the two options would perform better? Is there a better option
that I'm not thinking of? I can add example JSON if it will help explain my
thoughts.
Thanks!
Bill
PS - Apologies if this hits the group twice. I tried first via email, and
it didn't seem to work.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.