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:

var mappings = {
 "body": [
     { "mappings": {
         "component": {
             "properties": {
                 "classifications": {
                     "type": "string",
                     "index": "not_analyzed"
                 }
             }
         }
     }}
 ]
};
client.bulk(mappings, function(err, resp){
 // error appears here
});


The exact message I get is:  ActionRequestValidationException[Validation 
Failed: 1: no requests added;]


Any help would sure be appreciated.


Blake McBride


-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/7e4580c1-708e-4cf8-a39e-a8bcc314d65b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to