If i insert a string data to a number field,es
will resp [failed to parse [xxx]]; nested: NumberFormatException[For input string: "xxx"]
.
I can validate data before insert to avoid the exception?
If i insert a string data to a number field,es
will resp [failed to parse [xxx]]; nested: NumberFormatException[For input string: "xxx"]
.
I can validate data before insert to avoid the exception?
Hi,
Elasticsearch validates the data before insertion but there's no way to avoid the exception. You should validate data before indexing or you can ignore the exception.
Thank you. Elasticsearch has any validate api?
© 2020. All Rights Reserved - Elasticsearch
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.