solr update specific fields rather than entire document [closed]

余生颓废 提交于 2019-12-18 09:54:11

问题


Does solr allow updating specific field rather than indexing entire document.

I know solr 1.4 doesn't.

Has this been implemented in newer versions?


回答1:


Nope. Solr doesn't allow updating a specific field.
You would need to update the document again with all the existing values and the changed values.
The Update basically is delete and add of the document.

Update

Solr does Allow Partial Updates with 4.0 @ http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/




回答2:


Not the correct answer anymore. SOLR 4.0 supports the partial updates you are talking about. See http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/




回答3:


Atomic updates are possible in solr. Please refer https://wiki.apache.org/solr/UpdateJSON#Solr_4.0_Example



来源:https://stackoverflow.com/questions/8365713/solr-update-specific-fields-rather-than-entire-document

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