lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (JIRA)" <>
Subject [jira] Updated: (LUCENE-2649) FieldCache should include a BitSet for matching docs
Date Fri, 17 Sep 2010 16:32:34 GMT


Ryan McKinley updated LUCENE-2649:

    Attachment: LUCENE-2649-FieldCacheWithBitSet.patch

I added a static flag to CachedArray:
  public abstract static class CachedArray {
    public static boolean CACHE_VALID_ARRAY_BITS = false;
    public final Bits valid;
    public CachedArray( Bits valid ) {
      this.valid = valid;
and then set it to true in the SolrCore static initalizer.

If folks are ok with this approach, I'll clean up the javadocs etc

> 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