Uses of Class
org.elasticsearch.action.index.IndexRequest
-
-
Uses of IndexRequest in org.elasticsearch.action.bulk
Methods in org.elasticsearch.action.bulk that return IndexRequest Modifier and Type Method Description static IndexRequestTransportBulkAction. getIndexWriteRequest(DocWriteRequest docWriteRequest)Retrieves theIndexRequestfrom the providedDocWriteRequestfor index or upsert actions.Methods in org.elasticsearch.action.bulk with parameters of type IndexRequest Modifier and Type Method Description BulkRequestBulkRequest. add(IndexRequest request)Adds anIndexRequestto the list of actions to execute.BulkRequestBuilderBulkRequestBuilder. add(IndexRequest request)Adds anIndexRequestto the list of actions to execute.Method parameters in org.elasticsearch.action.bulk with type arguments of type IndexRequest Modifier and Type Method Description voidBulkRequestParser. parse(BytesReference data, String defaultIndex, String defaultType, String defaultRouting, FetchSourceContext defaultFetchSourceContext, String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType, Consumer<IndexRequest> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer)voidBulkRequestParser. parse(BytesReference data, String defaultIndex, String defaultRouting, FetchSourceContext defaultFetchSourceContext, String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType, Consumer<IndexRequest> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer)Parse the provideddataassuming the provided default values. -
Uses of IndexRequest in org.elasticsearch.action.index
Methods in org.elasticsearch.action.index that return IndexRequest Modifier and Type Method Description IndexRequestIndexRequest. create(boolean create)Set totrueto force this index to useDocWriteRequest.OpType.CREATE.IndexRequestIndexRequest. defaultTypeIfNull(String defaultType)Deprecated.Types are in the process of being removed.IndexRequestIndexRequest. id(String id)Sets the id of the indexed document.IndexRequestIndexRequest. isPipelineResolved(boolean isPipelineResolved)Sets if the pipeline for this request has been resolved by the coordinating node.IndexRequestIndexRequest. opType(String opType)Sets a string representation of theopType(OpType).IndexRequestIndexRequest. opType(DocWriteRequest.OpType opType)Sets the type of operation to perform.IndexRequestIndexRequest. routing(String routing)Controls the shard routing of the request.IndexRequestIndexRequest. setFinalPipeline(String finalPipeline)Sets the final ingest pipeline to be executed before indexing the document.IndexRequestIndexRequest. setIfPrimaryTerm(long term)only performs this indexing request if the document was last modification was assigned the given primary term.IndexRequestIndexRequest. setIfSeqNo(long seqNo)only perform this indexing request if the document was last modification was assigned the given sequence number.IndexRequestIndexRequest. setPipeline(String pipeline)Sets the ingest pipeline to be executed before indexing the documentIndexRequestIndexRequest. source(byte[] source, int offset, int length, XContentType xContentType)Sets the document to index in bytes form (assumed to be safe to be used from different threads).IndexRequestIndexRequest. source(byte[] source, XContentType xContentType)Sets the document to index in bytes form.IndexRequestIndexRequest. source(Object... source)Sets the content source to index using the default content type (Requests.INDEX_CONTENT_TYPE)IndexRequestIndexRequest. source(String source, XContentType xContentType)Sets the document source to index.IndexRequestIndexRequest. source(Map<String,?> source)Index the Map inRequests.INDEX_CONTENT_TYPEformatIndexRequestIndexRequest. source(Map<String,?> source, XContentType contentType)Index the Map as the provided content type.IndexRequestIndexRequest. source(BytesReference source, XContentType xContentType)Sets the document to index in bytes form.IndexRequestIndexRequest. source(XContentBuilder sourceBuilder)Sets the content source to index.IndexRequestIndexRequest. source(XContentType xContentType, Object... source)Sets the content source to index.IndexRequestIndexRequest. type(String type)Deprecated.Types are in the process of being removed.IndexRequestIndexRequest. version(long version)IndexRequestIndexRequest. versionType(VersionType versionType) -
Uses of IndexRequest in org.elasticsearch.action.update
Methods in org.elasticsearch.action.update that return IndexRequest Modifier and Type Method Description IndexRequestUpdateRequest. doc()IndexRequestUpdateRequest. upsertRequest()Methods in org.elasticsearch.action.update with parameters of type IndexRequest Modifier and Type Method Description UpdateRequestUpdateRequest. doc(IndexRequest doc)Sets the doc to use for updates when a script is not specified.UpdateRequestBuilderUpdateRequestBuilder. setDoc(IndexRequest indexRequest)Sets the doc to use for updates when a script is not specified.UpdateRequestBuilderUpdateRequestBuilder. setUpsert(IndexRequest indexRequest)Sets the index request to be used if the document does not exists.UpdateRequestUpdateRequest. upsert(IndexRequest upsertRequest)Sets the index request to be used if the document does not exists. -
Uses of IndexRequest in org.elasticsearch.client
Methods in org.elasticsearch.client that return IndexRequest Modifier and Type Method Description static IndexRequestRequests. indexRequest()static IndexRequestRequests. indexRequest(String index)Create an index request against a specific index.Methods in org.elasticsearch.client with parameters of type IndexRequest Modifier and Type Method Description ActionFuture<IndexResponse>Client. index(IndexRequest request)Index a JSON source associated with a given index and type.voidClient. index(IndexRequest request, ActionListener<IndexResponse> listener)Index a document associated with a given index and type.IndexResponseRestHighLevelClient. index(IndexRequest indexRequest, RequestOptions options)Index a document using the Index API.CancellableRestHighLevelClient. indexAsync(IndexRequest indexRequest, RequestOptions options, ActionListener<IndexResponse> listener)Asynchronously index a document using the Index API. -
Uses of IndexRequest in org.elasticsearch.client.support
Methods in org.elasticsearch.client.support with parameters of type IndexRequest Modifier and Type Method Description ActionFuture<IndexResponse>AbstractClient. index(IndexRequest request)voidAbstractClient. index(IndexRequest request, ActionListener<IndexResponse> listener) -
Uses of IndexRequest in org.elasticsearch.index.reindex
Methods in org.elasticsearch.index.reindex that return IndexRequest Modifier and Type Method Description IndexRequestReindexRequest. getDestination()Gets the target for this reindex request in the for of anIndexRequest
-