问题
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