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

Uwe Schindler commented on SOLR-11677:
--------------------------------------

Hi Hoss,
I think your idea is a good one. I'd like to try to provide a patch, depending 
on the knowledge about that code part. I was asked several times already about 
that issue (people using docvalues in-place updates for some per-document 
metrics like click counts, but having many non-stored fields on the other side, 
so they rely on in-place-updates).

> Add ability to "enforce" in-place updates
> -----------------------------------------
>
>                 Key: SOLR-11677
>                 URL: https://issues.apache.org/jira/browse/SOLR-11677
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: update
>    Affects Versions: 6.6
>            Reporter: Uwe Schindler
>            Priority: Major
>
> There is currently a problem with in-place updates: Under certain conditions, 
> an in-place update does not work, so Solr internally reindexes the whole 
> document. This is not bad in most cases, unless you have some fields in your 
> documents that are not stored (e.g. large fulltext fields). In that case, the 
> try to do in-place update leads to data loss!
> I'd suggest to add a request parameter in the update to "enforce in-place 
> mode". If not all conditions are met (e.g. field configuration is 
> incompatible, version field does not have all required settings, or user uses 
> other operations than "add" or "increment"), the request should simply fail - 
> to prevent data loss!
> There is also a related issue that may lead to data loss because of the same 
> issue: SOLR-11286. In this case it is completely unexpected because 
> everything is correct from the schema settings, but it still does reindex.
> So there should really be a way to enforce in-place docvalues updates and 
> fail otherwise!
> Another thing to maybe think of: Only prevent "reindexing" updates if 
> documents have some fields that are unstored!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to