Reindex in place

Will there be any issues if I?

  1. Update a mapping file for an existing index with documents with full _source property.
  2. Scan the index pulling each document and its _source.
  3. Reindex the document using the Java IndexRequest.

The assumption I am working under is that I will be able to still perform a scan of documents after introducing a new mapping change.

Second part, if I introduce my mapping change using index mapping files that are loaded during ES startup will I have a problem during recovery?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hiya

  1. Update a mapping file for an existing index with documents with full _source property.

You can't make any change to a mapping that conflicts with an existing
mapping.

You either need to rename the type, or create a new index.

clint

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hiya Clint,

  1. Update a mapping file for an existing index with documents with full
    _source property.

You can't make any change to a mapping that conflicts with an existing
mapping.

I am testing with a local gateway, and I perform the following steps:

  1. Start ES with mapping A
  2. Index some data
  3. Shut down ES
  4. Restart ES with mapping B
  5. I can then issue a scan for all of the documents I indexed under
    mapping A

Please note that I am not changing my mapping files "on the fly", but
rather using ES config/mappings folder to load them.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

ES reads the configured mappings only when the index is created. After
that, you can change the configured mappings all you want, but ES won't
reload them.

You need to PUT an updated set of mappings to an existing index. And to
repeat Client, ES will require that the updated mappings are consistent
with the existing mappings. For example, a field mapped as a string cannot
be changed to be mapped as number. But ES will tell you if the settings and
mappings are incompatible or not.

On Monday, April 1, 2013 7:51:10 AM UTC-4, James Cook wrote:

Please note that I am not changing my mapping files "on the fly", but
rather using ES config/mappings folder to load them.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.