We have a search page with hits which either have a _geoloc or not. What we want is for results to be filtered by location if the hit has a location, and if the hit doesn’t, then it should still be in the results. I found that this didn’t seem to be possible, so I split our index into two indices: one with locations, one without, and then did only location filtering on one. However maintaining two indices is proving to be problematic, as the results are merged together.
Having multiple indices creates problems such as:
- merging results according to ranking
- pagination across indices
I’m looking for a better solution as we build a better search experience, and any advice would be appreciated.