Skip to content

Commit 8e3f4eb

Browse files
committed
auto merge fix
1 parent 10f0159 commit 8e3f4eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/org/elasticsearch/plugin/nlpcn/executors/CSVResultsExtractor.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package org.elasticsearch.plugin.nlpcn.executors;
22

3-
import com.sun.org.apache.xpath.internal.operations.Mult;
4-
import org.elasticsearch.cluster.routing.allocation.decider.Decision;
5-
import org.elasticsearch.common.base.Joiner;
3+
import com.google.common.base.Joiner;
64
import org.elasticsearch.search.SearchHit;
75
import org.elasticsearch.search.SearchHits;
86
import org.elasticsearch.search.aggregations.Aggregation;
@@ -98,7 +96,7 @@ private void handleAggregations(Aggregations aggregations, List<String> headers
9896
boolean firstLine = true;
9997
for (MultiBucketsAggregation.Bucket bucket : buckets) {
10098
//each bucket need to add new line with current line copied => except for first line
101-
String key = bucket.getKeyAsText().string();
99+
String key = bucket.getKeyAsString();
102100
if(firstLine){
103101
firstLine = false;
104102
}

0 commit comments

Comments
 (0)