DSS-COLLECTION
Step-1: Delete the index for dss-collection
curl -XDELETE "http://elasticsearch-client-v1.es-cluster:9200/egov-dss-ingest-enriched"
curl -XDELETE http://elasticsearch-client-v1.es-cluster:9200/dss-collection_v1
Step-2: Create new index
curl -XPUT -H "Content-Type: application/json" http://elasticsearch-client-v1.es-cluster:9200/egov-dss-ingest-enriched?pretty
Step-3: Create a new alias
curl -XPOST "http://elasticsearch-client-v1.es-cluster:9200/_aliases" -H 'Content-Type: application/json' -d'
{
"actions" : [
{ "add" : { "index" : "egov-dss-ingest-enriched", "alias" : "dss-collection_v1" } }
]
}'
Step-4: Delete the Kafka connector and create a new one
Step-5: Create a new Kafka connector
Step-6: Once Kafka connector is created, forward port 8080 for index pod
Step-7: Now run the reindexing curl command from outside the playground pod