The process of reindexing can be triggered by sending a syncEnd
message to tis-revalidation-sync-gmc-queue-{environment}. You can send a message via either AWS Console or CLI:
Trigger the reindexing via AWS Console
Go to the queue on AWS Console, then click the button on top right “Send and receive messages“.
Input the message and message attributes as shown below, and then click “Send message“.
Trigger the reindexing via AWS CLI
Prerequisite: you have to install AWS CLI and set up your credential.
Open your cli, create 2 json files in your current working directory:
1. send.json
{"payload":null,"syncEnd":true}
2. attribute.json
{ "contentType": { "StringValue": "application/json", "DataType": "String" } }
Then use the command below to send a message:
aws sqs send-message --queue-url https://sqs.eu-west-2.amazonaws.com/430723991443/tis-revalidation-sync-gmc-queue-{environment} --message-body file://send.json --message-attributes file://attributes.json
You will get a response with messageId and MD50s in your cli.
Verify the result
To verify the result, we can check the ES:
There should be an index named as recommendationindex_yyyyMMddHHmmss
marked with alias recommendationindex
and another marked with recommendationindex_backup
.
The timestamp in the name of the recommendationindex
alias one should be nearly the time after you send the message.
The size of documents of masterdoctorindex
and recommendationindex
alias one should be the same.
And if you check the Cloudwatch of integration service, the logs are like below:
Then, go to Revalidation UI and check if the doctor list are shown as normal.
Add Comment