Fintech & Search EngineDomain: Fintech Lending Operations

Building an Autocomplete Employer Categorization Search Engine

NVIT.SPACE built a specialized Company Category Checker API utilizing PostgreSQL full-text search, trigram indexing (`pg_trgm`), and Fastify API caching. The system provides fast, real-time autocomplete suggestions as the loan officer types.

Fast Real-Time Autocomplete Search
Internal Benchmark
Unified Multi-Bank Policy View
Internal Benchmark
Extensive Corporate Employer Dataset
Internal Benchmark
Zero Third-Party Search SaaS Dependencies
Internal Benchmark

* Note on engineering benchmarks: Latency measurements reflect internal benchmark testing environments under controlled loads with optimized B-Tree database indexes and API response caching. Actual production performance varies based on hardware provisioning, network conditions, payload size, and concurrent system load.

Operational Problem Context

Challenge & Bottleneck

A single corporate employer might appear as 'HCL Technologies Ltd', 'HCL Tech', or 'HCL' across different banking policy lists. Underwriters required an instant prefix and fuzzy autocomplete search tool to identify verified company tiers in real time.

Core Bottleneck: Lenders classify corporate employers into Category A, B, C, and D tiers to determine personal loan interest rates and borrowing limits. Loan officers struggled to match company names accurately due to typographical differences, spelling variations, and fragmented bank tier sheets.
Architecture Breakdown

Engineered Architecture Highlights

1

Trigram and ILIKE prefix search indexing large volumes of registered corporate employer entities.

Trigram and ILIKE prefix search indexing large volumes of registered corporate employer entities.

2

Fast autocomplete API endpoint with debounced client-side queries.

Fast autocomplete API endpoint with debounced client-side queries.

3

Multi-bank category aggregation displaying Cat A, B, C, or D status across major lenders in a unified card.

Multi-bank category aggregation displaying Cat A, B, C, or D status across major lenders in a unified card.

4

Direct integration with borrower application funnels to reference indicative interest rate tiers.

Direct integration with borrower application funnels to reference indicative interest rate tiers.


Technical Trade-offs

Key Engineering Decisions & Rationale

Trigram & B-Tree Indexing

Rationale: Enabling PostgreSQL `pg_trgm` indexes allowed flexible fuzzy matching without the heavy operational overhead of Elasticsearch.

Debounced API Calls

Rationale: In internal benchmark testing, client-side 250ms debouncing reduced redundant autocomplete API queries by ~70% during continuous user input.


Need a Similar High-Throughput System?

Discuss architecture, database scaling, and deployment schedules with our software leads.