Upgrade Instructions 6.0.0 - Reindexing Search Elastic Data
Reindexing Process
If there is a change in the name or the type for existing fields, or new fields have been added, explicit mapping is required, as well as a full re-index of all flex-account indices. This is a two step process.
Complete Reindex
1) To delete all indices:
curl -XDELETE hostname:9200/flex-account*
2) To reindex data:
curl -X POST -H "Content-Type: application/json" -d '{}' "http://indexElasticHost:18116/api/reindex"
3) To check pending items count in rabbitmq:
a. If you have jq installed:curl -s -u guest:guest host:15672/api/queues/%2F/flex.indexelastic.indexdeduped.queue | jq .messages
b. If you don't have jq installed:
curl -s -u guest:guest host:15672/api/queues/%2F/flex.indexelastic.indexdeduped.queue4) Find the messages key.
Partial Reindex
1) To delete a single index:
curl -XDELETE hostname:9200/<indexName>
2) To reindex data:
curl -X POST -H "Content-Type: application/json" -d '{"accountId":<accountIdOfIndex>}' http://indexElasticHost:18116/api/reindex
3) To check pending items count in rabbitmq
a. if you have jq installed:
curl -s -u guest:guest host:15672/api/queues/%2F/flex.indexelastic.indexdeduped.queue | jq .messages
b. If you don't have jq installed:
curl -s -u guest:guest host:15672/api/queues/%2F/flex.indexelastic.indexdeduped.queue4) Find the messages key.