Package org.elasticsearch.action.index
Class TransportIndexAction
- java.lang.Object
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.replication.TransportReplicationAction<Request,ReplicaRequest,Response>
-
- org.elasticsearch.action.support.replication.TransportWriteAction<Request,Request,Response>
-
- org.elasticsearch.action.bulk.TransportSingleItemBulkWriteAction<IndexRequest,IndexResponse>
-
- org.elasticsearch.action.index.TransportIndexAction
-
@Deprecated public class TransportIndexAction extends TransportSingleItemBulkWriteAction<IndexRequest,IndexResponse>
Deprecated.Performs the index operation. Allows for the following settings:- autoCreateIndex: When set to
true
, will automatically create an index if one does not exists. Defaults totrue
. - allowIdGeneration: If the id is set not, should it be generated. Defaults to
true
.
- autoCreateIndex: When set to
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.TransportWriteAction
TransportWriteAction.WritePrimaryResult<ReplicaRequest extends ReplicatedWriteRequest<ReplicaRequest>,Response extends ReplicationResponse & WriteResponse>, TransportWriteAction.WriteReplicaResult<ReplicaRequest extends ReplicatedWriteRequest<ReplicaRequest>>
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction
TransportReplicationAction.ConcreteReplicaRequest<R extends TransportRequest>, TransportReplicationAction.ConcreteShardRequest<R extends TransportRequest>, TransportReplicationAction.OperationTransportHandler, TransportReplicationAction.PrimaryOperationTransportHandler, TransportReplicationAction.PrimaryResult<ReplicaRequest extends ReplicationRequest<ReplicaRequest>,Response extends ReplicationResponse>, TransportReplicationAction.ReplicaOperationTransportHandler, TransportReplicationAction.ReplicaResponse, TransportReplicationAction.ReplicaResult, TransportReplicationAction.ReplicasProxy, TransportReplicationAction.RetryOnReplicaException
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction
clusterService, executor, indexNameExpressionResolver, indicesService, shardStateAction, threadPool, transportOptions, transportPrimaryAction, transportReplicaAction, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager
-
-
Constructor Summary
Constructors Constructor Description TransportIndexAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, TransportBulkAction bulkAction, TransportShardBulkAction shardBulkAction)
Deprecated.
-
Method Summary
Modifier and Type Method Description protected IndexResponse
newResponseInstance()
Deprecated.-
Methods inherited from class org.elasticsearch.action.bulk.TransportSingleItemBulkWriteAction
doExecute, shardOperationOnPrimary, shardOperationOnReplica, toSingleItemBulkRequest, wrapBulkResponse
-
Methods inherited from class org.elasticsearch.action.support.replication.TransportWriteAction
globalBlockLevel, indexBlockLevel, locationToSync, newReplicasProxy, syncOperationResultOrThrow
-
Methods inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction
acquirePrimaryOperationPermit, acquireReplicaOperationPermit, getIndexShard, registerRequestHandlers, resolveIndex, resolveRequest, retryPrimaryException, sendReplicaRequest, transportOptions
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportIndexAction
@Inject public TransportIndexAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, TransportBulkAction bulkAction, TransportShardBulkAction shardBulkAction)
Deprecated.
-
-
Method Detail
-
newResponseInstance
protected IndexResponse newResponseInstance()
Deprecated.- Specified by:
newResponseInstance
in classTransportReplicationAction<IndexRequest,IndexRequest,IndexResponse>
-
-