How to perform bulk updates in Solr

懵懂的女人 提交于 2019-12-25 07:48:56

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!