I want to be able to bulk index this json string directly to elastic search without having to deserialize it into a model since the usual client.IndexMany() takes in an IEnumerable as parameter.
var response = client.Bulk<StringResponse>("indexname", jsonString);
I am getting a 400 response on trying to do the above.
Assume i am successfully using the above format , can i still send a json string to the Bulk api or the IndexMany() method ?? Did you mean passing a json string works only for a single document at a time ?
Or do i have to first convert the json string (right format) i have to an IEnumerable<object> and then pass it something like this -
IEnumerable<object> objsToIndex = something;
var response= client.Bulk("indexname", PostData.MultiJson(objsToIndex));
Cloud by elastic is one way to have access to all features, all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL, Canvas, Maps UI, Alerting and built-in solutions named Observability, Security, Enterprise Search and what is coming next ...
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.