We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ed2d9f commit 10e0022Copy full SHA for 10e0022
docs/reference/transform/painless-examples.asciidoc
@@ -573,7 +573,7 @@ POST _transform/_preview
573
all_docs.add(span);
574
}
575
576
- all_docs.sort((HashMap o1, HashMap o2)->o1['@timestamp'].toEpochMilli()compareTo(o2['@timestamp']-toEpochMilli()));
+ all_docs.sort((HashMap o1, HashMap o2)->o1['@timestamp'].toEpochMilli().compareTo(o2['@timestamp'].toEpochMilli()));
577
def size = all_docs.size();
578
def min_time = all_docs[0]['@timestamp'];
579
def max_time = all_docs[size-1]['@timestamp'];
@@ -644,4 +644,4 @@ The API call results in a similar response:
644
645
...
646
--------------------------------------------------
647
-// NOTCONSOLE
+// NOTCONSOLE
0 commit comments