hi Team, I have question about es, mysql is es use...
# getting-started
b
hi Team, I have question about es, mysql is es used for searching in datahub? if es is used for searching in datahub then what happens if i delete all indices in elasticsearch and keep mysql ? Is there any logic in datahub to make sync right between elasticsearch and mysql? Thanks
b
If you delete all the indices then you get nothing when you search. Also lose all your profiling data. There is a reindexing job to sync between MySQL and es that you can run manually.
b
Thanks how can i run that sync job manually??
b
Depends on your deployment. There is a datahub upgrade image inside docker/datahub-upgrade
b
ok so after i delete all indices, all i need to restore search feature is run datahub-upgrade again?? how do i pass argument to datahub-upgrade to only restore search indices? and which index in elasticsearch keeps search information??
b
i just run
Copy code
./datahub-upgrade.sh -u RestoreIndices
there is no single index, its a bunch of indices that contain information that is searched
b
ok thanks for help