问题
Is there a way in Solr to perform bulk updates without specifying it document by document?
回答1:
No, there is nothing similar to UPDATE foo SET field = "bar"
- you'll have to either submit the complete set of updated documents, or a batches of atomic update commands (each related to a separate id).
[{"id":"mydoc", "price":{"set":99}},
{"id":"mydoc2", "price":{"set":199}}]
来源:https://stackoverflow.com/questions/41372899/how-to-perform-bulk-updates-in-solr