diff --git a/7.10/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/7.10/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index d54d801..7fc0e68 100644 --- a/7.10/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/7.10/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -93,7 +93,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("country", country == null ? null : country.getValue()); builder.field("prefilter", prefilter); builder.field("output", output); - builder.field("distance_output", distanceOutput); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/7.11/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/7.11/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index be01bc0..96746a3 100644 --- a/7.11/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/7.11/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -93,7 +93,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("country", country == null ? null : country.getValue()); builder.field("prefilter", prefilter); builder.field("output", output); - builder.field("distance_output", distanceOutput); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/7.12/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/7.12/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 0d83e1c..8aa58a8 100644 --- a/7.12/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/7.12/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -53,6 +53,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -65,6 +66,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -77,6 +79,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/7.13/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/7.13/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 0d83e1c..8aa58a8 100644 --- a/7.13/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/7.13/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -53,6 +53,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -65,6 +66,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -77,6 +79,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/7.14/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/7.14/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 0d83e1c..8aa58a8 100644 --- a/7.14/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/7.14/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -53,6 +53,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -65,6 +66,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -77,6 +79,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/7.15/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/7.15/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 0d83e1c..8aa58a8 100644 --- a/7.15/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/7.15/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -53,6 +53,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -65,6 +66,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -77,6 +79,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/7.16/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/7.16/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 041d632..84237a3 100644 --- a/7.16/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/7.16/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -53,6 +53,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -65,6 +66,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -77,6 +79,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/7.17/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/7.17/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 041d632..84237a3 100644 --- a/7.17/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/7.17/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -53,6 +53,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -65,6 +66,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -77,6 +79,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.0/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.0/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 041d632..84237a3 100644 --- a/8.0/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.0/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -53,6 +53,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -65,6 +66,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -77,6 +79,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.1/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.1/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 041d632..84237a3 100644 --- a/8.1/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.1/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -53,6 +53,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -65,6 +66,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -77,6 +79,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.10/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.10/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 7045c88..3225ea4 100644 --- a/8.10/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.10/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -81,7 +81,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); - builder.field("distance_output", distanceOutput); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.12/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.12/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index eb28878..d6f78b2 100644 --- a/8.12/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.12/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -82,7 +82,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); - builder.field("distance_output", distanceOutput); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.13/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.13/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index eb28878..d6f78b2 100644 --- a/8.13/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.13/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -82,7 +82,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); - builder.field("distance_output", distanceOutput); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.2/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.2/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 1256faa..6000a45 100644 --- a/8.2/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.2/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -54,6 +54,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -66,6 +67,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -78,6 +80,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.3/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.3/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 1256faa..6000a45 100644 --- a/8.3/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.3/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -54,6 +54,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -66,6 +67,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -78,6 +80,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.4/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.4/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 1256faa..6000a45 100644 --- a/8.4/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.4/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -54,6 +54,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -66,6 +67,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -78,6 +80,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.5/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.5/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 09ad195..efd97ea 100644 --- a/8.5/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.5/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -54,6 +54,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -66,6 +67,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -78,6 +80,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.6/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.6/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index a126374..fa14f86 100644 --- a/8.6/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.6/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -55,6 +55,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -67,6 +68,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -79,6 +81,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.7/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.7/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index ea3ba4d..d4b6e9e 100644 --- a/8.7/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.7/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -55,6 +55,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -67,6 +68,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -79,6 +81,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.8/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.8/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index ea3ba4d..d4b6e9e 100644 --- a/8.8/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.8/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -55,6 +55,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -67,6 +68,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -79,6 +81,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override diff --git a/8.9/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java b/8.9/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java index 849752c..dfac8d5 100644 --- a/8.9/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java +++ b/8.9/src/main/java/com/traveltime/plugin/elasticsearch/query/TraveltimeQueryBuilder.java @@ -55,6 +55,7 @@ public TraveltimeQueryBuilder(StreamInput in) throws IOException { requestType = in.readOptionalEnum(RequestType.class); prefilter = in.readOptionalNamedWriteable(QueryBuilder.class); output = in.readString(); + distanceOutput = in.readString(); } @Override @@ -67,6 +68,7 @@ protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalEnum(requestType); out.writeOptionalNamedWriteable(prefilter); out.writeString(output); + out.writeString(distanceOutput); } @Override @@ -79,6 +81,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep builder.field("requestType", requestType == null ? null : requestType.name()); builder.field("prefilter", prefilter); builder.field("output", output); + builder.field("distanceOutput", distanceOutput); } @Override