Class IndexAction<T>
java.lang.Object
com.azure.search.documents.models.IndexAction<T>
Represents an index action that operates on a document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the actionType property: The operation to perform on a document in an indexing batch.Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.setActionType
(IndexActionType actionType) Set the actionType property: The operation to perform on a document in an indexing batch.setDocument
(T document) Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.
-
Constructor Details
-
IndexAction
public IndexAction()
-
-
Method Details
-
getDocument
Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.- Returns:
- the document value.
-
setDocument
Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.- Parameters:
document
- the document value to set.- Returns:
- the IndexAction object itself.
-
getActionType
Get the actionType property: The operation to perform on a document in an indexing batch.- Returns:
- the actionType value.
-
setActionType
Set the actionType property: The operation to perform on a document in an indexing batch.- Parameters:
actionType
- the actionType value to set.- Returns:
- the IndexAction object itself.
-