I was just wondering if there was any parameter / method to make a bulk request through the ElasticSearch REST api without a response being returned.
Trying to squeeze as much network performance as I can out of it, and I don't care about the result of the bulk operations in my use-case. Since I am rapidly inserting in batches of 20,000 at the moment I imagine I would save a decent amount of data transfer overhead by omitting them.
I know I'm replying to an old question here, but I faced the same question and found this page.
I'm not sure if this is something new in Elasticsearch since the question was asked, but you can use the "filter_path" query parameter: See the API docs
If you add "?filter_path=took,errors" to your "_bulk" query, the "items" are omitted from the response.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With