If I put a mapping under |config/mappings/_default|, restart, and try to
save to a new index (auto-created), the save returns with a 500 error,
NullPointerException (no diagnostics). If I do the following manually:
then try to save to it, all is well. The problem is that I have to use
auto-create for the index and I need to have different defaults than ES
defaults for our mappings. If I knew I was creating a new index, then I
could do a put-mapping and things would work, but I can't tell if it is
new or old, that comes from the front end processing. I need to be able
to set defaults on all the known doc types that we use, or have some
quick (atomic) way to tell if an index already exists.
If I put a mapping under config/mappings/_default, restart, and try to
save to a new index (auto-created), the save returns with a 500 error,
NullPointerException (no diagnostics). If I do the following manually:
then try to save to it, all is well. The problem is that I have to use
auto-create for the index and I need to have different defaults than ES
defaults for our mappings. If I knew I was creating a new index, then I
could do a put-mapping and things would work, but I can't tell if it is new
or old, that comes from the front end processing. I need to be able to set
defaults on all the known doc types that we use, or have some quick (atomic)
way to tell if an index already exists.
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.