lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (LUCENE-330) [PATCH] Use filter bits for next() and skipTo() in FilteredQuery
Date Sun, 05 Mar 2006 15:05:42 GMT
    [ ] 

Yonik Seeley commented on LUCENE-330:

There are multiple related issues here
 - introduction and use of SkipFilter, which returns DocNrSkipper instead of a BitSet.
 - changes to,filter) to create and use a FilteredQuery

Without taking the full plunge into DocNrSkippers yet, the applicable patch to keep FilteredQuery
matching filtered documents would be

> There is a comment in some of your code that this doesn't work with BooleanQuery though
The patch I referenced should work.  Paul is refering to BooleanScorer which doesn't implement
skipTo, as opposed to BooleanScorer2, which does.

*If* the 1.4 BooleanScorer isn't used, then FilteredQueryPatch1.txt  can be made more efficient
by using scorer.skipTo() in conjunction with bitset.nextSetBit() (per Paul's comments).

> [PATCH] Use filter bits for next() and skipTo() in FilteredQuery
> ----------------------------------------------------------------
>          Key: LUCENE-330
>          URL:
>      Project: Lucene - Java
>         Type: Improvement
>   Components: Search
>     Versions: CVS Nightly - Specify date in submission
>  Environment: Operating System: other
> Platform: Other
>     Reporter: paul.elschot
>     Assignee: Lucene Developers
>     Priority: Minor
>  Attachments:,,,,
FilteredQueryPatch1.txt, IndexSearcherPatch2.txt,,
> This improves performance of FilteredQuery by not calling score() 
> on documents that do not pass the filter. 
> This passes the current tests for FilteredQuery, but these tests 
> have not been adapted/extended.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message