This repository contains three Elasticsearch implementations demonstrating different search approaches, built following the official Elasticsearch Search Labs Tutorial.
Traditional keyword-based search implementation
- ✅ Basic search queries with relevance scoring
- 📄 Pagination (
from/size) - 🔍 Filtering with boolean queries
- 📊 Faceted search with aggregations
- ⚡ Performance optimized settings
Vector similarity search implementation
- 🤖 Dense vector embeddings (sentence-transformers)
- 🔢 k-NN search
- 🔄 Hybrid vector+keyword search
- 🏎️ Optimized for production workloads
Context-aware search using ELSER v2
- 🧠 ELSER v2 model deployment
- 💡 Semantic query expansion
- 🔄 Hybrid semantic+keyword search
| Component | Requirement |
|---|---|
| Elasticsearch | 8.x+ recommended |
| Python | 3.8+ |
| Dependencies | See requirements.txt |
- follow the project setup in Elasticsearch Search Labs Tutorial.
- replace the files by the files in this repo and u re free to go

