Skip to content

Actions after update

Daniel Rupp edited this page Jan 10, 2024 · 7 revisions

After updating GOKb, there are a number of procedures that should be followed

Reset the FT indexes

If it's possible the database has changed (For example, consolidating duplicate titles) you should reset the full text indexes. This is VERY important as without it, the references in global search results will lead to a null pointer exception when clicking on search results.

Clear the old FT indexes

You can delete the existing indices via

curl -XDELETE 'http://localhost:9200/gokborgs'
curl -XDELETE 'http://localhost:9200/gokbplatforms'
curl -XDELETE 'http://localhost:9200/gokbpackages'
curl -XDELETE 'http://localhost:9200/gokbtitles'
curl -XDELETE 'http://localhost:9200/gokbtipps'

New indices will be created automatically on App startup.

Re-populate the clean index

Log into the app and run Admin -> reset FT indexes. This will delete the content of table ftcontrol so that the app will start reindexing. Alternatively, you can delete the content of table ftcontrol manually.

Alternative way by using script es_reset

Alternatively, you can run the script /scripts/es_reset <indexname> with all indices to delete and repopulate the indices. You should check and adapt the path to es_mapping.json and es_settings.json in the script if necessary. You still need to delete the content of table ftcontrol afterwards.