[ 
https://issues.apache.org/jira/browse/LUCENE-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914185#action_12914185
 ] 

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 methods.

> 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, 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to