Elastic Search for BizFirst
Complete guide to Elastic Search integration — full-text search, analytics, aggregations, Query DSL, performance tuning, index lifecycle management, and production clustering.
IElasticProvider.IndexAsync() and IElasticProvider.SearchAsync() interfaces.
Getting Started
Quick Start (10 min)
Index your first document and perform a search query.
Indices & Shards
Index architecture, sharding strategy, replica configuration, node distribution.
Field Mappings & Types
Text, keyword, numeric, date fields. Analyzers, tokenizers, custom mapping.
Search & Query
Query DSL
Match, term, range, bool queries. Query composition, nested queries, highlighting.
Full-Text Search
Text analysis, stemming, stop words, fuzzy matching, search ranking.
Filters & Aggregations
Bucket aggregations, metric aggregations, date histograms, nested aggregations.
Operations & Optimization
Indexing Strategy
Multi-tenant indexing, index rollover, time-series indices, partition strategy.
Performance Tuning
Shard sizing, segment merging, query optimization, caching strategies.
Index Lifecycle Management
ILM policies, hot/warm/cold tiers, rollover, retention, data tiering.
Backup, Monitoring & Clustering
Backup & Restore
Snapshot API, snapshot repositories, incremental backups, recovery procedures.
Clustering & Replication
Master nodes, data nodes, ingest nodes, cross-cluster replication.
Monitoring & Diagnostics
Cluster health, node stats, index metrics, alerting, slow query logging.
Key Features
Sub-100ms search queries on billion-document scales. Optimized for speed.
Automatic sharding and replication. Add nodes to scale without downtime.
Index-per-tenant or field-based isolation. Complete data separation and security.
Clustering, replication, backup, monitoring, ILM policies, failover.
Architecture at a Glance
| Component | Role | Responsibility |
|---|---|---|
| Application | Search Clients | Index and search via IElasticProvider |
| Elastic Abstraction | ElasticProvider, Query Builder |
Tenant isolation, index routing, query construction |
| Elasticsearch Node | Master, Data, Ingest, ML nodes | Indexing, searching, aggregations, transformation |
| Storage Layer | Segments, Lucene indices | Inverted index, document storage, segment management |
| Clustering | Discovery, replication, failover | Node coordination, shard allocation, recovery |
Use Cases & Comparison
| Use Case | Elastic Search | PostgreSQL | SQL Server |
|---|---|---|---|
| Full-Text Search | ✅ Optimized | ⚠ Limited | ⚠ Limited |
| Analytics / Aggregations | ✅ Advanced | ⚠ Basic | ✅ Good |
| Transactional Data | ❌ No | ✅ Optimized | ✅ Optimized |
| Horizontally Scalable | ✅ Designed | ⚠ Limited | ⚠ Enterprise HA |
Navigation Guide
New to Elastic Search in BizFirst? Start here:
- Quick Start — Index and search your first document
- Indices & Shards — Understand cluster architecture
- Field Mappings — Design your document schema
- Query DSL — Write complex search queries
- Performance Tuning — Optimize search speed
Building a full-text search experience? See Full-Text Search for analyzers, stemming, and ranking.
Running production at scale? Explore Clustering & Replication for HA and disaster recovery.
Other Infrastructure Services
PostgreSQL
Relational database for transactional data and application state.
Storage & S3
Multi-tenant file storage with deduplication and backup.
Email Service
Multi-provider email delivery system.
SQL Server
Enterprise data warehousing and analytics.
Status: 🟢 Production Ready | Version: 1.0 | Last Updated: 2026-05-30