lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Commit Tag Bot (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4687) Lazily initialize TermsEnum in BloomFilterPostingsFormat
Date Thu, 17 Jan 2013 14:14:13 GMT


Commit Tag Bot commented on LUCENE-4687:

[branch_4x commit] Simon Willnauer

LUCENE-4687: Lazily initialize TermsEnum in BloomFilterPostingsFormat

> Lazily initialize TermsEnum in BloomFilterPostingsFormat
> --------------------------------------------------------
>                 Key: LUCENE-4687
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/codecs
>    Affects Versions: 4.0, 4.1
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>             Fix For: 4.2, 5.0
>         Attachments: LUCENE-4687.patch, LUCENE-4687.patch
> BloomFilteringPostingsFormat initializes its delegate TermsEnum directly inside the Terms#iterator()
call which can be a pretty heavy operation if executed thousands of times. I suspect that
bloom filter postings are mainly used for primary keys etc. which in turn is mostly a seekExact.
Given that, most of the time we don't even need the delegate termsenum since most of the segments
won't contain the key and the bloomfilter will likely return false from seekExact without
consulting the delegate. 

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

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

View raw message