/
Technical script/steps for migration process

Technical script/steps for migration process

This specifies the migration steps which is specific to payment index .

Step 1. Adding a target index

Add index nameĀ  dss-payment_v2 as below:

In kibana, dev tools, apply the below command

PUT dss-payment_v2

{} // add mapping file content here. mapping.json as attached below

Note: This name should be as the value present in ingest es.index.name

Step 2. Optional changes required in Ingest application properties

Ingest pipeline application properties contain es.direct.push supposed to be set true for testing.

Sno

Property name

Value

Description

1.

es.direct.push

true

the transformed data will be pushed to ES index directly.



2.

es.direct.push

false

the transformed data will be lying at egov-dss-ingest-enriched topic



Step 3. Run migration Api, which migrate the data from the source index to target index.

SNo

Name

Description



  1. Ā 

Method

End Point

Body

POST

{host}/dashboard-ingest/ingest/migrate/paymentsindex-v1/v2

{"RequestInfo":{"authToken":"2ba70924-1bba-4a9b-b55d-2e9471bf3081"}}

2.

CURLĀ 

curl -X POST
https://egov-micro-dev.egovernments.org/dashboard-ingest/ingest/migrate/paymentsindex-v1/v2
-H 'cache-control: no-cache'
-H 'content-type: application/json'
-H 'postman-token: d83fc136-116d-265f-3b83-ea41e3d5bb57'
-d '{"RequestInfo":{"authToken":"2ba70924-1bba-4a9b-b55d-2e9471bf3081"}}'

Ā 

Note: After migration ensure dss-payment_v2 data has been populated and available

In kibana, dev tools verify using below command

GET dss-payment_v2/_search

Ā 

Related content

DSS Configuration And Setup
DSS Configuration And Setup
More like this
Technical script/steps for migration process
Technical script/steps for migration process
More like this
Technical Enablement Areas
Technical Enablement Areas
Read with this
DSS Manual Indexing
DSS Manual Indexing
More like this