From 18ff92662e032aaee268211bb02a3ec6a496d74b Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 8 Feb 2011 15:03:03 +0200 Subject: [PATCH] bulk request does not refresh on shard replicas --- .../org/elasticsearch/action/bulk/TransportShardBulkAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/action/bulk/TransportShardBulkAction.java b/modules/elasticsearch/src/main/java/org/elasticsearch/action/bulk/TransportShardBulkAction.java index a5e8c916e18..93b5c8ba493 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/action/bulk/TransportShardBulkAction.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/action/bulk/TransportShardBulkAction.java @@ -269,7 +269,7 @@ public class TransportShardBulkAction extends TransportShardReplicationOperation } } - indexShard.bulk(new Engine.Bulk(ops)); + indexShard.bulk(new Engine.Bulk(ops).refresh(request.refresh())); } private void updateMappingOnMaster(final IndexRequest request) {