lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0
Date Tue, 31 Jul 2018 22:19:18 GMT
Does this example help?
https://lucene.apache.org/core/7_4_0/expressions/org/apache/lucene/expressions/Expression.html


On Tue, Jul 31, 2018 at 3:56 PM,  <baris.kazar@oracle.com> wrote:
> The following page says:
>
> http://lucene.apache.org/core/6_6_0/core/org/apache/lucene/document/Field.html#setBoost-float-
>
> setBoost
> @Deprecated
> public void 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.
> Sets the boost factor on this field.
> Throws:
> IllegalArgumentException - if this field is not indexed, or if it omits
> norms.
> See Also:
> boost()
>
>
> Any example on how to use FunctionScoreQuery? How will this affect the
> IndexWriter?
>
> Best regards
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

---------------------------------------------------------------------
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