Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

24.10. Count

		
QueryBuilders qb = QueryBuilders.boolQuery().must(QueryBuilders.termQuery("status", false));  
  
CountResponse response = client.prepareCount("book") // 索引  
                .setQuery(qb) //类型  
                .get();