diff --git a/src/Nest/DSL/BulkIndexDescriptor.cs b/src/Nest/DSL/BulkIndexDescriptor.cs index 506a057ff1b..a4280277bc6 100644 --- a/src/Nest/DSL/BulkIndexDescriptor.cs +++ b/src/Nest/DSL/BulkIndexDescriptor.cs @@ -53,6 +53,14 @@ public BulkIndexDescriptor Type(Type type) return this; } + /// + /// Manually set the id for the newly created object + /// + public BulkIndexDescriptor Id(long id) + { + return this.Id(id.ToString(CultureInfo.InvariantCulture)); + } + /// /// Manually set the id for the newly created object ///