So we've been working with ElasticSearch and Geo Locations in Rails using
Tire, and have run into an issue.
We have locations, those locations have several attributes that can be
searched on including tags. Tags are also facets. Currently all the search
attributes except location are included in the Tire search using a "must"
query. The location part of the search is done via a filter. Right now the
search results return an attribute, current_tags, for the list of facets
scoped by the current "must" query.
The problem is that current_tags is not scoped by the location because it's
I can see two possible solutions. 1. move the location filter into the
"must" query. 2. scope the current_tags by the filter. Either of these
would work if either of these were supported. Unfortunately I can't find
anything on Elastic for how to support either of these options.
So if anyone knows how to get a list of facets out of ElasticSearch that
have been scoped by a geo-aware search, I'd really appreciate a quick
explanation on how to do it.
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 email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.