lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Ericson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-798) Factory for RangeFilters that caches sections of ranges to reduce disk reads
Date Wed, 04 Apr 2007 20:52:32 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486768
] 

Matt Ericson commented on LUCENE-798:
-------------------------------------

I am working on a patch that will use the Field cache to do range queries.

The bit sets will be proxies to the field cache. This way the data is stored in the filed
cache and if you change the limits of your range it will just need a new proxy BitSet 

> Factory for RangeFilters that caches sections of ranges to reduce disk reads
> ----------------------------------------------------------------------------
>
>                 Key: LUCENE-798
>                 URL: https://issues.apache.org/jira/browse/LUCENE-798
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Search
>            Reporter: Mark Harwood
>         Attachments: CachedRangesFilterFactory.java
>
>
> RangeFilters can be cached using CachingWrapperFilter but are only re-used if a user
happens to use *exactly* the same upper/lower bounds.
> This class demonstrates a caching approach where *sections* of ranges are cached as bitsets
and these are re-used/combined to construct large range filters if they fall within the required
range. This can improve the "cache hit" ratio and avoid going to disk to read large lists
of Doc ids from TermDocs.
> This class needs some more work to add thread safety but I'm making it available to gather
feedback on the design at this early stage before making robust.

-- 
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