Reputation: 103
I have 5 documents indexed in solr. So now I want to insert a new field in all the documents(i.e 5 documents). Is that possible to insert a new field without reindexing all the documents again?
Upvotes: 0
Views: 1961
Reputation: 1
You can do updates to document by it's id. There are two types Atomic Updates and In-place Updates.
The first is atomic updates. This approach allows changing only one or more fields of a document without having to re-index the entire document.
The second approach is known as in-place updates. This approach is similar to atomic updates (is a subset of atomic updates in some sense), but can be used only for updating single valued non-indexed and non-stored docValue-based numeric fields.
Here's a link!
Upvotes: 0