Fix #208: Add Global Suggest ElasticSearch index to capture all the entities (#406)

This commit is contained in:
Sriharsha Chintalapani 2021-09-05 20:56:54 -07:00 committed by GitHub
parent d0dbcc19b7
commit 072c2034ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,7 @@ class ElasticsearchSink(Sink):
def _create_dashboard_es_doc(self, dashboard: Dashboard): def _create_dashboard_es_doc(self, dashboard: Dashboard):
fqdn = dashboard.fullyQualifiedName fqdn = dashboard.fullyQualifiedName
dashboard_name = dashboard.name dashboard_name = dashboard.name
suggest = [{'input': [fqdn], 'weight': 5}, {'input': [dashboard_name], 'weight': 10}] suggest = [{'input': [dashboard.displayName], 'weight': 10}]
tags = set() tags = set()
timestamp = time.time() timestamp = time.time()
service_entity = self.rest.get_dashboard_service_by_id(str(dashboard.service.id.__root__)) service_entity = self.rest.get_dashboard_service_by_id(str(dashboard.service.id.__root__))