IndexAction<T> Class
- java.
lang. Object - com.
azure. search. documents. models. IndexAction<T>
- com.
Type Parameters
- T
The type of the document used in the indexing action.
public final class IndexAction
Represents an index action that operates on a document.
Constructor Summary
Constructor | Description |
---|---|
IndexAction() |
Creates an instance of IndexAction<T>. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Index |
getActionType()
Get the action |
T |
getDocument()
Get the document on which the action will be performed; Fields other than the key are ignored for delete actions. |
Index |
setActionType(IndexActionType actionType)
Set the action |
Index |
setDocument(T document)
Get the document on which the action will be performed; Fields other than the key are ignored for delete actions. |
Methods inherited from java.lang.Object
Constructor Details
IndexAction
public IndexAction()
Creates an instance of IndexAction<T>.
Method Details
getActionType
public IndexActionType getActionType()
Get the actionType property: The operation to perform on a document in an indexing batch.
Returns:
getDocument
public T getDocument()
Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.
Returns:
setActionType
public IndexAction
Set the actionType property: The operation to perform on a document in an indexing batch.
Parameters:
Returns:
setDocument
public IndexAction
Get the document on which the action will be performed; Fields other than the key are ignored for delete actions.
Parameters:
Returns:
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour