I'd like to implement more relevant information in the search I'm exposing
to our users, along the lines of showing locations and other nested content
relevant to a users' filters on our 'front page' of search.
So, if I was indexing the locations of stores, I would like to be able to
do the normal "show be stores with locations within 5 miles," and have the
resulting stores' locations returned be ES be only those that match that
filter. Currently, the behavior in the simplest filter case would be to
return all stores that have one location within 5 miles, but includes all
of the stores' locations in the results.
This makes sense as a default, but how do I identify which stores were
applicable to the users' search without post-processing?
I've looked into highlighting, facets, nested documents, and filtered
queries; I've ruled out the latter as being applicable, but beyond that
it's not clear to me what would be the recommended strategy.