Indexer

Swagger API Contract Link

This endpoint is used to start legacy index job to reindex records from DB. The data is fetched from DB by calling api mentioned in request in batches. The is useful when some record is present in DB but missing on index.

Initiate legacy index job to index data from DB fetched by calling some api

post

/index-operations/_legacyindex

Body
RequestInfoobject
apiDetailsobject
jobIdstring
legacyIndexTopicstring
startTimeinteger · int64
tenantIdstring
totalRecordsinteger · int32
Responses
curl -L \
  --request POST \
  --url '/egov-indexer/index-operations/index-operations/_legacyindex' \
  --header 'Content-Type: application/json' \
  --data '{"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","tenantId":"text","uuid":"text","roles":[{"id":1,"name":"text","code":"text"}]}},"apiDetails":{"paginationDetails":{},"request":{}}}'
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "text"
  },
  "url": "text",
  "message": "text",
  "jobId": "text"
}

This endpoint is used to start indexing job to reindex records from one index to another index.

Reindex data from one index to another

post

/index-operations/_reindex

Body
RequestInfoobject
batchSizeinteger · int32
indexstring
jobIdstring
reindexTopicstring
startTimeinteger · int64
tenantIdstring
totalRecordsinteger · int32
typestring
Responses
curl -L \
  --request POST \
  --url '/egov-indexer/index-operations/index-operations/_reindex' \
  --header 'Content-Type: application/json' \
  --data '{"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","tenantId":"text","uuid":"text","roles":[{"id":1,"name":"text","code":"text"}]}}}'
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "text"
  },
  "url": "text",
  "totalRecordsToBeIndexed": 1,
  "estimatedTime": "text",
  "message": "text",
  "jobId": "text"
}

This endpoint is used to index one record on a index. The information to pick correct config is provided with the data to be indexed.

Index request to index one record on an index

post

/index-operations/{key}/_index

Path parameters
keystringrequired

key

Body
object
Responses
curl -L \
  --request POST \
  --url '/egov-indexer/index-operations/index-operations/{key}/_index' \
  --header 'Content-Type: application/json'
{}

Last updated

Was this helpful?