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

Shai Erera commented on SOLR-5944:
----------------------------------

I'll admit that I haven't dug through all the comments on the issue, and I'm 
not very familiar w/ the internals of Solr document updates, but at least from 
a Lucene perspective, numeric DV updates occur in order with any other document 
updates. So, simplifying on purpose, if Solr's tlog already handles document 
updates in order, and it will now list the updates like so:

{noformat}
DOC_UPDATE: { "id: "doc1", "fields": {field1, field2 ....}}
DOC_UPDATE: { "id: "doc2", "fields": {field1, field2 ....}}
NUMERIC_UPDATE: { "term" : { "field" : "id", "value" : "doc1"}, "dvField": 123 }
DOC_UPDATE: { "id: "doc1", "fields": {field1, field2 ....}}
{noformat}

What would cause the second update to 'doc1' apply before the NUMERIC update of 
'dvField' of 'doc1'? Also, if the numeric update affects a group of documents, 
this should be OK still (from a Lucene standpoint).

Or ... is the problem you're discussing a numeric update can affect a group of 
documents that are located on different shards? If so, doesn't Solr already 
protect against that, versioning each change?

If I'm missing something fundamental in how Solr works, then I'd be happy go 
learn/read about it. I wanted to give the perspective of numeric DV updates 
from a Lucene standpoint.

> Support updates of numeric DocValues
> ------------------------------------
>
>                 Key: SOLR-5944
>                 URL: https://issues.apache.org/jira/browse/SOLR-5944
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Ishan Chattopadhyaya
>            Assignee: Shalin Shekhar Mangar
>         Attachments: SOLR-5944.patch, SOLR-5944.patch, SOLR-5944.patch, 
> SOLR-5944.patch, SOLR-5944.patch, SOLR-5944.patch, SOLR-5944.patch, 
> SOLR-5944.patch, SOLR-5944.patch, SOLR-5944.patch, SOLR-5944.patch, 
> SOLR-5944.patch
>
>
> LUCENE-5189 introduced support for updates to numeric docvalues. It would be 
> really nice to have Solr support this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to