Hi,
I know this is a old topic.
I found the similar question in the following link.
That question was asked in 2013. I just want to confirm the latest elasticsearch 2.3 still does not support setting the mandatory field.
Basically, we want to set some fields as mandatory. It will fail when inserting the document if the field is missing or null.
Hi, Mark
Thanks for the reply !
I am little confused there.
on the page, it said:
strict : If new fields are detected, an exception is thrown and the document is rejected.
for example, in the following case, my_index dost NOT allow the new fields to be added in if the new fields are not defined in the mapping before.
thanks so much Mark !
yeah, I searched around in the forum, it is impossible to make a field mandatory at least before 2013.
I just want to know whether the new version can.
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.