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

Uwe Schindler commented on LUCENE-2649:
---------------------------------------

bq. What you can not do is as for a IntValues using: 
FieldCache.DEFAULT_INT_PARSER, then switch to 
FieldCache.NUMERIC_UTILS_INT_PARSER for the same field.

Just to note, my previous FieldCache impl did this correctly. When you 
requested a FieldCache without parser it created the parser=null entry and 
additionally the real used parser as two separate entries. When you later use 
directly (instead of automatics) passing in the trie parser, it returns the 
additionally created entry in the cache. If you request using another parser, 
it creates a new entry. So i was (theoretically) possible to parse the same 
field as int or long and additionally as trie or plain number (but the latter 
throwed of couse some NFE), so not really useful.

> 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
>          Components: Search
>            Reporter: Ryan McKinley
>            Assignee: 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, 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