SearchRequestBuilder esRequest = getClient()
.prepareSearch(IssueIndexDefinition.INDEX)
.setTypes(IssueIndexDefinition.TYPE_ISSUE)
- .setSearchType(SearchType.COUNT);
+ .setSize(0);
BoolFilterBuilder esFilter = FilterBuilders.boolFilter();
for (FilterBuilder filter : filters.values()) {
if (filter != null) {
SearchRequestBuilder requestBuilder = getClient()
.prepareSearch(IssueIndexDefinition.INDEX)
// Avoids returning search hits
- .setSearchType(SearchType.COUNT)
+ .setSize(0)
.setTypes(IssueIndexDefinition.TYPE_ISSUE);
requestBuilder.setQuery(QueryBuilders.filteredQuery(QueryBuilders.matchAllQuery(),