[
https://issues.apache.org/jira/browse/LUCENE-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662766#action_12662766
]
Uwe Schindler commented on LUCENE-1345:
---------------------------------------
Here is a nice idea, how to merge Filters and Queries:
Why not just combine ConstantScoreQuery and the current abstract Filter APIs to
a new Filter class. This would make it possible, to use every filter as a
query. The new abstract filter class would contain all methods of
ConstantScoreQuery and it would even be backwards compatible. If somebody
implements the filters getDocIdSet()/bits() methods he has nothing more to do,
he could just use the filter as a normal query.
For some performance improvements when combining more than one filter in a
BooleanQuery (e.g. anding/oring the iterators, filtering,...) the code of
BooleanQuery could use instanceof.
> 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: [email protected]
For additional commands, e-mail: [email protected]