lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baris.ka...@oracle.com
Subject Deprecated setBoost method
Date Fri, 18 Oct 2019 14:01:38 GMT
Hi,-

i saw this in the Field class docs and i am figuring out the following 
note in the docs:

setBoost(float boost)
Deprecated.
Index-time boosts are deprecated, please index index-time scoring 
factors into a doc value field and combine them with the score at query 
time using eg. FunctionScoreQuery.

I appreciate this note. Is there an example about this? I wish docs 
would give a simple example to further help.

https://lucene.apache.org/core/6_6_0//core/org/apache/lucene/document/Field.html

vs

https://lucene.apache.org/core/7_7_2/core/org/apache/lucene/document/Field.html

Best regards



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message