在es中trackTotalHits(true) 可以查询索引中数据总数
SearchSourceBuilder sourceBuilder = new SearchSourceBuilder()
.from((pageBO.getCurrent()-1) * pageBO.getSize())
.size(pageBO.getSize())
.sort("time.keyword", SortOrder.DESC).trackTotalHits(true);