It appears I've answered my own question unless someone has a better suggestion in terms of efficiency and logic. The function_score Query (http://www.elastic.co/guide/en/elasticsearch/guide/master/function-score-query.html) will allow for boosting specific documents based on the query. Several different predefined methods or I can create my own custom script.
On Saturday, March 21, 2015 at 10:38:54 AM UTC-7, Zelfapp wrote: > > For specific queries I want to be able to manually set the sort of some > search results. Without going into the reason why, how do I implement this? > I'm not talking about boosting, I'm talking about manually setting the sort > position based on specific query. > > E.g. if users searches for "Green Military Shirts" I want to set product X > to position 1, product J to position 2. All other search results would > sorted as usual. > -- 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 protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/fb45a9a8-076a-4d9c-af62-887ce3508382%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
