I am attempting to define a mapping. I am first creating a new index by
adding a document that doesn't contain anything specified in my
mapping/schema. I am using a bulk operation to set the mapping but I get
an ActionRequestValidationException error each time. Here is my JS code:
I'm not an expert in the JS client, but the bulk requests are meant for
indexing data. If you want to set the mapping you can do it in index
creation time or by using the dedicate put mapping API
( Update mapping API | Elasticsearch Guide [8.11] | Elastic
).
Cheers,
Boaz
On Tuesday, March 24, 2015 at 4:06:09 PM UTC+1, Blake McBride wrote:
I am attempting to define a mapping. I am first creating a new index by
adding a document that doesn't contain anything specified in my
mapping/schema. I am using a bulk operation to set the mapping but I get
an ActionRequestValidationException error each time. Here is my JS code:
Yea. Thanks. As you suggested, I bypassed the JS API and just did an HTTP
call. That worked. Thanks.
On Wednesday, March 25, 2015 at 2:51:47 AM UTC-5, Boaz Leskes wrote:
Hi Blake,
I'm not an expert in the JS client, but the bulk requests are meant for
indexing data. If you want to set the mapping you can do it in index
creation time or by using the dedicate put mapping API ( Update mapping API | Elasticsearch Guide [8.11] | Elastic
).
Cheers,
Boaz
On Tuesday, March 24, 2015 at 4:06:09 PM UTC+1, Blake McBride wrote:
I am attempting to define a mapping. I am first creating a new index by
adding a document that doesn't contain anything specified in my
mapping/schema. I am using a bulk operation to set the mapping but I get
an ActionRequestValidationException error each time. Here is my JS code:
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.