lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] Commented: (LUCENE-2649) FieldCache should include a BitSet for matching docs
Date Thu, 23 Sep 2010 19:35:34 GMT


Uwe Schindler commented on LUCENE-2649:

Yonik: I was expecting this answer...

The reason is that my current contact (it's also your's) has exactly that problem also with
norms (but also FC), that they want to lazily load values for sorting/norms (see the very
old issue LUCENE-505). At least we should have a TopFieldDocCollector that can alternatively
to native arrays also use a ValueSource-like aproach with getter methods - so you could sort
against a CSF. Even if it is 20% slower, in some cases thats the only way to get a suitable
search experience. Not always speed is the most important thing, sometimes also space requirements
or warmup times. I would have no problem with providing both and chosing the implementation
that is most speed-effective. So if no native arrays are provided by the FieldCache use getter

> 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,
LUCENE-2649-FieldCacheWithBitSet.patch, 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