You can try playing with boost but in your case function score feature could be more appropriate.
HTH -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 30 déc. 2013 à 06:14, Jayesh Bhoyar <[email protected]> a écrit : > Hi Team, > > Any update on this query? > > Regards, > Jayesh Bhoyar > > > > On Friday, December 27, 2013 3:29:32 PM UTC+5:30, Jayesh Bhoyar wrote: >> HI, >> >> I want to boost the documents based on following conditions: >> So could you please help me out in the query syntax for each of the >> following. >> I am using ES 0.90.7 >> >> 1) Higher boost if Search keyword appears at the start of title. >> Example: If I am searching for "Rum Cake" >> Then Title1 should get higher boosting than Title2 >> >> Title1: "Rum Cakes are always good in Taste" >> Title2: "I Love Rum Cakes" >> >> --------- >> 2) Higher weightage to "frequently asked questions" word in the title and >> Higher weightage to "technical Specifications" word in the title >> >> ----------------- >> 3) >> If the search keyword is the complete title itself than it has higher >> priority than the title which has the search keyword along with some of the >> other words >> Example: If I am searching for "Rum Cake" >> Then Title1 should get higher boosting than Title2 >> >> Title1: "Rum Cakes" >> Title2: "I Love Rum Cakes" >> >> Please let me know if the above 3 rules can be configured in elasticsearch >> or not? >> If Yes, Could you please explain them in form of queries. >> >> Regards, >> Jayesh Bhoyar > > -- > 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/78296a01-c04e-4822-a346-5712f98cb9db%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- 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/B5C62F3C-ED2E-48A5-8B8F-14D20A407AED%40pilato.fr. For more options, visit https://groups.google.com/groups/opt_out.
