FYI, I'm just a newbie with ES, but so... let's start
I currently have a "discovery query", imagine that I have "stores" and each store has "products".
Noticed that each store is geolocalized. So, the idea is to help to discover products around.
My current query is not very advanced, but already score based on:
- Distance between the current location and the store location
- The doc last update time
- a set of "preferred-keywords" associated with the current user
For example, if I like "shoes", I should "mainly" see shoes around but also some other stuff.
Of course, I have a set of "preferred-keywords", each one with another weight!
By example, imagine I have the following "preferred-keywords":
- shoes: 0.5
- food : 0.2
- phone : 0.1
The problem now is that I got
- all the shoes from store A, then store B (A closer than B)
- all the food from store C, then store D (C closer then D)
I know that order is defined by the score, it makes sense, but such result is not pleasant and does not really help to discover!
So, my question is how can I mix all theses 'doc' to avoid such effects (But keeping the score very important).
Is there some tips & tricks, for example, ideas, etc?
PS: I imagine that it should be possible, if I like "blue classic shoes" on Pinterest, they present my related stuffs from all around, the same for Instagram etc...! But how
Thanks for your guidance