Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search
Commits
f22862f4
Commit
f22862f4
authored
Jul 19, 2021
by
Gradl, Tobias
Browse files
441: Fix issues related to deployment of upcoming v4-release (OPENED)
Task-Url:
#441
parent
225cb94c
Changes
2
Hide whitespace changes
Inline
Side-by-side
search-core/src/main/java/eu/dariah/de/search/es/client/SearchClientImpl.java
View file @
f22862f4
...
...
@@ -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
();
}
...
...
search-core/src/main/java/eu/dariah/de/search/es/service/SearchServiceImpl.java
View file @
f22862f4
...
...
@@ -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
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment