简体   繁体   中英

Should I reindex documents in elasticsearch when I update settings of index

I've read the re-indexing documents which is required if anything has been changed in the existing index then I've to re-index documents. For example. If I make a change in the existing field then I've to reindex all the documents.

Should I re-index documents if I make a change in settings of an existing index?

What if I want to add a new analyzer/filter in the settings? Does it require to re-index documents?

not necessarily, for example, changing shard number definitely requires a reindex, b/c ES needs to reshard all document. changing replicas doesn't need reindex, and in fact a common practice to speed up your index with replica = 0, then later turns it = 1.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM