reindex search

Post Reply
segro
Posts: 3
Joined: Wed Jan 31, 2018 10:34 pm

reindex search

Post by segro » Sat Jul 11, 2020 10:28 am

Hi @all,
after migrating my docker instance to another host + update to version 10.5 (before I had a version with an integrated search) I only find crm /project / etc. topics or elements wich have been added after the update. Older contacts ect are there but not searchable.
So my question: How can I reindex all elements?

I use comunity edtion docker version.

Thank You!

MikhailS
Posts: 25
Joined: Tue Sep 10, 2019 3:31 pm

Re: reindex search

Post by MikhailS » Fri Jul 24, 2020 1:19 pm

Hello,

To clean all indexes, please execute instruction below (Commands below should be executed in the container with Community Server):
1. Get the list of the indexes: curl http://localhost:9200/_cat/indices
2. Stop god service: sudo service god stop
3. Stop index service: sudo service onlyofficeIndex stop
4. Delete all indexes: curl -X DELETE http://localhost:9200/mail_mail (use the names of the tables from command output above)
5. Connect to the DB: mysql -h onlyoffice-mysql-server -u root -ponlyoffice_pass -D onlyoffice
You can find ONLYOFFICE password from /var/www/onlyoffice/WebStudio/web.appsettings.config
6. Clear the table in DB: delete from webstudio_index;
7. Exit the DB: exit
8. Start index service: sudo service onlyofficeIndex start
9. Restart elasticsearch service: sudo service elasticsearch restart
10. Start god service: sudo service god start

segro
Posts: 3
Joined: Wed Jan 31, 2018 10:34 pm

Re: reindex search

Post by segro » Thu Jul 30, 2020 11:01 pm

Thank you, that works great!!!

Post Reply