Skip to content

Commit

Permalink
Fix format separator in docs.
Browse files Browse the repository at this point in the history
Replace ':' with '|'.

fixes 1091
  • Loading branch information
jbaiera committed Jan 9, 2018
1 parent eaab5e8 commit 9a638c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/reference/asciidoc/core/configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ For example assuming the data contains a +@timestamp+ field, one can group the d
[source,ini]
----
# index the documents based on their date
es.resource.write = my-collection/{@timestamp:yyyy.MM.dd} <1>
es.resource.write = my-collection/{@timestamp|yyyy.MM.dd} <1>
----

<1> +@timestamp+ field formatting - in this case +yyyy.MM.dd+

The same configuration property is used (+es.resource.write+) however, through the special +:+ characters a formatting pattern is specified.
The same configuration property is used (+es.resource.write+) however, through the special +|+ characters a formatting pattern is specified.
Please refer to the http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html[SimpleDateFormat] javadocs for more information on the syntax supported.
In this case +yyyy.MM.dd+ translates the date into the year (specified by four digits), month by 2 digits followed by the day by two digits (such as +2015.01.28+).

Expand Down

0 comments on commit 9a638c7

Please sign in to comment.