█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

XERJ

एक लोकल, Elasticsearch-compatible सर्च इंजन, जो किसी भी फ़ोल्डर को अपने-आप ऑटोइंडेक्स कर देता है, ताकि coding agents grep के बजाय उसी से query करें

Code Indexing & Searchओपन सोर्स
ताज़ा
v1.0.0-rc.77
अपडेट किया गया
21 सित॰ 2026
भाषा
Rust
लाइसेंस
Apache-2.0
$curl -fsSL https://xerj.org/get | sh

नया क्या है

v1.0.0-rc.7721 सित॰ 2026

Release candidate that wires the index segment path to the object-storage backend and fixes reader-capture validation during search.

संक्षेप में

XERJ क्या है?

XERJ एक लोकल, Elasticsearch-compatible सर्च इंजन, जो किसी भी फ़ोल्डर को अपने-आप ऑटोइंडेक्स कर देता है, ताकि coding agents grep के बजाय उसी से query करें. यह Retrieval & Knowledge (RAG) टूल्स की Code Indexing & Search श्रेणी में आता है; ओपन सोर्स है, Rust में लिखा गया है और Apache-2.0 लाइसेंस के तहत है।

अपडेट किया गया Markdown वर्शन ↗

सारांश

XERJ एक ओपन सोर्स सर्च इंजन है, जो Rust में लिखा गया है और एक single static binary के रूप में आता है। इसका मुख्य फ़ीचर है autoindex: किसी फ़ोल्डर पर `xerj autoindex` चलाएँ, और यह हर फ़ाइल को पहचानता है, समझता है कि वह किस तरह की है, और जो भी dataset मिले उसके लिए एक index बना देता है। इसके लिए कोई schema लिखने या pipeline कॉन्फ़िगर करने की ज़रूरत नहीं होती। Source code tree-sitter से होकर गुज़रता है, इसलिए वह सादे text की तरह नहीं, बल्कि अपने symbols और line numbers के साथ इंडेक्स होता है; CSV, JSON, YAML, SQLite, PDF, DOCX, HTML, mail और आम log formats भी संभाले जाते हैं।

यह प्रोजेक्ट सीधे AI coding agents को ध्यान में रखकर बना है। किसी agent को grep करके पूरी फ़ाइलें अपने context में पढ़नी पड़ें, इसके बजाय वह XERJ से query करता है और file व line के साथ ranked passages वापस पाता है। README में मुख्य use case को reference coding कहा गया है: agent अपने task के सबसे नज़दीकी open-source repositories को clone और index करता है, और फिर अपना कोड लिखने से पहले देखता है कि उन्होंने कोई समस्या कैसे हल की थी। प्रोजेक्ट एक controlled study का हवाला देता है, जिसमें same solve rate पर grep-driven agent की तुलना में coding agent के output tokens को 2.7x घटा दिया गया। साथ ही वह बताता है कि यह फ़ायदा private या niche code पर सबसे ज़्यादा है, जिसे model ने memorise नहीं किया है।

The XERJ Console AI Overview dashboard showing query volume, token spend, per-model latency and top documents
The XERJ Console's AI Overview dashboard from the project's demo walkthroughXERJ demo page ↗

अंदर से XERJ Elasticsearch REST API लागू करता है — indices, documents, bulk, search, aggregations, mappings, kNN, scroll और `_cat` endpoints — ताकि मौजूदा Elasticsearch clients और Kibana उससे जुड़ सकें। प्रोजेक्ट एक ES YAML conformance suite भी प्रकाशित करता है, जो हर commit पर चलता है। वही binary एक MCP server भी है, जो search, semantic, vector और hybrid search के साथ durable agent memory (`/_memory/{namespace}`) और एक second-brain link index को tools के रूप में देती है। इसका license Apache-2.0 है।

यह क्या करता है

  • `xerj autoindex <folder>` code, docs, logs, PDFs, SQLite, CSV और दूसरी फ़ाइलों से datasets पहचानता है और typed indices बनाता है, बिना किसी schema के
  • Tree-sitter पर आधारित AST-aware code indexing, साथ में `xerj search` (file:line के साथ ranked passages) और `xerj def` (go-to-definition) जैसे CLI commands
  • Full-text BM25, vector kNN और hybrid search, Elasticsearch-compatible query syntax के ज़रिए
  • Elasticsearch REST API बोलता है, इसलिए आधिकारिक clients और Kibana बिना बदलाव के जुड़ जाते हैं
  • बिल्ट-इन MCP server (`xerj mcp`), जिसमें search, agent memory और knowledge-graph link index को कवर करने वाले दस tools हैं
  • Linux, macOS और Windows के लिए x86-64 और arm64 पर single static binary, जिसमें offline डिफ़ॉल्ट embedder और opt-in neural embedder शामिल है

शुरू करें

