lucene-dev mailing list archives

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


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:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Paul Elschot
>            Priority: Minor
>         Attachments: DisjunctionDISI.patch, DisjunctionDISI.patch, LUCENE-1345.patch,

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:
For additional commands, e-mail:

View raw message