We applied boosting and phrase boosting as below:
https://localhost:8983/solr/app_index/select?bq=(Title:"userinput")^20+
+(Desc:"userinput")^10&pf=(Title:"userinput")^20+(Desc:"userinput")^10
&q=(bodycontent_t:(userinput))&defType=edismax&tie=0.01
Above query is working fine in below cases:
User Input: Solr Query
User Input: Query Analysis
However, if we type 3 or more terms as below, its not bringing the expected results as mentioned below:
Expected result is that exact match at first following by partial phrases
User input: Solr Query Analysis
Expected Results in below order:
Solr query analysis is the best practice
solr query is good for analysis
query analysis in solr is good
solr is key player in search world
query your requirements
analysis always gives better results
Got some useful links about Shingle filter which may suits this requirement.
http://archive.apache.org/dist/lucene/solr/ref-guide/apache-solr-ref-guide-5.3.pdf#page=112&zoom=auto,-187,475
Is Shingles suits the above requirement? If Yes, please guide how to apply boosting for the shingles or any better way to achieve exact phrase at first then by partial phrases with boosting?
Please guide here. Appreciate your help.