Getting redundant results in explore page
Run ingestion for
metadata ingest -c ./pipelines/sample_tables.json
metadata ingest -c ./pipelines/sample_usage.json
metadata ingest -c ./pipelines/sample_users.json
metadata ingest -c ./pipelines/sample_topics.json
And run ingestion for elastic search
metadata ingest -c ./pipelines/metadata_to_es.json
Getting 18 KAFKA topics instead of 6 and multiple entries of same dataset in suggestions/search results
Refer screenshots:
@darth-coder00 this will happen if you delete the MySQL DB but didn't delete the elastic search index. try running the following command in terminal curl -XDELETE http://localhost:9200/table_search_index
@sureshms i tried this command but getting an error like this
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"The provided expression [table_search_index] matches an alias, specify the corresponding concrete indices instead."}],"type":"illegal_argument_exception","reason":"The provided expression [table_search_index] matches an alias, specify the corresponding concrete indices instead."},"status":400}
we moved ElasticSearch from bulk operations to a per event and elastic search documents will have id that will match to the openmetadata mysql storage UUIDs. example
- TableA in MySQL will have ID 1 and the elastic search will use that ID to associate TableA in elasticsearch index
- This will allow us to update the elastic search document directly whenever there are updates from users are ingestion
- periodically one can choose to run the metadata elastic search ingestion to re-index all the documents incase if we lose any actions in step-2
Currently, the above issue happens
- when the user runs ./bootstrap-storage.sh drop-create and re-ingests data. This means TableA will get a new ID let's say and elastic search existing indexes are not deleted. When the indexing happens it will create a TableA with ID 11 and elaticsearch will have TableA ID 1, so it will be treated as a new document and creates another TableA doc in the index.
- curl -XDELETE http://localhost:9200/table_search_index and curl -XDELETE http://localhost:9200/topic_search_index to clear out old indexes whenever they run drop-create
- We are looking alternate ways with @ayush-shah to resolve this with-in index phase
Closing the issue as discussed, drop-create will only be for developer usage. As to when drop-create is done, the user will have delete the indexes
curl -XDELETE http://localhost:9200/table_search_index and curl -XDELETE http://localhost:9200/topic_search_index to clear out old indexes whenever they run drop-create