Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'ladakh' branch in config-naljal #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
194 changes: 109 additions & 85 deletions egov-indexer/collection-indexer.yml
Original file line number Diff line number Diff line change
@@ -1,87 +1,111 @@
ServiceMaps:
serviceName: Collection Services
version: 1.0.0
mappings:
- topic: egov.collection.receipt-create
configKey: INDEX
indexes:
- name: collectionsindex-v1
type: receipts
id: $.Bill[0].billDetails[0].id
isBulk: true
timeStampField: $.auditDetails.createdDate
jsonPath: $.Receipt.*
customJsonMapping:
indexMapping: {"Data":{"tenantId":"","transactionId":"","Bill":{},"auditDetails":{},"instrument":{},"tenantData":{},"@timestamp":"timestamp"}}
fieldMapping:
- inJsonPath: $.tenantId
outJsonPath: $.Data.tenantId
- inJsonPath: $.transactionId
outJsonPath: $.Data.transactionId
- inJsonPath: $.Bill
outJsonPath: $.Data.Bill
- inJsonPath: $.auditDetails
outJsonPath: $.Data.auditDetails
- inJsonPath: $.instrument
outJsonPath: $.Data.instrument
- inJsonPath: $.@timestamp
outJsonPath: $.Data.@timestamp
mdmsMapping:
- path: http://egov-mdms-service.naljal:8080/egov-mdms-service/v1/_search
moduleName: tenant
masterName: tenants
tenantId: pb
filter: "[?(@.code == $tenant)]"
filterMapping:
- variable: $tenant
valueJsonpath: $.tenantId
uriResponseMapping:
- inJsonPath: $.MdmsRes.tenant.tenants
outJsonPath: $.Data.tenantData
serviceName: Collection Services
version: 1.0.0
mappings:
- topic: egov.collection.receipt-create
configKey: INDEX
indexes:
- name: collectionsindex-v1
type: receipts
id: $.Bill[0].billDetails[0].id
isBulk: true
timeStampField: $.auditDetails.createdDate
jsonPath: $.Receipt.*
customJsonMapping:
indexMapping:
{
'Data':
{
'tenantId': '',
'transactionId': '',
'Bill': {},
'auditDetails': {},
'instrument': {},
'tenantData': {},
'@timestamp': 'timestamp',
},
}
fieldMapping:
- inJsonPath: $.tenantId
outJsonPath: $.Data.tenantId
- inJsonPath: $.transactionId
outJsonPath: $.Data.transactionId
- inJsonPath: $.Bill
outJsonPath: $.Data.Bill
- inJsonPath: $.auditDetails
outJsonPath: $.Data.auditDetails
- inJsonPath: $.instrument
outJsonPath: $.Data.instrument
- inJsonPath: $.@timestamp
outJsonPath: $.Data.@timestamp
mdmsMapping:
- path: http://egov-mdms-service.madhyapradesh:8080/madhyapradesh/egov-mdms-service/v1/_search
moduleName: tenant
masterName: tenants
tenantId: pb
filter: '[?(@.code == $tenant)]'
filterMapping:
- variable: $tenant
valueJsonpath: $.tenantId
uriResponseMapping:
- inJsonPath: $.MdmsRes.tenant.tenants
outJsonPath: $.Data.tenantData

- topic: egov.collection.receipt-create-reindex
configKey: REINDEX
indexes:
- name: collectionsreindex-v1.1
type: receipts
id: $.Bill[0].billDetails[0].id
isBulk: true
timeStampField: $.auditDetails.createdDate
jsonPath: $.hits

- topic: egov.collection.receipt-create-legacyindex
configKey: LEGACYINDEX
indexes:
- name: collectionsindex-v1
type: receipts
id: $.Bill[0].billDetails[0].id
isBulk: true
timeStampField: $.auditDetails.createdDate
jsonPath: $.Receipt.*
customJsonMapping:
indexMapping: {"Data":{"tenantId":"","transactionId":"","Bill":{},"auditDetails":{},"instrument":{},"tenantData":{},"@timestamp":"timestamp"}}
fieldMapping:
- inJsonPath: $.tenantId
outJsonPath: $.Data.tenantId
- inJsonPath: $.transactionId
outJsonPath: $.Data.transactionId
- inJsonPath: $.Bill
outJsonPath: $.Data.Bill
- inJsonPath: $.auditDetails
outJsonPath: $.Data.auditDetails
- inJsonPath: $.instrument
outJsonPath: $.Data.instrument
- inJsonPath: $.@timestamp
outJsonPath: $.Data.@timestamp
mdmsMapping:
- path: http://egov-mdms-service.naljal:8080/egov-mdms-service/v1/_search
moduleName: tenant
masterName: tenants
tenantId: pb
filter: "[?(@.code == $tenant)]"
filterMapping:
- variable: $tenant
valueJsonpath: $.tenantId
uriResponseMapping:
- inJsonPath: $.MdmsRes.tenant.tenants
outJsonPath: $.Data.tenantData
- topic: egov.collection.receipt-create-reindex
configKey: REINDEX
indexes:
- name: collectionsreindex-v1.1
type: receipts
id: $.Bill[0].billDetails[0].id
isBulk: true
timeStampField: $.auditDetails.createdDate
jsonPath: $.hits

- topic: egov.collection.receipt-create-legacyindex
configKey: LEGACYINDEX
indexes:
- name: collectionsindex-v1
type: receipts
id: $.Bill[0].billDetails[0].id
isBulk: true
timeStampField: $.auditDetails.createdDate
jsonPath: $.Receipt.*
customJsonMapping:
indexMapping:
{
'Data':
{
'tenantId': '',
'transactionId': '',
'Bill': {},
'auditDetails': {},
'instrument': {},
'tenantData': {},
'@timestamp': 'timestamp',
},
}
fieldMapping:
- inJsonPath: $.tenantId
outJsonPath: $.Data.tenantId
- inJsonPath: $.transactionId
outJsonPath: $.Data.transactionId
- inJsonPath: $.Bill
outJsonPath: $.Data.Bill
- inJsonPath: $.auditDetails
outJsonPath: $.Data.auditDetails
- inJsonPath: $.instrument
outJsonPath: $.Data.instrument
- inJsonPath: $.@timestamp
outJsonPath: $.Data.@timestamp
mdmsMapping:
- path: http://egov-mdms-service.madhyapradesh:8080/madhyapradesh/egov-mdms-service/v1/_search
moduleName: tenant
masterName: tenants
tenantId: pb
filter: '[?(@.code == $tenant)]'
filterMapping:
- variable: $tenant
valueJsonpath: $.tenantId
uriResponseMapping:
- inJsonPath: $.MdmsRes.tenant.tenants
outJsonPath: $.Data.tenantData
Loading