Closed maxgfb closed 2 years ago
Hi @maxgfb,
Do I need to include the full mapping copied from the Index::create or do I only include the new field?
You can only specify the new fields. In fact, ES will not allow you to modify already existing fields.
What do you put in the down() method to roll this back?
Probably nothing in this case because it's not possible to delete existing fields from an index.
I want to add a field to an existing index
I believe I should use Index::putMapping
Do I need to include the full mapping copied from the Index::create or do I only include the new field?
Using your example
What do you put in the down() method to roll this back?