DIGIT Urban
PlatformDomainsAcademyDesign SystemFeedback
v2.3
v2.3
  • DIGIT
  • Training Event
  • Architecture
  • Roadmap
  • Release Notes
    • MDMS Configuration & Service Build Updates
    • FSM Release Notes
    • HRMS Release Notes
    • EDCR Release Notes
    • Bill Amendment Release Notes
  • Products & Modules
    • mCollect (MCS)
      • mCollect Master Data Templates
        • Service Category
        • Service Sub Category
        • Service Sub Category GL Code Mapping
      • mCollect Roadmap
      • mCollect User Manual
        • MCS Citizen User Manual
        • MCS Employee User Manual
    • Trade License (TL)
      • TL Brochure
      • TL Roadmap
      • TL Module Functional Specifications
      • TL Workflows
      • TL Implementation Guide
      • TL Master Data Templates
        • Trade Type
        • Trade Sub Type
        • Trade Category
        • Trade License Fee
        • Structure Sub Type
        • Structure Type
        • Trade License Document Attachment
      • TL Service Configuration
      • TL User Manual
        • Citizen User Manual
        • Employee User Manual
      • TL Demo Script
    • Public Grievances & Redressal (PGR)
      • PGR Brochure
      • PGR Roadmap
      • PGR Module Functional Specifications
      • PGR Workflows
      • PGR Master Data Templates
        • Grievance Type
        • Grievance Sub Type
      • PGR Service Configuration
        • PGR Migration
      • PGR Implementation Guide
      • PGR User Manual
        • Complaint Types List
        • Employee User Manual
        • Citizen User Manual
      • PGR Demo Script
    • Property Tax
      • PT Brochure
      • PT Roadmap
      • PT Module Functional Specifications
      • PT Workflows
      • PT Implementation Guide
      • PT Master Data Templates
        • Mutation Fee
        • Rebate Rates
        • Penalty Rates
        • Interest Rates
        • Tax Rates
        • Unit Rates
        • Special Category Documents
        • Owner Special Category
        • Ownership Sub Category
        • Ownership Category
        • Usage Category Detail
        • Road Type
        • Construction Type
        • Property Type
        • Property Sub Type
        • Usage Category Major
        • Usage Category Minor
        • Usage Category Sub Minor
      • PT Data Migration
      • PT User Manual
        • Citizen User Manual
        • Employee User Manual
    • Water & Sewerage (W&S)
      • W&S Module Functional Specifications
      • Sewerage Charges Master Data Templates
        • Sewerage Rates
        • Sewerage Penalty Rates
        • Sewerage Interest Rates
      • Water Charges Master Data Templates
        • Water Rates (Metered)
        • Pipe Size Types
        • Water Source Types
        • Water Rates (Non-Metered)
        • Water Penalty Rates
        • Water Interest Rates
      • W&S User Manual
        • W&S Citizen User Manual
        • W&S Employee User Manual
    • Online Building Plan Approval System (OBPAS)
      • OBPAS Module Functional Specifications
      • OBPAS Master Data Templates
        • Fee Structure
        • NOC Departments
        • Stakeholders Type
        • List Of Services
        • Service-Wise Documents
        • Building Occupancy
        • Building Sub Occupancy
        • Building Usage
        • Inspection Checklist
        • Town Planning Schemes
      • OBPAS Brochure
      • OBPAS User Manual
        • OBPAS Citizen User Manual
        • OBPAS Employee User Manual
    • Faecal Sludge Management (FSM)
      • FSM Service Configuration
      • FSM Calculator v1.0
      • FSM Vendor Registry v1.0
      • FSM Vehicle Registry v1.0
      • FSM User Manual
        • Citizen User Manual
        • Employee User Manual
        • DSO User Manual
        • Septage Treatment Plant Operator User Manual
    • Finance
      • Finance Implementation Guide
      • Finance User Manual
        • Employee User Manual
        • Admin User Manual
        • Finance Reports Manual
      • Finance Module Functional Specifications
      • Finance Master Data Templates
        • Bank Account
        • Chart Of Accounts
        • Funds
        • Function
        • Contractors
        • Suppliers
        • Schemes
        • Sub Schemes
        • Banks
        • Bank Branch
        • Deduction
        • Opening Balances
        • Sub Ledger Category
        • Sub Ledger Master
    • Fire NOC
      • Fire NOC Master Data Templates
        • Building Usage Type
        • Building Sub Usage Type
        • Fire Station Master
        • Areas Served Master
        • Fire Station Mapping
        • Fire NOC Fee
      • Fire NOC User Manual
        • Fire NOC Citizen User Manual
        • Fire NOC Employee User Manual
    • DIGIT Service Configuration
      • Core Services
        • Workflow Services
        • Location Services
        • User Services
        • Access Control Services
        • PDF Generation Service
        • MDMS (Master Data Management Service)
        • Payment Gateway Service
        • User Session Management In DIGIT
        • Indexer Service
        • URL Shortening Service
      • Business Service
        • Bill Amendment
      • Municipal Service
        • PGR Services 2.0
          • PGR Migration
        • Trade-License Service
        • BPA Service
          • BPA Service Setup and Configuration
          • BPA Calculator Service
          • Land Services
          • Noc Services
      • Utilities
    • Product FAQs
  • Configuration Guide
    • Git Repos
    • Setting up DIGIT
      • Configuring InfraOps
      • Setting up DIGIT Environment
      • Email And SMS Setup
      • FileStore Setup
      • Setting Up SSL Certificate
      • Periodic Log Cleanup
    • Setting up Master Data
      • MDMS Overview
      • Configuring Tenants
      • Configuring Master Data
      • Adding New Master
      • State Level Vs City Level Master
    • Master Data Collection Templates
      • Environment Setup
        • State Level Setup
          • Tenants Information
          • SMS Account Configuration
          • Email Account Configuration
          • Google Play Store Account
          • Payment Gateway Configuration
          • POS Integration Configuration
          • Domain Name Configuration
          • SSL Configuration
          • ULB Departments
          • ULB Designations
          • Localization
          • Google Map Configuration
        • ULB Level Setup
          • Boundary Hierarchies
          • Boundary Data
          • Cross Hierarchy Mapping
          • ULB Bank Accounts
      • Module Setup
        • Web Portals Templates
          • State Portal
          • ULB Portal
        • HRMS Data Templates
          • User Roles
          • System Users
        • Billing And Payments Data Templates
          • Tax Heads
          • Receipt Format
          • Demand Bill Format
        • DSS Data Templates
          • KPI Acceptance
        • Workflow Data Templates
          • Workflow Actions
          • Workflow Levels
          • Workflow Process
          • Workflow Notifications
        • Common Configuration Details
          • Standard Document List
          • Service Document Mapping
          • Checklist
          • Configuring Data FAQs
    • Configuring Workflows
      • Setting Up Workflows
      • Configuring Workflows For An Entity
    • Configuring Services
      • API Dos and Don'ts
      • Setting Up Service Locally
      • Configuring New Reports
        • Types Of Reports Used In Report Service
        • Impact Of Heavy Reports On Platform
      • Customizing PDF Notices And Certificates
        • Integration Of PDF In UI For Download And Print PDF
        • Customizing PDF Receipts & Certificates
    • Persister Configuration
    • Indexer Configuration
    • Setting up a Language
      • Adding New Language
      • Setting Up Default Language For SMS & Emails
    • Configuring Localization
      • Setup Base Product Localization
      • Configure SMS and Email
    • Setting Up SMS Gateway
      • Using The Generic GET & POST SMS Gateway Interface
    • Configuration FAQs
    • Setting Up eDCR Service
    • Adding Roles To System
    • Mapping Roles With APIs
    • DSS Configuration And Setup
      • Building New Dashboards
    • Setting Up Finance Service
    • Adding New APIs For Access
    • Deployment Of App on Play Store
  • Customization Guide
    • Frontend/UI
    • DIGIT Customization
      • API Do's & Don'ts
      • Writing A New Customer
      • Enhancing Existing Service
  • Deployment Guide
    • Setup Requirements
      • Tech Enablement Training - Essential Skills and Pre-requisites
      • DIGIT Rollout Program Governance
      • DevOps Skills Requirements
      • Infra Requirements
      • Team Composition for DIGIT Implementation
      • Infra Best Practices
      • Operational Best practices
      • Why Kubernetes for DIGIT
    • Supported Clouds
      • Google Cloud
      • Azure
      • AWS
      • VSphere
      • SDC
      • NIC
    • Deployment - Key Concepts
      • Security Practices
      • CI/CD
      • Readiness & Liveness
      • Resource Requests & Limits
    • Understanding ERP Stack
      • ERP Monolithic Architecture
      • ERP Hybrid Architecture
      • ERP Coexistence Architecture
      • APMDP-HYBRID-INFRA-ARCHITECTURE
      • eGov SmartCity eGovernance Suite
      • ERP Deployment Process
      • ERP Release Process
      • ERP User Guide
    • Deploying DIGIT Services
      • Deployment Architecture
      • Routing Traffic
      • Backbone Deployment
    • Troubleshooting
      • Distributed Tracing
      • Logging
      • Monitoring & Alerts
  • Training Resources
    • Training Videos
  • Partner Support
    • eGov Enablement Support for DIGIT
    • Troubleshooting Guide
