Does Solr have a partial update like elastic?

Elastic will automatically merge new document with the existing one having
the same id. For example if the new document has a value for field that it
was previously null, it will add the value for that field.


However, based on what I found, partially update in solr could be applied
only by directly defining the updated field sth like below:

curl 'localhost:8983/solr/update?commit=true' -H
'Content-type:application/json' -d '[{"id":"1","price":{"set":100}}]'

I do not want to define the updated field for Solr by sth like "set". I want
Solr to automatically merge documents with same id instead of deleting the
previous document and inserting the new document.

Can Solr do that?



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to