lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baris.ka...@oracle.com
Subject Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0
Date Tue, 31 Jul 2018 20:34:06 GMT
https://stackoverflow.com/questions/50952727/ho-to-use-functionscorequery-with-text-fields

Somebody else was also asking this.

Best regards


On 7/31/18 3:56 PM, baris.kazar@oracle.com wrote:
> The following page says:
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lucene.apache.org_core_6-5F6-5F0_core_org_apache_lucene_document_Field.html-23setBoost-2Dfloat-2D&d=DwICaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=nlG5z5NcNdIbQAiX-BKNeyLlULCbaezrgocEvPhQkl4&m=H84wcaVfvkqP3ETnAfp_RxC-6PuQiiYqEjrzF5ICHd4&s=kU3oMyexzzTU64Pxf535gQpxLP4GtRjMQ4CjmZbhPS4&e=

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