How can I ignore all new fields in Elastic Search?
I have created mapping and loaded data in to ES, and things are fine.
Some of the data of mine comes from client, and different clients send
data in different formats.
I am seeing a new field these days, and some clients sent that in
number format, and some in date. I think ES first looked at number and
updated the mapping as "long". Now all the documents that have date
are failing to get updated with number format exception.
My Issue is, the data I am interested in is already mapped by me. I
don't worry if new fields get indexed or not, but I don't want an
operation to fail with exceptions.
For example, if my initial mapping is for
{user : "shashi"}
and if two other documents are
{user : "shashi", created : 133333}, and {user : "ramu", created:
"2012-03-15T00:04:29.054Z"}
I at least want the "user" field to be indexed, as I am mainly
interested in that. I don't mine if rest is indexed or not, and I
don't know about those additional fields in advance.
How can I ignore all new fields in Elastic Search?
I have created mapping and loaded data in to ES, and things are fine.
Some of the data of mine comes from client, and different clients send
data in different formats.
I am seeing a new field these days, and some clients sent that in
number format, and some in date. I think ES first looked at number and
updated the mapping as "long". Now all the documents that have date
are failing to get updated with number format exception.
My Issue is, the data I am interested in is already mapped by me. I
don't worry if new fields get indexed or not, but I don't want an
operation to fail with exceptions.
For example, if my initial mapping is for
{user : "shashi"}
and if two other documents are
{user : "shashi", created : 133333}, and {user : "ramu", created:
"2012-03-15T00:04:29.054Z"}
I at least want the "user" field to be indexed, as I am mainly
interested in that. I don't mine if rest is indexed or not, and I
don't know about those additional fields in advance.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.