Skip to content

Commit 149ad9e

Browse files
committed
Port to ES 5.5.0
1 parent 9c803c6 commit 149ad9e

File tree

5 files changed

+5
-386
lines changed

5 files changed

+5
-386
lines changed

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
elasticsearch.version=5.3.0
2-
log4j.version=2.8
1+
elasticsearch.version=5.5.0
2+
log4j.version=2.8.2
33
wagon-ssh-external.version=2.10
44
commons-math3.version=3.6.1
55
group=org.scaleborn.elasticsearch.plugin
66
name=elasticsearch-linear-regression
7-
version=5.3.0.2
7+
version=5.5.0.1

src/main/java/org/scaleborn/elasticsearch/linreg/aggregation/predict/PredictionResults.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.elasticsearch.common.io.stream.StreamInput;
2121
import org.elasticsearch.common.io.stream.StreamOutput;
2222
import org.elasticsearch.common.xcontent.XContentBuilder;
23-
import org.elasticsearch.search.aggregations.InternalAggregation.CommonFields;
23+
import org.elasticsearch.search.aggregations.Aggregation.CommonFields;
2424
import org.scaleborn.elasticsearch.linreg.aggregation.support.ModelResults;
2525
import org.scaleborn.linereg.estimation.SlopeCoefficients;
2626

@@ -52,7 +52,7 @@ public void writeTo(final StreamOutput out) throws IOException {
5252
@Override
5353
public XContentBuilder toXContent(final XContentBuilder builder, final Params params)
5454
throws IOException {
55-
builder.field(CommonFields.VALUE, this.predictedValue);
55+
builder.field(CommonFields.VALUE.toString(), this.predictedValue);
5656
return super.toXContent(builder, params);
5757
}
5858

src/test/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java

Lines changed: 0 additions & 121 deletions
This file was deleted.

src/test/java/org/elasticsearch/search/aggregations/InternalAggregationTestCase.java

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)