Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

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:

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"

}'

  • No labels