Class ShardBatchIndexer

java.lang.Object
org.elasticsearch.action.bulk.ShardBatchIndexer

public final class ShardBatchIndexer extends Object
Handles the batch indexing code path for primary and replica shards.
  • Field Details

    • BATCH_INDEXING_FEATURE_FLAG

      public static final FeatureFlag BATCH_INDEXING_FEATURE_FLAG
    • BATCH_INDEXING

      public static final Setting<Boolean> BATCH_INDEXING
  • Method Details

    • canUseBatchIndexing

      public static boolean canUseBatchIndexing(BulkShardRequest request, boolean batchIndexingEnabled)
      Checks whether the batch indexing path can be used for this request. Returns true if batch indexing is enabled and all operations are index/create (no deletes, no updates).