mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-26 02:40:08 +00:00
Fix glossary highlighter (#13586)
* fix glossary highlighter issue * indentation
This commit is contained in:
parent
063590d54f
commit
cdb94e476b
@ -356,7 +356,10 @@ public class ElasticSearchClient implements SearchClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request.getIndex().equalsIgnoreCase("glossary_term_search_index")) {
|
if (request.getIndex().equalsIgnoreCase("glossary_term_search_index")) {
|
||||||
searchSourceBuilder.query(QueryBuilders.boolQuery().must(QueryBuilders.matchQuery("status", "Approved")));
|
searchSourceBuilder.query(
|
||||||
|
QueryBuilders.boolQuery()
|
||||||
|
.must(searchSourceBuilder.query())
|
||||||
|
.must(QueryBuilders.matchQuery("status", "Approved")));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* for performance reasons ElasticSearch doesn't provide accurate hits
|
/* for performance reasons ElasticSearch doesn't provide accurate hits
|
||||||
|
@ -348,7 +348,10 @@ public class OpenSearchClient implements SearchClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (request.getIndex().equalsIgnoreCase("glossary_term_search_index")) {
|
if (request.getIndex().equalsIgnoreCase("glossary_term_search_index")) {
|
||||||
searchSourceBuilder.query(QueryBuilders.boolQuery().must(QueryBuilders.matchQuery("status", "Approved")));
|
searchSourceBuilder.query(
|
||||||
|
QueryBuilders.boolQuery()
|
||||||
|
.must(searchSourceBuilder.query())
|
||||||
|
.must(QueryBuilders.matchQuery("status", "Approved")));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* for performance reasons OpenSearch doesn't provide accurate hits
|
/* for performance reasons OpenSearch doesn't provide accurate hits
|
||||||
|
Loading…
x
Reference in New Issue
Block a user