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

Michael McCandless commented on LUCENE-2649:
--------------------------------------------

bq. My motivation is for supporting the supportMissingLast feature in solr 
sorting (that could now be pushed to lucene).

{quote}
If folks think that being able to tell a real "0" from a missing value is not 
useful for Lucene, we
could extend Ryan's CacheConfig to include a factory method that creates / 
populates ByteValues, IntValues, etc.
Then all the bitset stuff could be kept in Solr only.  I'm sensitive about 
pushing stuff into Lucene that is *only* useful for Solr.
{quote}

I'm very much +1 for making this (exposing thea valid bitset) possible
in Lucene.

Users have asked over time how they can tell if a given doc has a field value.

And being able to distinguish missing values, eg to sort them last, or
to do something else, is useful.  Once we do this we should also
[eventually] move "sort missing last" capability into Lucene's
comparators.


> 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