Class IndexDocumentsBatch<T>
java.lang.Object
com.azure.search.documents.models.IndexBatchBase<T>
com.azure.search.documents.indexes.models.IndexDocumentsBatch<T>
- Type Parameters:
T- The type of documents contained by the indexing batch.
Contains a batch of document write actions to send to the index.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddActions(Iterable<IndexAction<T>> actions) Adds document index actions to the batch.addDeleteActions(Iterable<T> documents) Adds document delete actions to the batch.addDeleteActions(String keyName, Iterable<String> keyValues) Adds document delete actions based on key IDs to the batch.addMergeActions(Iterable<T> documents) Adds merge document actions to the batch.addMergeOrUploadActions(Iterable<T> documents) Adds merge or upload document actions to the batch.addUploadActions(Iterable<T> documents) Adds upload document actions to the batch.Methods inherited from class com.azure.search.documents.models.IndexBatchBase
getActions
-
Constructor Details
-
IndexDocumentsBatch
public IndexDocumentsBatch()Constructor ofIndexDocumentsBatch.
-
-
Method Details
-
addActions
Adds document index actions to the batch.- Parameters:
actions- Index actions.- Returns:
- The updated IndexDocumentsBatch object.
-
addUploadActions
Adds upload document actions to the batch.- Parameters:
documents- Documents to be uploaded.- Returns:
- The updated IndexDocumentsBatch object.
-
addDeleteActions
Adds document delete actions to the batch.- Parameters:
documents- Document to be deleted.- Returns:
- The updated IndexDocumentsBatch object.
-
addDeleteActions
Adds document delete actions based on key IDs to the batch.- Parameters:
keyName- The key field name.keyValues- Keys of the documents to delete.- Returns:
- The updated IndexDocumentsBatch object.
-
addMergeActions
Adds merge document actions to the batch.- Parameters:
documents- Documents to be merged.- Returns:
- The updated IndexDocumentsBatch object.
-
addMergeOrUploadActions
Adds merge or upload document actions to the batch.- Parameters:
documents- Documents to be merged or uploaded.- Returns:
- The updated IndexDocumentsBatch object.
-