Boosting phrase queries in dis max query parser


(Sanjeev Kumar) #1

http://solr.pl/en/2010/07/14/solr-and-phrasequery-phrase-bonus-in-query-stage/

In solr when using dismax query you can boost phrase query.

QueryStringQueryBuilder queryString = QueryBuilders
				.queryString("search text");
queryString.field("title", 10).field("content", 10);
queryString.useDisMax(true);

While issuing the above query, I want to boost phrase query, where documents where title contains "search text" phrase or content contains "search text" phrase should come on top.


(system) #2