You can't.
You basically need to reindex.
That said, you can try to use a multifield which add a String representation of
the same field. But old values (old docs) won't have this new field populated.
HTH
--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 21 juin 2014 à 06:00, srikanth ramineni a écrit :
Hi ,
can you please provide inputs to update the existing field type in the
mapping.Below is the requirement.
I have crated contractIndex and it is type is conract. In that i have fields
contractid as long, contract number as long but i want to changecontract
number type as string.
Thanks,
Srikanth.
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e80c0884-9e18-4af2-8c04-69cde01fd3ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/3FB4C99C-F209-4697-A902-3582C21711BF%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.