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
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. |
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. |
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. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應