[ 
https://issues.apache.org/jira/browse/LUCENE-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15611724#comment-15611724
 ] 

Adrien Grand commented on LUCENE-5867:
--------------------------------------

bq. Basically, this patch provides the same effect if I would wrap all my 
TermQuery and PhraseQuery with a ConstantScoreQuery and only apply BoostQuery() 
to them?

This is correct.

bq. In addition, when using this similarity, I could also just disable norms 
for all fields I use it on?

This is correct if you do not plan to switch to another similarity later on. 
And in the case that you do not need phrase matching, you could also index with 
IndexOptions.DOCS_ONLY rather than IndexOptions.DOCS_AND_FREQS since freqs are 
not used for scoring either.

> Add BooleanSimilarity
> ---------------------
>
>                 Key: LUCENE-5867
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5867
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Robert Muir
>         Attachments: LUCENE-5867.patch, LUCENE-5867.patch
>
>
> This can be used when the user doesn't want tf/idf scoring for some reason. 
> The idea is that the score is just query_time_boost * index_time_boost, no 
> queryNorm/IDF/TF/lengthNorm...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to