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

Shai Erera commented on LUCENE-5680:
------------------------------------

I started to implement an {{updateDocValues(Term, Field...)}}, ensuring that 
the field's DVType is not null, and only NUMERIC and BINARY etc. and it worked, 
except for unsetting a value. Since NumericDocValuesField does not let you pass 
null as the value. We can add a ctor which takes a {{Long}}, and allow you to 
do that, but it looks odd I think? I haven't thought it through yet, perhaps 
you have another idea?

> Allow updating multiple DocValues fields atomically
> ---------------------------------------------------
>
>                 Key: LUCENE-5680
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5680
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: core/index
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>         Attachments: LUCENE-5680.patch, LUCENE-5680.patch
>
>
> This has come up on the list (http://markmail.org/message/2wmpvksuwc5t57pg) 
> -- it would be good if we can allow updating several doc-values fields, 
> atomically. It will also improve/simplify our tests, where today we index two 
> fields, e.g. the field itself and a control field. In some multi-threaded 
> tests, since we cannot be sure which updates came through first, we limit the 
> test such that each thread updates a different set of fields, otherwise they 
> will collide and it will be hard to verify the index in the end.
> I was working on a patch and it looks pretty simple to do, will post a patch 
> shortly.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to