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

John Wang commented on LUCENE-1345:
-----------------------------------

Filters by definition (afaik) does not participate in scoring. Since "score 
gathering" is done at the BooleanQuery level, does it mean BooleanQuery would 
need to do instanceof check to see if it is a Filter? 

Or do we always hardcode filter with score 0? This is also dangerous if people 
do augment scores at hitcollector level or score gathering logic changes to 
something not as straightforward as summing.

my two cents.

> Allow Filter as clause to BooleanQuery
> --------------------------------------
>
>                 Key: LUCENE-1345
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1345
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Paul Elschot
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: booleansetperf.txt, DisjunctionDISI.java, 
> DisjunctionDISI.patch, DisjunctionDISI.patch, LUCENE-1345.patch, 
> LUCENE-1345.patch, OpenBitSetIteratorExperiment.java, TestIteratorPerf.java, 
> TestIteratorPerf.java
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to