-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support manual control of the bulk operation (#42)
- Loading branch information
1 parent
ec97f60
commit 5f560a0
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Licensed to Elasticsearch B.V under one or more agreements. | ||
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. | ||
// See the LICENSE file in the project root for more information | ||
namespace Elastic.Ingest.Elasticsearch.Indices; | ||
|
||
/// <summary> | ||
/// Determines the operation header for each bulk operation. | ||
/// </summary> | ||
public enum OperationMode | ||
{ | ||
/// <summary> | ||
/// The mode will be determined automatically based on default rules for the preferred mode. | ||
/// </summary> | ||
Auto = 0, | ||
|
||
/// <summary> | ||
/// Each document will be sent with an 'index' bulk operation header. | ||
/// </summary> | ||
Index = 1, | ||
|
||
/// <summary> | ||
/// Each document will be sent with a 'create' bulk operation header. | ||
/// </summary> | ||
Create = 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters