filter = "streams:" + streamId;
}
try {
UniversalSearch search = searchFactory.queryWithRangeAndFilter(q, timerange, filter);
FieldStatsResponse stats = search.fieldStats(field);
Map<String, Object> result = Maps.newHashMap();
result.put("count", stats.count);
result.put("sum", stats.sum);
result.put("mean", stats.mean);