Skip to content

Commit 1d89054

Browse files
authored
fix scripted-and-runtime-fields.adoc
Original Pull Request #2902 Closes #2903
1 parent 106b513 commit 1d89054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/antora/modules/ROOT/pages/elasticsearch/scripted-and-runtime-fields.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ In the following code this is used to run a query for a given gender and maximum
194194
195195
var runtimeField = new RuntimeField("age", "long", """ <.>
196196
Instant currentDate = Instant.ofEpochMilli(new Date().getTime());
197-
Instant startDate = doc['birth-date'].value.toInstant();
197+
Instant startDate = doc['birthDate'].value.toInstant();
198198
emit (ChronoUnit.DAYS.between(startDate, currentDate) / 365);
199199
""");
200200

0 commit comments

Comments
 (0)