run below steps in Kibana dashboard for manual indexing
Step-1: Create one temp index
PUT dss-collection_tempStep-2: take the mappings with below command
GET dss-collection_v1
Note : only properties object
ex :
"mappings": {
"general": {
"properties": {}
}
}
Step-3: modify the fields you want to change the type
Here i want to change
"receiptDate": {
"type": "long"
},
to
"receiptDate" : {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},Step-4: Take the updated mappings and add it for temp index with below command
PUT dss-collection_temp/_mapping/general
{add the updated mapping here}Step-5: Move the data from egov-dss-ingest-enriched to dss-collection_temp with below command
POST _reindex
{
"source": {
"index": "egov-dss-ingest-enriched"
},
"dest": {
"index": "dss-collection_temp"
}
}Step-6:Now the data moved from original index to temp index check the no of record in temp index
GET dss-collection_temp/_searchStep-7:If the count matching delete the original index with below comand
DELETE egov-dss-ingest-enrichedStep-8:Create egov-dss-ingest-enriched with below command
PUT egov-dss-ingest-enrichedStep-9:Take the updated mappings and add it for egov-dss-ingest-enriched index with below command
PUT egov-dss-ingest-enriched/_mapping/general
{add the updated mappings here}Step-10:Take the updated mappings and add it for egov-dss-ingest-enriched index with below command
POST _reindex
{
"source": {
"index": "dss-collection_temp"
},
"dest": {
"index": "egov-dss-ingest-enriched"
}
}Step-11:Give the alias with below command
POST _aliases
{
"actions": [
{
"add": {
"index": "egov-dss-ingest-enriched",
"alias": "dss-collection_v1"
}
}
]
}