lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <elyog...@elyograg.org>
Subject Re: Field with default value and stored=false, will be reset back to the default value in case of updating other fields
Date Thu, 10 Oct 2013 04:09:17 GMT
On 10/9/2013 8:39 PM, deniz wrote:
> Billnbell wrote
>> You have to update the whole record including all fields...
> 
> so what is the point of having atomic updates if i need to update
> everything? 

If you have any regular fields that are not stored, atomic updates will
not work -- unstored field data will be lost.  If you have copyField
destination fields that *are* stored, atomic updates will not work as
expected with those fields.  The wiki spells out the requirements:

http://wiki.apache.org/solr/Atomic_Updates#Caveats_and_Limitations

An atomic update is just a shortcut for "read all existing fields from
the original document, apply the atomic updates, and re-insert the
document, overwriting the original."

Thanks,
Shawn


Mime
View raw message