Is this behavior by design? It doesn't appear to be documented that you can just send the mapping without having a property name matching the type. We are currently using this behavior, but we'd like to be able to count on its existence in the future. If this is not by design, feedback would be appreciated.
Sending invalid json isn't always guaranteed to work. It does now sometimes
like you saw. Not sure about the mapping with and without the name.
Personally I'd like only the without form to work when you've already put
it in the path but I don't know what the long term plan is.
Personally I'd like only the without form to work when you've already put it in the path but I don't know what the long term plan is.
Yeah this is what I was hoping for as well, since the type is in the URL. This is also useful if you have multiple types that use the same mapping. I think we could set something up that uses a default template, but I like how explicit the above is.
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.