Property-service application level index

Promotion Steps:

For Property tax module following new index is created. This index is used to keep latest information about any property application. The โ€œproperty-servicesโ€œ index which is used already, contains latest information about any property only, so if any property has more than one application associated with it, the information about all the applications for this property are not available on โ€œproperty-servicesโ€œ index, only the property application which was modified recently will be on index.

Following are key points for this index:-

  • Contains latest information about property applications

  • The records will be picked from following kafka topics

    • save-property-registry :- The records on this topic are for newly created property application

    • update-property-registry :- The records on this topic are for any update on existing property application

    • cancel-property-registry :- Records for cancelled property application

    • property-application-legacyIndex :- This topic is used for reindexing of old records

  • Every timeย  any new property application is created new record is pushed on elastic search index, if existing property application is updated then the existing record on index is updated. So this index stores latest information about any property application

  • As key for indexed records we are using combination of propertyId,acknowledgementnumber,tenantId fields of the property

  • Property last modified time is used as timestamp

Note: For some of the migrated old properties during property registry migration, the acknowledgementnumber field is null

Reindexing command:

Use below command for reindexing. For verification the number of records present on the index should be equal to number of total property applications i.e total number of entries in โ€œeg_pt_propertyโ€ table.

curl -X POST \

ย ย http://egov-indexer:8080/egov-indexer/index-operations/_legacyindex \

H 'Cache-Control: no-cache' \

H 'Content-Type: application/json' \

H 'Postman-Token: d380bebb-383f-1b7c-76d1-10c1dc07dd06' \

d '{

ย ย "RequestInfo": {

ย ย ย ย "apiId": "string",

ย ย ย ย "ver": "string",

ย ย ย ย "ts": null,

ย ย ย ย "action": "string",

ย ย ย ย "did": "string",

ย ย ย ย "key": "string",

ย ย ย ย "msgId": "string",

ย ย ย ย "authToken": "b843ef27-1ac6-49b8-ab71-cd0c22f4e50e",

ย ย ย ย "correlationId": "e721639b-c095-40b3-86e2-acecb2cb6efb",

ย ย ย ย "userInfo": {

ย ย ย ย ย ย "id": 23299,

ย ย ย ย ย ย "uuid":"e721639b-c095-40b3-86e2-acecb2cb6efb",

ย ย ย ย ย ย "userName": "9337682030",

ย ย ย ย ย ย "name": "Abhilash Seth",

ย ย ย ย ย ย "type": "EMPLOYEE",

ย ย ย ย ย ย "mobileNumber": "9337682030",

ย ย ย ย ย ย "emailId": "abhilash.seth@gmail.com",

ย ย ย ย ย ย "roles": [

ย ย ย ย ย ย ย ย {

ย ย ย ย ย ย ย ย ย ย "id": 281,

ย ย ย ย ย ย ย ย ย ย "name": "Employee"

ย ย ย ย ย ย ย ย }

ย ย ย ย ย ย ]ย 

ย ย ย ย }

ย ย },

ย ย "apiDetails":{

ย ย ย ย ย ย "uri":"http://property-services:8080/property-services/property/_plainsearch",ย 

ย ย ย ย ย ย "paginationDetails":{

ย ย ย ย ย ย ย ย "offsetKey":"offset",

ย ย ย ย ย ย ย ย "sizeKey":"limit",

ย ย ย ย ย ย ย ย "maxPageSize":50,

ย ย ย ย ย ย ย ย "startingOffset": 0

ย ย ย ย ย ย },

ย ย ย ย ย ย "responseJsonPath":"$.Properties"

ย ย },

ย ย "legacyIndexTopic":"property-application-legacyIndex",

ย ย "tenantId":"pb.amritsar"

}'

ย