Skip to content

Commit 9afe15f

Browse files
JefStatMpdreamz
authored andcommitted
Dateformat epoch_mills is mispelled
Following nest call fails: elasticClient.CreateIndex("testindex", descriptor => descriptor.Mappings(mappings => mappings .Map<EventMapping>(md => md .Properties(props => props .Date(d => d.Name("Time").Format(DateFormat.epoch_millis)) ... ``` { "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "Failed to parse mapping [event]: Invalid format: [epoch_mills]: Illegal pattern component: p" } ], "type": "mapper_parsing_exception", "reason": "Failed to parse mapping [event]: Invalid format: [epoch_mills]: Illegal pattern component: p", "caused_by": { "type": "illegal_argument_exception", "reason": "Invalid format: [epoch_mills]: Illegal pattern component: p", "caused_by": { "type": "illegal_argument_exception", "reason": "Illegal pattern component: p" } } }, "status": 400 } ```
1 parent b3e6a21 commit 9afe15f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nest/CommonOptions/DateFormat/DateFormat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public static class DateFormat
66
{
77
///<summary>A formatter for the number of milliseconds since the epoch. Note, that this timestamp is subject to the limits of a Java Long.MIN_VALUE and Long.MAX_VALUE.</summary>
8-
public const string epoch_millis = "epoch_mills";
8+
public const string epoch_millis = "epoch_millis";
99
///<summary>A formatter for the number of seconds since the epoch. Note, that this timestamp is subject to the limits of a Java Long.MIN_VALUE and Long. MAX_VALUE divided by 1000 (the number of milliseconds in a second).</summary>
1010
public const string epoch_second = "epoch_second";
1111
///<summary>A basic formatter for a full date as four digit year, two digit month of year, and two digit day of month: yyyyMMdd.</summary>

0 commit comments

Comments
 (0)