View Source ElasticsearchEx.Sharder (Elasticsearch_ex v1.8.1)

This module allows you to fetch a subset of documents from an Elasticsearch index. It uses a modulo operation on the document ID to determine the shard number.

Summary

Functions

shard(query, nbr_shards)

shard(query, nbr_shards, shard_number)

shard(query, nbr_shards, shard_number, opts)