Solr: How to update only selected field using curl or command? Solr: How to update only selected field using curl or command? curl curl

Solr: How to update only selected field using curl or command?


Solr supports simple atomic updates (also called partial updates) to single documents via field modifiers such as add and set.

Optimistic concurrency control is another method of atomically updating documents.

ModifiersSolr supports several modifiers that atomically update values of a document.

set – set or replace a particular value, or remove the value if null is specified as the new value

Example :

curl http://10.224.143.172:8983/solr/knowledge_combined/update?commit=true --data-binary $'[{"id" : "1", "site_name"  : {"set":"Test new change"} }]'