XERJ एक ही binary के रूप में इंस्टॉल होता है। नीचे दिया quickstart TLS और auth बंद करके एक लोकल development node चलाता है। README में साफ़ लिखा है कि यह सिर्फ़ dev machine पर अकेले उपयोगकर्ता के लिए है, क्योंकि पोर्ट तक पहुँच सकने वाला हर caller superuser बन जाता है। एक नया node सिर्फ़ 127.0.0.1 से bind होता है।

Binary इंस्टॉल करें

Install script आपके platform के लिए prebuilt binary चुनता है (डिफ़ॉल्ट रूप से ~/.local/bin में)। Windows पर PowerShell installer का उपयोग करें: `irm https://xerj.org/get.ps1 | iex`।

bashbash
curl -fsSL https://xerj.org/get | sh

लोकल node शुरू करें और फ़ोल्डर इंडेक्स करें

Server शुरू करें, फिर http://localhost:9200 के जवाब देने तक इंतज़ार करें, और किसी project पर autoindex चलाएँ। XERJ हर पहचाने गए dataset के लिए एक index बनाता है।

bashbash
xerj --insecure --data-dir ./data &
xerj autoindex ~/my-project
Terminal session from the XERJ demo bulk-ingesting chat events over the Elasticsearch _bulk API and querying the index
A frame from the project's demo: bulk ingest and search against a local XERJ node with plain curlXERJ README ↗

CLI से या किसी भी Elasticsearch client से search करें

ranked passages और definitions के लिए built-in commands इस्तेमाल करें, या सीधे Elasticsearch API को query करें।

bashbash
xerj search "how do we rotate the WAL segment"
xerj def "euler_to_rotationmatrix"

curl localhost:9200/_cat/indices
curl "localhost:9200/ax-*/_search?q=checkout+error"

इसे अपने coding agent से जोड़ें

`xerj init` XERJ को Claude Code या Cursor के लिए सेट करता है (MCP और एक skill के साथ)। दूसरे MCP hosts के लिए `xerj mcp` को stdio server के रूप में चलाएँ, और binary के absolute path से उसे node की ओर इंगित करें।

jsonjson
{
  "mcpServers": {
    "xerj": {
      "command": "/home/you/.local/bin/xerj",
      "args": ["mcp"],
      "env": { "XERJ_URL": "http://localhost:9200" }
    }
  }
}

किसी भी साझा उपयोग के लिए auth चालू रखकर चलाएँ

--insecure के बिना auth चालू रहता है और पहले boot पर एक admin key बनती है। उसे XERJ_API_KEY के ज़रिए autoindex को दें (इसे xerj.toml से नहीं पढ़ा जाता)।

bashbash
xerj --data-dir ./data &
export XERJ_API_KEY="$(cat ./data/admin.key)"
xerj autoindex ~/my-project

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • जब coding agent बार-बार पूरी फ़ाइलें context में पढ़ता रहता है और आप चाहते हैं कि वह इसके बजाय file और line के साथ ठीक वही passage निकाले, तब इसका उपयोग करें
  • reference coding के लिए इसका उपयोग करें: अपनी समस्या के सबसे नज़दीकी open-source projects को index करें, ताकि agent कोड लिखने से पहले देख सके कि उन्होंने उसे कैसे हल किया
  • एक ही index command से मिश्रित file types वाले बड़े tree पर security audit या codebase Q&A चलाने के लिए इसका उपयोग करें
  • जब laptop या छोटे host पर Elasticsearch clients, logs और dashboards के लिए एक हल्का, single-binary drop-in चाहिए, तब इसका उपयोग करें

How XERJ compares

XERJ alongside other open-source code indexing & search tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
CodeGraph★ 79.4kएजेंट के सवाल का जवाब एक ही tool call में देने वाला लोकल कोड नॉलेज ग्राफ़
codebase-memory-mcp★ 49.5kMCP के ज़रिए agents तक पहुँचने वाला आपके codebase का Tree-sitter knowledge graph
GitNexus★ 49kकोडबेस को नॉलेज ग्राफ़ में इंडेक्स करता है और उसे MCP के ज़रिए एजेंट्स तक पहुँचाता है
code-review-graph★ 33kकोडबेस का Tree-sitter map बनाकर उसे MCP के ज़रिए AI कोडिंग टूल्स को देता है, ताकि वे किसी टास्क के लिए सिर्फ़ ज़रूरी कोड पढ़ें
XERJ★ 23.4kएक लोकल, Elasticsearch-compatible सर्च इंजन, जो किसी भी फ़ोल्डर को अपने-आप ऑटोइंडेक्स कर देता है, ताकि coding agents grep के बजाय उसी से query करें
Claude Context★ 12.8kClaude Code के लिए पूरे कोडबेस में सेमांटिक कोड सर्च देने वाला MCP प्लगइन
Graft★ 11.6kहर कोडबेस का नॉलेज ग्राफ़ एक बार बनाएँ, फिर उसे हर कोडिंग एजेंट को दें
Semble★ 6.5kसिर्फ़ CPU पर चलने वाला कोड सर्च, जो पूरी फ़ाइलों की जगह एजेंट को snippets देता है