switch (kv.key.toLowerCase()) { case "interval": histogram.interval(Long.parseLong(value)); break; case "field":
HistogramAggregationBuilder ret = AggregationBuilders.histogram(getId()).field(getField()); Map<String, String> props = getProperties(); ret.interval(getInterval()); if (props.containsKey(AGG_MIN_DOC_COUNT_PROP)) { ret.minDocCount(Long.parseLong(props.get(AGG_MIN_DOC_COUNT_PROP)));
switch (kv.key.toLowerCase()) { case "interval": histogram.interval(Long.parseLong(value)); break; case "field":
HistogramAggregationBuilder histogramAgg = AggregationBuilders.histogram(aggName); histogramAgg.field(propertyName); histogramAgg.interval(Double.parseDouble(agg.getInterval())); histogramAgg.minDocCount(1L); if (agg.getMinDocumentCount() != null) {
HistogramAggregationBuilder histogramAgg = AggregationBuilders.histogram(aggName); histogramAgg.field(propertyName); histogramAgg.interval(Double.parseDouble(agg.getInterval())); histogramAgg.minDocCount(1L); if (agg.getMinDocumentCount() != null) {
if (propertyDataType == Date.class) { HistogramAggregationBuilder histAgg = AggregationBuilders.histogram(aggName); histAgg.interval(1); if (agg.getMinDocumentCount() != null) { histAgg.minDocCount(agg.getMinDocumentCount());
if (propertyDataType == Date.class) { HistogramAggregationBuilder histAgg = AggregationBuilders.histogram(aggName); histAgg.interval(1); if (agg.getMinDocumentCount() != null) { histAgg.minDocCount(agg.getMinDocumentCount());