Powered by GitBook

​All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page
  • Overview
  • Pre-requisites
  • Key Functionalities
  • Deployment Details
  • Interaction Diagram
  • Configuration Details
  • API Details
  • Reference Docs
  • Doc Links

Was this helpful?

Edit on Git
Export as PDF
  1. Products & Modules
  2. DIGIT Service Configuration
  3. Core Services

Indexer Service

Overview

Indexer service runs as a separate service. This service is designed to perform all the indexing tasks of the digit platform. The service reads records posted on specific kafka topics and picks the corresponding index configuration from the yaml file provided by the respective module. Objective of Indexer service are listed as below.

  • To provide a one stop framework for indexing the data to elasticsearch.

  • To create provision for indexing live data, reindexing from one index to the other and indexing legacy data from the datastore.

Pre-requisites

Before you proceed with the configuration, make sure the following pre-requisites are met -

  1. Prior Knowledge of Java/J2EE

  2. Prior Knowledge of SpringBoot

  3. Prior Knowledge of Elasticsearch

  4. Prior Knowledge of REST APIs and related concepts like path parameters, headers, JSON etc.

  5. Prior Knowledge of Kafka and related concepts like Producer, Consumer, Topic etc.

Key Functionalities

  • Performs three major tasks namely: LiveIndex, Reindex and LegacyIndex.

  • LiveIndex: Task of indexing the live transaction data on the platform. This keeps the es data in sync with the db.

  • Reindex: Task of indexing data from one index to the other. ES already provides this feature, indexer does the same but with data transformation.

  • LegacyIndex: Task of indexing legacy data from the tables to ES.

  • Provides flexibility to index the entire object, a part of the object or an entirely different custom object all using one input json from modules.

  • Provides features for customizing index json by field mapping, field masking, data enrichment through external APIs and data denormalization using MDMS.

  • One stop shop for all the es index requirements with easy-to-write and easy-to-maintain configuration files.

  • Designed as a consumer to save API overhead. The consumer configs are written from scratch to have complete control over the consumer behaviour.

