How do I selectively switch on/off ordering by
_geoloc on an index?
I need to provide custom sorting of results from text (e.g. search bar) or filtered search (e.g. products from a collection) for multiple user-selected attributes like
popularity (default), geo-distance (asc), price (asc) and price (desc). Now the question being how do I set sortBy _geoloc on a replica index, and switch it off on the main index with custom ranking popularity attribute.
I think one way is to use replica index for my default sortBy settings (i.e. popularity) and make _geoloc ordering as primary index but user selected search trigger. This feels counter-intuitive to me. Also _geoloc ordering of results will have to be shut down on this replica instead now.
Furthermore, I assume I must be simply missing things from the docs. Please guide me. Thanks all