Since IRawClient has been removed how we can index raw json documents through bulk API ?
OK apparently it has been renamed to .LowLevel.
Before indexing do we have to change any settings??
because when i tried
var response = client.LowLevel.IndicesCreatePost<FeedData>("feederapp", json);
it is throwing an error..
Unsuccessful low level call on POST: /feederapp?pretty=true
Audit trail of this API call:
- BadResponse: Node: http://localhost:9200/ Took: 00:00:00.4116440
ServerError: ServerError: 500Type: settings_exception Reason: "Failed to load settings from "json file content"
"caused_by" : {
"type" : "parse_exception",
"reason" : "malformed, expected settings to start with 'object', instead was [START_ARRAY]"
}
},
"status" : 500
}
TIA