Skip to content

Search Database Configuration

Database Selection

Set SEARCH_DB to select the search store:

SEARCH_DB=elasticsearch    # bm25 | elasticsearch | opensearch | none

Framework Selection

Set SEARCH_BACKEND to choose the framework. All three stores are supported with both:

SEARCH_BACKEND=llamaindex  # or langchain

BM25 (Built-in)

Local in-memory BM25 full-text search with TF-IDF ranking. No external service required.

SEARCH_DB=bm25

Elasticsearch

Enterprise search engine with advanced analyzers, faceted search, and real-time analytics.

  • Dashboard: Kibana (http://localhost:5601)
SEARCH_DB=elasticsearch

OpenSearch

AWS-led open-source fork with native hybrid scoring (vector + BM25) and k-NN algorithms.

  • Dashboard: OpenSearch Dashboards (http://localhost:5601)
SEARCH_DB=opensearch
SEARCH_DB=none

See Search Databases for more details.