Knowledge Center SearchFIx (#14935)

This commit is contained in:
07Himank 2024-01-29 22:31:19 +05:30 committed by GitHub
parent 4d3d6c6bfa
commit 38726971cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -385,7 +385,8 @@ public class ElasticSearchClient implements SearchClient {
}
/* For backward-compatibility we continue supporting the deleted argument, this should be removed in future versions */
if (request.getIndex().equalsIgnoreCase("all")) {
if (request.getIndex().equalsIgnoreCase("all")
|| request.getIndex().equalsIgnoreCase("dataAsset")) {
BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();
boolQueryBuilder.should(
QueryBuilders.boolQuery()

View File

@ -376,7 +376,8 @@ public class OpenSearchClient implements SearchClient {
}
/* For backward-compatibility we continue supporting the deleted argument, this should be removed in future versions */
if (request.getIndex().equalsIgnoreCase("all")) {
if (request.getIndex().equalsIgnoreCase("all")
|| request.getIndex().equalsIgnoreCase("dataAsset")) {
BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();
boolQueryBuilder.should(
QueryBuilders.boolQuery()