Interface ShardContext


public interface ShardContext
Context of each shard we're operating against.
  • Method Summary

    Modifier and Type
    Method
    Description
    Build a "sort" configuration from an Elasticsearch style builder.
    int
    The index of this shard in the list of shards being processed.
    org.apache.lucene.search.IndexSearcher
    Get IndexSearcher holding the actual data.
    A "name" for the shard that you can look up against other APIs like _cat/shards.
  • Method Details

    • index

      int index()
      The index of this shard in the list of shards being processed.
    • searcher

      org.apache.lucene.search.IndexSearcher searcher()
      Get IndexSearcher holding the actual data.
    • buildSort

      Optional<SortAndFormats> buildSort(List<SortBuilder<?>> sorts) throws IOException
      Build a "sort" configuration from an Elasticsearch style builder.
      Throws:
      IOException
    • shardIdentifier

      String shardIdentifier()
      A "name" for the shard that you can look up against other APIs like _cat/shards.