Hi, You can boost an individual query.
For example
Assuming your query to be a boolean query containing a term for the creator
BooleanQuery query = new BooleanQuery();
.
(any other part of your query)
.
TermQuery termQ = new TermQuery(new Term("creator", user));
termQ.setBoost(3.0f); //boost th
Hello,
I am indexing creator information for each document. When I query with
given User, I want documents created by the given user should score
higher. How can I do this?
Thanks,
Rajesh
ected. Can anyone advise me on this? How the field is
selected,
and why not all the field is used in the calculation?
Thanks
--
View this message in context:
http://www.nabble.com/Score-Boosting-tp19043489p19043489.html
Sent from the Lucene - Java Users mailing list archive at Nabbl
one of the field
will be selected. Can anyone advise me on this? How the field is selected,
and why not all the field is used in the calculation?
Thanks
--
View this message in context:
http://www.nabble.com/Score-Boosting-tp19043489p19043489.html
Sent from the Lucene - Java Users mailing list