Commit f22862f4 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

441: Fix issues related to deployment of upcoming v4-release (OPENED)

Task-Url: #441
parent 225cb94c
......@@ -41,7 +41,7 @@ public class SearchClientImpl extends BaseEsClientImpl implements SearchClient {
@Override
public long count(SearchParams params) {
if (params.getIndexNames()==null) {
if (params.getIndexNames()==null || params.getIndexNames().length==0) {
return 0;
}
......@@ -74,7 +74,7 @@ public class SearchClientImpl extends BaseEsClientImpl implements SearchClient {
@Override
public SearchResponse query(SearchParams params) {
try {
if (params.getIndexNames()==null) {
if (params.getIndexNames()==null || params.getIndexNames().length==0) {
return new NullSearchResponse();
}
......
......@@ -66,7 +66,7 @@ public class SearchServiceImpl implements SearchService {
@Override
public long count(QueryBuilder query, String... indexNames) {
if (indexNames==null || indexNames.length==0) {
indexNames= this.getIndexNames();
indexNames = this.getIndexNames();
}
return searchClient.count(new SearchParams(indexNames, query));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment