Praveen Kumar
Praveen Kumar

Reputation: 103

how to add a new field to existing documents in solr

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

Answers (1)

maniteja6799
maniteja6799

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

Related Questions