EzDevInfo.com

elasticsearch-ruby

Ruby integrations for Elasticsearch

Using percolate for bulk indexing in elasticsearch-ruby

According to this issue, elasticsearch supports using percolate with index (a single document) or bulk (multiple documents). No example is given for bulk, so I'm going by the issue's title that this functionality was added 5 years ago.

Unfortunately, I can't find any information about this functionality being available in the ruby API, elasticsearch-ruby.

Does anyone know if it's available, or perhaps have a code sample?

Thanks.

Update:

This page describes how to percolate while indexing a single document, and claims that it's possible in bulk. Now, how to do that in elasticsearch-ruby?

Looks like the NEST library can do it (see the bottom of the page), if I cared to rewrite my project in .Net.


Source: (StackOverflow)