Indexer
Last updated
Was this helpful?
Last updated
Was this helpful?
Initiate legacy index job to index data from DB fetched by calling some api
POST /egov-indexer/index-operations/index-operations/_legacyindex HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 657
{
"RequestInfo": {
"apiId": "text",
"ver": "text",
"ts": 1,
"action": "text",
"did": "text",
"key": "text",
"msgId": "text",
"authToken": "text",
"correlationId": "text",
"userInfo": {
"id": 1,
"userName": "text",
"name": "text",
"type": "text",
"mobileNumber": "text",
"emailId": "text",
"roles": [
{
"id": 1,
"name": "text",
"code": "text"
}
],
"tenantId": "text",
"uuid": "text"
}
},
"apiDetails": {
"customQueryParam": "text",
"paginationDetails": {
"maxPageSize": 1,
"offsetKey": "text",
"sizeKey": "text",
"startingOffset": 1,
"maxRecords": 1
},
"request": {},
"responseJsonPath": "text",
"tenantIdForOpenSearch": "text",
"uri": "text"
},
"jobId": "text",
"legacyIndexTopic": "text",
"startTime": 1,
"tenantId": "text",
"totalRecords": 1
}
{
"ResponseInfo": {
"apiId": "text",
"ver": "text",
"ts": 1,
"resMsgId": "text",
"msgId": "text",
"status": "text"
},
"url": "text",
"message": "text",
"jobId": "text"
}
Reindex data from one index to another
POST /egov-indexer/index-operations/index-operations/_reindex HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 464
{
"RequestInfo": {
"apiId": "text",
"ver": "text",
"ts": 1,
"action": "text",
"did": "text",
"key": "text",
"msgId": "text",
"authToken": "text",
"correlationId": "text",
"userInfo": {
"id": 1,
"userName": "text",
"name": "text",
"type": "text",
"mobileNumber": "text",
"emailId": "text",
"roles": [
{
"id": 1,
"name": "text",
"code": "text"
}
],
"tenantId": "text",
"uuid": "text"
}
},
"batchSize": 1,
"index": "text",
"jobId": "text",
"reindexTopic": "text",
"startTime": 1,
"tenantId": "text",
"totalRecords": 1,
"type": "text"
}
{
"ResponseInfo": {
"apiId": "text",
"ver": "text",
"ts": 1,
"resMsgId": "text",
"msgId": "text",
"status": "text"
},
"url": "text",
"totalRecordsToBeIndexed": 1,
"estimatedTime": "text",
"message": "text",
"jobId": "text"
}
Index request to index one record on an index
key
POST /egov-indexer/index-operations/index-operations/{key}/_index HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
{}