|
@@ -20,7 +20,6 @@
|
|
|
package org.elasticsearch.action.index;
|
|
|
|
|
|
import org.elasticsearch.action.ActionListener;
|
|
|
-import org.elasticsearch.action.WriteConsistencyLevel;
|
|
|
import org.elasticsearch.action.support.replication.ShardReplicationOperationRequestBuilder;
|
|
|
import org.elasticsearch.client.Client;
|
|
|
import org.elasticsearch.common.Nullable;
|
|
@@ -252,15 +251,6 @@ public class IndexRequestBuilder extends ShardReplicationOperationRequestBuilder
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets the consistency level. Defaults to {@link org.elasticsearch.action.WriteConsistencyLevel#DEFAULT}.
|
|
|
- */
|
|
|
- @Override
|
|
|
- public IndexRequestBuilder setConsistencyLevel(WriteConsistencyLevel consistencyLevel) {
|
|
|
- request.consistencyLevel(consistencyLevel);
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Sets the version, which will cause the index operation to only be performed if a matching
|
|
|
* version exists and no changes happened on the doc since then.
|