|
@ -51,6 +51,8 @@ public class EsAggsTest {
|
|
|
long distinctCount = cardinality.getValue();
|
|
|
|
|
|
System.out.println(distinctCount);
|
|
|
|
|
|
transportClient.close();
|
|
|
}
|
|
|
|
|
|
@Test
|
|
@ -74,6 +76,8 @@ public class EsAggsTest {
|
|
|
Cardinality cardinality = bucket.getAggregations().get("distinctCount");
|
|
|
System.out.println(key + " : " + cardinality.getValue());
|
|
|
}
|
|
|
|
|
|
transportClient.close();
|
|
|
}
|
|
|
|
|
|
}
|