This section covers reindexing data that are already stored in databases configured for WSO2 DAS.
Data indexed and stored in databases may need to be reindexed due to the following reasons:
- If the index data is corrupted.
- To prevent the index data from getting corrupted during data migration when WSO2 DAS is connected to a different database.
To reindex existing data, follow the steps below:
- Shut down the WSO2 DAS server.
- Remove all the index data stored in theĀ
<DAS_HOME>/repository/data
directory. - In theĀ
<DAS_HOME>/repository/conf/analytics/local-shard-allocation-config.conf
file, change the mode for all the shards fromNORMAL
toINIT
. - Restart the WSO2 DAS server.