You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@solr.apache.org by liangtang <lt...@163.com> on 2021/09/02 10:02:34 UTC

how solr at

Hi,
Are there any documents explain how atomic updates work inside Solr?
I search the repo, but didn't find anything related.


Thanks.

Re: how solr at

Posted by Shawn Heisey <ap...@elyograg.org>.
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: dev-unsubscribe@solr.apache.org
For additional commands, e-mail: dev-help@solr.apache.org