IndexActionType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The operation to perform on a document in an indexing batch.
public enum IndexActionType
type IndexActionType =
Public Enum IndexActionType
- Inheritance
-
IndexActionType
Fields
Name | Value | Description |
---|---|---|
Upload | 0 | Inserts the document into the index if it is new and updates it if it exists. All fields are replaced in the update case. |
Merge | 1 | Merges the specified field values with an existing document. If the document does not exist, the merge will fail. Any field you specify in a merge will replace the existing field in the document. This also applies to collections of primitive and complex types. |
MergeOrUpload | 2 | Behaves like merge if a document with the given key already exists in the index. If the document does not exist, it behaves like upload with a new document. |
Delete | 3 | Removes the specified document from the index. Any field you specify in a delete operation other than the key field will be ignored. If you want to remove an individual field from a document, use merge instead and set the field explicitly to null. |