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

Robert Muir commented on LUCENE-5178:
-------------------------------------

I created a patch with getDocsWithField (and the current 
fieldcache.getDocsWithField passing thru to it) for docvalues so you know if a 
value is missing.

It also means e.g. SortedDocValues returns -1 ord for missing like fieldcache. 
so its completely consistent there with FC.

currently simpletext is the only one implementing it: the other codecs return 
MatchAllBits (and thats how the backcompat will work, because they never had 
missing values before).

all tests are passing, but I want to think about strategies for the efficient 
codecs (Memory/Disk) before doing anything.

one other thing i like is, if we do it this way, the codec has the chance to 
represent missing values in a more efficient way than if the users do it 
themselves "on top".

                
> doc values should allow configurable defaults
> ---------------------------------------------
>
>                 Key: LUCENE-5178
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5178
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>
> DocValues should somehow allow a configurable default per-field.
> Possible implementations include setting it on the field in the document or 
> registration of an IndexWriter callback.
> If we don't make the default configurable, then another option is to have 
> DocValues fields keep track of whether a value was indexed for that document 
> or not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to