lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Elschot (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1345) Allow Filter as clause to BooleanQuery
Date Mon, 28 Jul 2008 22:26:32 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul Elschot updated LUCENE-1345:
---------------------------------

    Attachment: LUCENE-1345.patch

Patch of 20080729: all tests pass, but no tests cases for filter clauses yet.

Added BooleanFilterClause class, usable as argument to BooleanQuery.add().

API change: made ReqExclScorer package private, added an arg to the constructor.

Removed the queueSize variable in DisjunctionSumScorer and in the added DisjunctionDISI. Left
the doc caching in ScorerDocQueue and in the added DisiDocQueue.

It might be possible to subclass DisjunctionSumScorer from DisjunctionDISI,
and to subclass ScorerDocQueue from DisiDocQueue, I have not checked that.

Since ConjunctionScorer can handle DocIdSetIterators with this patch, it should improve the
speed for Filters when they are added to a BooleanQuery instead of being used as through the
current search API.

Eks, thanks for DisjunctionDISI, I took it a bit further.


> 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
>         Attachments: DisjunctionDISI.patch, DisjunctionDISI.patch, LUCENE-1345.patch,
LUCENE-1345.patch, 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message