import org.elasticsearch.search.aggregations.bucket.significant.SignificantTerms; for this import im getting the error in the significant.what will be the replacement for this import ?
SignificantTerms agg = response.get(name);
JSONArray j_entries = new JSONArray();
j_aggregation.put("buckets", j_entries);
for (SignificantTerms.Bucket entry : agg) {
JSONObject j_entry = new JSONObject();
j_entry.put("term", entry.getKey());
j_entry.put("value", entry.getDocCount());
j_entries.put(j_entry);
}
this is the implementation we have used