lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (LUCENE-2649) FieldCache should include a BitSet for matching docs
Date Fri, 17 Sep 2010 18:01:44 GMT


Yonik Seeley commented on LUCENE-2649:

bq. Let's try to find some baby-step (even if not clean - we know FieldCache, somehow, needs
to be fixed more generally) for today?

The cheapest option might be:

  public interface Parser extends Serializable {
    public boolean recordMissing();

A better option is to replace FieldCache.Parser in SortField to be FieldCache.EntryCreator.

Oh, and if we're recording all the set bits, it would be really nice to record both
- the number of values set
- the number of unique values encountered

Both should be zero or non-measurable cost (a counter++ that does not produce a data dependency
can be executed in parallel on a free int execution unit)

> FieldCache should include a BitSet for matching docs
> ----------------------------------------------------
>                 Key: LUCENE-2649
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Ryan McKinley
>             Fix For: 4.0
>         Attachments: LUCENE-2649-FieldCacheWithBitSet.patch, LUCENE-2649-FieldCacheWithBitSet.patch,
> The FieldCache returns an array representing the values for each doc.  However there
is no way to know if the doc actually has a value.
> This should be changed to return an object representing the values *and* a BitSet for
all valid docs.

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