[
https://issues.apache.org/jira/browse/LUCENE-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910618#action_12910618
]
Ryan McKinley commented on LUCENE-2649:
---------------------------------------
This is a band-aid, but we could consider adding something like:
{code:java}
public void setCacheValidBitsForFields( Set<String> names );
{code}
on FieldCache, then checking if the field is in that set before making the
BitSet
When solr reads the schema, it could look for any fields have sortMissingLast
and then call:
{code:java}
FieldCache.DEFAULT.setCacheValidBitsForFields()
{code}
The factory idea also sounds good, but i don't see how would work without big
big changes
> FieldCache should include a BitSet for matching docs
> ----------------------------------------------------
>
> Key: LUCENE-2649
> URL: https://issues.apache.org/jira/browse/LUCENE-2649
> 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: [email protected]
For additional commands, e-mail: [email protected]