mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-22 14:24:35 +00:00
Custom Property Backend Support and list approved glossary terms (#13496)
This commit is contained in:
parent
02a3bc334f
commit
352b025fd7
@ -354,6 +354,10 @@ public class ElasticSearchClient implements SearchClient {
|
||||
searchSourceBuilder.sort(request.getSortFieldParam(), SortOrder.fromString(request.getSortOrder()));
|
||||
}
|
||||
|
||||
if (request.getIndex().equalsIgnoreCase("glossary_term_search_index")) {
|
||||
searchSourceBuilder.query(QueryBuilders.boolQuery().must(QueryBuilders.matchQuery("status", "Approved")));
|
||||
}
|
||||
|
||||
/* for performance reasons ElasticSearch doesn't provide accurate hits
|
||||
if we enable trackTotalHits parameter it will try to match every result, count and return hits
|
||||
however in most cases for search results an approximate value is good enough.
|
||||
@ -1498,7 +1502,6 @@ public class ElasticSearchClient implements SearchClient {
|
||||
requestConfigBuilder
|
||||
.setConnectTimeout(esConfig.getConnectionTimeoutSecs() * 1000)
|
||||
.setSocketTimeout(esConfig.getSocketTimeoutSecs() * 1000));
|
||||
// return new RestHighLevelClient(restClientBuilder);
|
||||
return new RestHighLevelClientBuilder(restClient).setApiCompatibilityMode(true).build();
|
||||
} catch (Exception e) {
|
||||
LOG.error("Failed to create elastic search client ", e);
|
||||
|
@ -346,6 +346,10 @@ public class OpenSearchClient implements SearchClient {
|
||||
searchSourceBuilder.sort(request.getSortFieldParam(), SortOrder.fromString(request.getSortOrder()));
|
||||
}
|
||||
|
||||
if (request.getIndex().equalsIgnoreCase("glossary_term_search_index")) {
|
||||
searchSourceBuilder.query(QueryBuilders.boolQuery().must(QueryBuilders.matchQuery("status", "Approved")));
|
||||
}
|
||||
|
||||
/* for performance reasons OpenSearch doesn't provide accurate hits
|
||||
if we enable trackTotalHits parameter it will try to match every result, count and return hits
|
||||
however in most cases for search results an approximate value is good enough.
|
||||
|
@ -220,7 +220,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"children": {
|
||||
"properties": {
|
||||
|
@ -228,7 +228,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
@ -166,7 +166,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"owner": {
|
||||
"properties": {
|
||||
|
@ -144,7 +144,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"owner": {
|
||||
"properties": {
|
||||
|
@ -134,7 +134,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"mlFeatures": {
|
||||
"properties": {
|
||||
|
@ -161,7 +161,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"owner": {
|
||||
"properties": {
|
||||
|
@ -362,7 +362,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
@ -434,7 +434,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"sourceUrl": {
|
||||
"type": "keyword"
|
||||
|
@ -346,7 +346,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
@ -130,7 +130,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
@ -165,7 +165,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataModel": {
|
||||
"properties": {
|
||||
|
@ -131,7 +131,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
@ -141,7 +141,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"state": {
|
||||
"type": "keyword"
|
||||
|
@ -153,7 +153,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"owner": {
|
||||
"properties": {
|
||||
|
@ -136,7 +136,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"mlFeatures": {
|
||||
"properties": {
|
||||
|
@ -361,7 +361,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"lifeCycle": {
|
||||
"type": "object"
|
||||
|
@ -436,7 +436,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"sourceUrl": {
|
||||
"type": "keyword"
|
||||
|
@ -355,7 +355,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
@ -286,6 +286,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
"id": {
|
||||
|
@ -218,7 +218,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"children": {
|
||||
"properties": {
|
||||
|
@ -157,7 +157,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
@ -146,7 +146,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"owner": {
|
||||
"properties": {
|
||||
|
@ -129,7 +129,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"owner": {
|
||||
"properties": {
|
||||
|
@ -105,7 +105,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"mlFeatures": {
|
||||
"properties": {
|
||||
|
@ -348,7 +348,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
@ -423,7 +423,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"sourceUrl": {
|
||||
"type": "keyword"
|
||||
|
@ -333,7 +333,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
@ -107,7 +107,7 @@
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "keyword"
|
||||
"type": "object"
|
||||
},
|
||||
"dataProducts": {
|
||||
"properties": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user