On 9/2/2021 4:02 AM, liangtang wrote:
Hi,
Are there any documents explain how atomic updates <https://solr.apache.org/guide/6_6/updating-parts-of-documents.html#UpdatingPartsofDocuments-AtomicUpdates> work inside Solr? I search the repo <https://github.com/apache/solr>, but didn't find anything related.

Thanks.

The latest version of the doc page you linked is here:

https://solr.apache.org/guide/8_9/updating-parts-of-documents.html#UpdatingPartsofDocuments-AtomicUpdates

The basics of how it works are as follows.  It should be possible to work this out by what is said in the documentation:

Solr queries the index to get existing field values for the document, then applies the atomic changes to that input document, then indexes the new document, which deletes the old one.

If there is data in the index that doesn't get returned by a query (field missing both stored and docValues at the time the document was last indexed), then that data is lost on atomic update.  Which is why there are very specific Field Storage requirements for the feature, outlined at the linked place in the documentation.

Thanks,
Shawn


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

Reply via email to