Issue
- Synonym and Result Ranking entries are removed when the Elasticsearch index is removed. In the event that the index is removed Synonyms are missing even after performing a full reindex.
Environment
- Liferay DXP 7.2 and 7.3
Resolution
- This is a known limitation of Synonyms. Liferay DXP 7.2 and 7.3 stores Result Rankings and Synonym Sets data in their respective Elasticsearch indexes only. In order to preserve them you will need to ensure that the index is backed up manually in the event that a restore is required.
Additional Information
Beginning in DXP Liferay 7.4, the Result Rankings and Synonym Sets data is stored in the Liferay database, and a re-index action from the Search Administration panel can be used to populate each application’s index with the proper data. In prior versions the indexes were used as primary data storage for these applications. See
- https://learn.liferay.com/dxp/latest/en/using-search/getting-started/whats-new-in-search-for-74.html#search-tuning and
- https://learn.liferay.com/dxp/latest/en/using-search/installing-and-upgrading-a-search-engine/elasticsearch/upgrading-elasticsearch/upgrading-search-infrastructure.html#upgrading-search-infrastructure.