We are working on updating this book for the latest version. Some content might be out of date.
Although you can add new types to an index, or add new fields to a type, you can’t add new analyzers or make changes to existing fields. If you were to do so, the data that had already been indexed would be incorrect and your searches would no longer work as expected.
The simplest way to apply these changes to your existing data is to reindex: create a new index with the new settings and copy all of your documents from the old index to the new index.
One of the advantages of the
_source field is that you already have the
whole document available to you in Elasticsearch itself. You don’t have to
rebuild your index from the database, which is usually much slower.
Beginning with Elasticsearch v2.3.0, a Reindex API has been introduced. It enables you to reindex your documents without requiring any plugin nor external tool.