Deployment Details

  • Step 1: Write configuration as per your requirement. Structure of the config file is explained later in the same doc.

  • Step 3: Provide the absolute path of the checked-in file to DevOps, to add it to the file-read path of egov-indexer. The file will be added to egov-indexer's environment manifest file for it to be read at start-up of the application.

  • Step 4: Run the egov-indexer app, Since it is a consumer, it starts listening to the configured topics and indexes the data.

Interaction Diagram

Configuration Details

For Indexer Configuration, please refer to the document in Reference Docs table given below.

API Details

a) POST /{key}/_index

Receive data and index. There should be a mapping with topic as {key} in index config files.

b) POST /_reindex

This is used to migrate data from one index to another index

c) POST /_legacyindex

This is to run LegacyIndex job to index data from DB. In the request body the URL of the service which would be called by indexer service to pick data, must be mentioned.

In legacy indexing and for collection-service record LiveIndex kafka-connect is used to do part of pushing record to elastic search. For more details please refer to document mentioned in document list.

Reference Docs

Doc Links

PreviousUser Session Management In DIGITNextURL Shortening Service

Last updated 4 years ago

Was this helpful?

Step 2: Check-in the config file to a remote location preferably github, currently we check the files into this folder -for dev

All content on this page by is licensed under a .

https://github.com/egovernments/configs/tree/DEV/egov-indexer
Swagger Documentation
eGov Foundation
Creative Commons Attribution 4.0 International License
Creative Commons License
194KB
using-kafka-connect.pdf
pdf
Using kafka-connect in egov-indexer reindexing jobs to push records to elastic search
88KB
indexer-configuration.pdf
pdf
Indexer Configuration