Skip to content

Commit

Permalink
[UM-5579]- Added property fuzzy search topic and index in property-se…
Browse files Browse the repository at this point in the history
…rvices (#2505)
  • Loading branch information
hinamakhija-eGov committed Jan 18, 2023
1 parent 21a34e8 commit 5399adb
Showing 1 changed file with 98 additions and 0 deletions.
98 changes: 98 additions & 0 deletions egov-indexer/property-services.yml
Expand Up @@ -2,6 +2,104 @@ ServiceMaps:
serviceName: Property Tax - rainmaker
version: 1.0.0
mappings:
- topic: save-property-fuzzy-data
configKey: INDEX
indexes:
- name: pt-fuzzy-search-index
type: general
id: $.propertyId,$.tenantId
jsonPath: $.Property
timeStampField: $.auditDetails.lastModifiedTime
customJsonMapping:
indexMapping: {"Data":{"ownerNames":[],"doorNo":"","street":"","owners":[],"acknowldgementNumber":"","propertyType":"","ownershipCategory":"","creationReason":"","usageCategory":"","noOfFloors":"","landArea":"","superBuiltUpArea":"","source":"","channel":"","units":{},"auditDetails":{},"id":"","propertyId":"","surveyId":"","linkedProperties":{},"tenantId":"","accountId":"","oldPropertyId":"","status":"","@timestamp":"timestamp"}}
fieldMapping:
- inJsonPath: $.owners[*][?(@.status=='ACTIVE')].name
outJsonPath: $.Data.ownerNames
- inJsonPath: $.address.doorNo
outJsonPath: $.Data.doorNo
- inJsonPath: $.address.street
outJsonPath: $.Data.street
- inJsonPath: $.owners.*.uuid
outJsonPath: $.Data.owners
- inJsonPath: $.acknowldgementNumber
outJsonPath: $.Data.acknowldgementNumber
- inJsonPath: $.propertyType
outJsonPath: $.Data.propertyType
- inJsonPath: $.ownershipCategory
outJsonPath: $.Data.ownershipCategory
- inJsonPath: $.creationReason
outJsonPath: $.Data.creationReason
- inJsonPath: $.usageCategory
outJsonPath: $.Data.usageCategory
- inJsonPath: $.noOfFloors
outJsonPath: $.Data.noOfFloors
- inJsonPath: $.landArea
outJsonPath: $.Data.landArea
- inJsonPath: $.superBuiltUpArea
outJsonPath: $.Data.superBuiltUpArea
- inJsonPath: $.source
outJsonPath: $.Data.source
- inJsonPath: $.channel
outJsonPath: $.Data.channel
- inJsonPath: $.units
outJsonPath: $.Data.units
- inJsonPath: $.auditDetails
outJsonPath: $.Data.auditDetails
- inJsonPath: $.id
outJsonPath: $.Data.id
- inJsonPath: $.propertyId
outJsonPath: $.Data.propertyId
- inJsonPath: $.surveyId
outJsonPath: $.Data.surveyId
- inJsonPath: $.linkedProperties
outJsonPath: $.Data.linkedProperties
- inJsonPath: $.tenantId
outJsonPath: $.Data.tenantId
- inJsonPath: $.accountId
outJsonPath: $.Data.accountId
- inJsonPath: $.oldPropertyId
outJsonPath: $.Data.oldPropertyId
- inJsonPath: $.status
outJsonPath: $.Data.status
- inJsonPath: $.@timestamp
outJsonPath: $.Data.@timestamp
externalUriMapping:
- path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search
queryParam: hierarchyTypeCode=REVENUE,boundaryType=Block,codes=$.address.locality.code,tenantId=$.tenantId
apiRequest: {"RequestInfo": {"apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654", "requesterId": "61","authToken": "02dbe5be-28df-4d82-954f-3d27c56cca7d","userInfo":{"id":73}}}
uriResponseMapping:
- inJsonPath: $.TenantBoundary[0].boundary[0]
outJsonPath: $.Data.ward
- path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search
queryParam: businessIds=$.acknowldgementNumber,history=true,tenantId=$.tenantId
apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}}
uriResponseMapping:
- inJsonPath: $.ProcessInstances
outJsonPath: $.Data.history
mdmsMapping:
- path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search
moduleName: tenant
masterName: tenants
tenantId: pg
filter: "[?(@.code == $tenant)]"
filterMapping:
- variable: $tenant
valueJsonpath: $.tenantId
uriResponseMapping:
- inJsonPath: $.MdmsRes.tenant.tenants
outJsonPath: $.Data.tenantData
- path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search
moduleName: PropertyTax
masterName: UsageCategory
tenantId: pg
filter: "[?(@.code == $usageCategory)]"
filterMapping:
- variable: $usageCategory
valueJsonpath: $.usageCategory
uriResponseMapping:
- inJsonPath: $.MdmsRes.PropertyTax.UsageCategory[0].name
outJsonPath: $.Data.usageCategory

- topic: save-property-registry
configKey: INDEX
indexes:
Expand Down

0 comments on commit 5399adb

Please sign in to comment.