Class IndexAction<T>
java.lang.Object
com.azure.search.documents.models.IndexAction<T>
- Type Parameters:
T- The type of the document used in the indexing action.
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()Creates an instance ofIndexAction.
-
-
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.
-