AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
{
"generated_by": "scripts/seo/build_articles.py",
"section": "answers",
"articles": [
{
"title": "A local search tool for Codex and Cursor",
"question": "Search tool for a Codex agent",
"canonical_url": "https://xerj.org/answers/local-search-mcp-for-codex-and-cursor",
"markdown_url": "https://xerj.org/answers/local-search-mcp-for-codex-and-cursor.md",
"cluster": "Agent access and memory",
"updated": "2026-10-28",
"summary": "xerj init writes the MCP entry for Claude Code, Cursor and Codex when those folders exist. On main, xerj mcp serves 23 tools, or 20 with no hub key.",
"intent_group": "Agent access and memory",
"answer": "A search tool for a Codex agent starts with `xerj init`. The command writes the MCP entry for Claude Code, and it writes Cursor and Codex only when those folders already exist. Codex reads the entry in trusted projects only. On main `xerj mcp` serves 23 tools from a running node.",
"queries": [
"search tool for codex agent",
"plug search into cursor",
"codex mcp server local search",
"mcp servers for data processing",
"llms.txt search engine for agents"
]
},
{
"title": "API search or vector search for an agent",
"question": "MCP/API search or vector search — which should an agent call?",
"canonical_url": "https://xerj.org/answers/mcp-api-search-or-vector-search",
"markdown_url": "https://xerj.org/answers/mcp-api-search-or-vector-search.md",
"cluster": "Agent access and memory",
"updated": "2026-10-28",
"summary": "One question through 4 XERJ MCP tools returned 3 different result sets. Hybrid RRF returned 6 documents and merged both lists on the default lexical embedder.",
"intent_group": "retrieval research and eval",
"answer": "Which should an agent call, MCP or API search, or vector search? Start with xerj_search, because XERJ's default embedder is lexical feature hashing. In our MCP capture the same question through 4 XERJ tools returned 3 different result sets, and the fused xerj_hybrid_search call returned 6 documents against 4, 3 and 3 for the single-signal tools.",
"queries": [
"local search engine for AI agents MCP server BM25",
"mcp server bm25"
]
},
{
"title": "Code search MCP for Claude Code: cite file:line, not grep",
"question": "I need my agent to find a passage and cite the file, not dump the whole tree. How?",
"canonical_url": "https://xerj.org/answers/code-search-mcp-for-claude-code",
"markdown_url": "https://xerj.org/answers/code-search-mcp-for-claude-code.md",
"cluster": "Agent access and memory",
"updated": "2026-10-31",
"summary": "Local code search MCP for Claude Code with file:line citations: index with xerj autoindex, call xerj_search. One captured call cited 2 symbols without opening files.",
"intent_group": "code search for agents",
"answer": "How do I make my agent find a passage and cite the file, not dump the whole tree? Index the repository with xerj autoindex, register xerj mcp in the agent host, and query the defs field. One captured xerj_search call returned 2 documents whose symbols arrays gave file and line, including merge_segments at src/lib.rs line 17.",
"queries": [
"code search with file line citations",
"local code search MCP Claude Code fewer tokens than grep",
"MCP server search local codebase",
"cited answers file and line MCP server"
]
},
{
"title": "MCP server to search local files from ChatGPT or Claude",
"question": "Can ChatGPT search a folder on my laptop, or do I need something else?",
"canonical_url": "https://xerj.org/answers/give-chatgpt-claude-local-file-access",
"markdown_url": "https://xerj.org/answers/give-chatgpt-claude-local-file-access.md",
"cluster": "Agent access and memory",
"updated": "2026-10-28",
"summary": "xerj mcp is a stdio MCP server that proxies 23 tools to a running XERJ node, so ChatGPT, Claude or Cursor search an indexed local folder instead of opening files.",
"intent_group": "Find the right tool",
"answer": "Can ChatGPT or Claude search a folder on my laptop, or do I need something else? You need a local MCP server. Install XERJ, start a node, index the folder with xerj autoindex, and point the agent host at xerj mcp with an absolute path. One xerj_search call then reads the indexed local files.",
"queries": [
"mcp server search local files",
"claude code plugin local search",
"cursor mcp full text search"
]
},
{
"title": "Agentic memory vs RAG: what is the difference?",
"question": "What is the difference between agentic memory and RAG?",
"canonical_url": "https://xerj.org/answers/agentic-memory-vs-rag",
"markdown_url": "https://xerj.org/answers/agentic-memory-vs-rag.md",
"cluster": "Agent memory: concepts",
"updated": "2026-10-30",
"summary": "RAG retrieves evidence for generation. Agentic memory stores information across tasks, often retrieved with RAG. Compare the roles and use both in one local node.",
"intent_group": "agent memory",
"answer": "What is the difference between agentic memory and RAG? RAG retrieves evidence to inform generation, including documents or conversation history. Agentic memory retains information across tasks; RAG can be its retrieval step. Both depend on good search, so XERJ serves document search and agent memory from the same local binary.",
"queries": [
"agentic memory vs RAG",
"agent memory vs RAG",
"do AI agents need memory or RAG"
]
},
{
"title": "Agentic RAG vs RAG: what changes and when it is worth it",
"question": "What is agentic RAG, and how is it different from regular RAG?",
"canonical_url": "https://xerj.org/answers/agentic-rag-vs-rag",
"markdown_url": "https://xerj.org/answers/agentic-rag-vs-rag.md",
"cluster": "Agent memory: concepts",
"updated": "2026-10-30",
"summary": "RAG searches once and answers. Agentic RAG lets the model plan, search again and check results. Step through one question and see when the loop pays off.",
"intent_group": "rag",
"answer": "What is agentic RAG and how is it different from RAG? Plain RAG runs one search for the question and answers from the results. Agentic RAG lets the model plan, choose tools, search several times and check what it found before answering. It handles multi-step questions better and costs more model calls.",
"queries": [
"agentic rag",
"agentic rag vs rag",
"RAG vs agentic RAG",
"what is agentic rag"
]
},
{
"title": "What is agentic memory? A plain answer",
"question": "What is agentic memory?",
"canonical_url": "https://xerj.org/answers/what-is-agentic-memory",
"markdown_url": "https://xerj.org/answers/what-is-agentic-memory.md",
"cluster": "Agent memory: concepts",
"updated": "2026-10-31",
"summary": "Agentic memory is memory an AI agent writes and reads itself through tools, so facts survive past one chat. What it is, the common types, and how to run it locally.",
"intent_group": "agent memory",
"answer": "What is agentic memory? It is memory that an AI agent manages itself: the agent decides what to save, writes it through a tool call, and searches it again in a later task or session. It differs from a chat history because it is stored outside the model and survives restarts. XERJ serves it as a search endpoint.",
"queries": [
"agentic memory",
"what is agentic memory",
"AI agent memory",
"agentic memory types",
"long-term memory for AI agents"
]
},
{
"title": "What is an MCP memory server?",
"question": "What is an MCP memory server?",
"canonical_url": "https://xerj.org/answers/what-is-an-mcp-memory-server",
"markdown_url": "https://xerj.org/answers/what-is-an-mcp-memory-server.md",
"cluster": "Agent memory: concepts",
"updated": "2026-10-28",
"summary": "An MCP memory server gives an AI assistant tools to save and recall facts across chats over the Model Context Protocol. How it works and how XERJ serves one locally.",
"intent_group": "agent memory",
"answer": "What is an MCP memory server? It is a Model Context Protocol server that gives an AI assistant tools to save facts and recall them later, so memory survives across chats and clients. The assistant calls the tools itself. XERJ ships one inside its binary: xerj mcp exposes xerj_memory_store and xerj_memory_recall.",
"queries": [
"MCP memory server",
"what is an MCP memory server",
"mcp memory server claude code",
"local MCP memory server"
]
},
{
"title": "Should agent memory use a graph?",
"question": "Ask HN: Anyone using knowledge graphs for LLM agent memory/context management?",
"canonical_url": "https://xerj.org/answers/knowledge-graphs-for-agent-memory",
"markdown_url": "https://xerj.org/answers/knowledge-graphs-for-agent-memory.md",
"cluster": "Agent memory: link retrieval",
"updated": "2026-10-19",
"summary": "XERJ builds a bounded link index over indexed documents, not a graph database. Our capture found 7 edges, answered 1 and 2 hops, and refused 3.",
"intent_group": "agent memory",
"answer": "Is anyone using knowledge graphs for LLM agent memory and context management? Links help, but XERJ is not a graph database. It builds a bounded, graph-shaped link index over documents it already indexed. Our capture produced 7 edges over 6 documents, answered 1 hop with 3 edges and 2 hops with 6, and refused 3 hops.",
"queries": [
"temporal knowledge graph agent memory as-of query",
"agent memory with validity windows"
]
},
{
"title": "Stop agent memory filling with duplicate notes",
"question": "How do I dedup agent memory?",
"canonical_url": "https://xerj.org/answers/store-agent-memory-without-llm-call",
"markdown_url": "https://xerj.org/answers/store-agent-memory-without-llm-call.md",
"cluster": "Agent memory: model dependency",
"updated": "2026-10-31",
"summary": "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The default lexical embedder needs no model; neural or proxy embedding is opt-in.",
"intent_group": "agent memory",
"answer": "How do I dedup agent memory so it stops filling with duplicate notes? Send dedup: true on the store call. XERJ compares the new memory against what the namespace already holds and returns the existing id with deduplicated: true instead of writing a second document. There is no generative summarization step; the configured embedder still runs.",
"queries": [
"agent memory deduplication"
]
},
{
"title": "Evidence behind agent-memory links",
"question": "Agent memory: knowledge graphs aren't enough, we need a know-how graph",
"canonical_url": "https://xerj.org/answers/evidence-for-agent-memory-links",
"markdown_url": "https://xerj.org/answers/evidence-for-agent-memory-links.md",
"cluster": "Agent memory: provenance",
"updated": "2026-10-20",
"summary": "Every detected link in XERJ carries the exact line that taught it. All 7 edges in our capture had an evidence quote, and unlink wrote a tombstone.",
"intent_group": "agent memory",
"answer": "Knowledge graphs aren't enough for agent memory; how do you get a know-how graph with evidence? XERJ stores the line that taught each link. All 7 detected edges in our capture carried an evidence object with a quote, a filename and an offset, and retiring a link wrote a tombstone instead of deleting the edge.",
"queries": [
"agent memory that cites sources",
"temporal knowledge graph agent memory as-of query"
]
},
{
"title": "Give two agents private memory on one laptop",
"question": "How do I keep one agent's memory from leaking into another agent's?",
"canonical_url": "https://xerj.org/answers/private-agent-memory-namespaces",
"markdown_url": "https://xerj.org/answers/private-agent-memory-namespaces.md",
"cluster": "Agent memory: security",
"updated": "2026-10-19",
"summary": "XERJ keeps agent memory on local disk and made 0 outbound connections in our capture. Roles are stored but not enforced, so scoped API keys do the work.",
"intent_group": "agent memory",
"answer": "How do I keep one agent's memory from leaking into another agent's? Give each agent its own namespace and its own scoped API key. XERJ keeps memory on local disk, and our capture saw 0 non-loopback connections during store and recall, but roles are stored, not enforced, so the key is the boundary.",
"queries": [
"local first agent memory privacy"
]
},
{
"title": "Claude Code memory: CLAUDE.md, auto memory and MCP servers",
"question": "How does Claude Code memory work, and how do I give a coding agent persistent memory?",
"canonical_url": "https://xerj.org/answers/claude-code-memory",
"markdown_url": "https://xerj.org/answers/claude-code-memory.md",
"cluster": "Agent memory: setup",
"updated": "2026-10-30",
"summary": "Claude Code remembers through CLAUDE.md files and auto memory. See what loads at session start, where the limits are, and how a memory server adds recall.",
"intent_group": "agent memory",
"answer": "How does Claude Code memory work? Claude Code loads CLAUDE.md files you write and an auto memory index Claude writes at the start of every session. For more history than fits in context, or memory shared across agents, add an MCP memory server such as XERJ that the agent searches on demand.",
"queries": [
"claude code memory",
"memory for coding agents",
"claude code persistent memory",
"claude code auto memory"
]
},
{
"title": "Search Claude Code past sessions",
"question": "Search Claude Code past sessions",
"canonical_url": "https://xerj.org/answers/search-claude-code-past-sessions",
"markdown_url": "https://xerj.org/answers/search-claude-code-past-sessions.md",
"cluster": "Agent memory: setup",
"updated": "2026-10-20",
"summary": "Index Claude Code session JSONL and search the message field. On a 2026-10-20 fixture, zstd returned 2 hits in message_content; xerj search returned none.",
"intent_group": "Agent memory: setup",
"answer": "Search Claude Code past sessions by indexing the session JSONL and querying the message field. On 2026-10-20 a three-file fixture, not a live chat folder, indexed 8 records in 0.6 s. Searching zstd on message_content returned 2 hits. xerj search on the same words returned no match.",
"queries": [
"search claude code past sessions",
"index agent session jsonl and search it",
"why did we decide this search past chats",
"search local session jsonl for a decision",
"find a past claude code session by keyword"
]
},
{
"title": "Store user preferences an agent can recall later",
"question": "How do people store user preferences so an agent can recall them next week?",
"canonical_url": "https://xerj.org/answers/coding-agent-memory-across-sessions",
"markdown_url": "https://xerj.org/answers/coding-agent-memory-across-sessions.md",
"cluster": "Agent memory: setup",
"updated": "2026-10-31",
"summary": "XERJ keeps agent memory in a reserved index inside the data directory. We stored two memories, restarted the node, recalled both, then forgot one by id.",
"intent_group": "agent memory",
"answer": "How do people store user preferences so an agent can recall them next week? XERJ stores each memory as a document in a reserved index, .xerj-memory-{namespace}, inside the node's data directory. Our capture stored two memories, restarted the node on the same directory, recalled both by id, and one forget call removed exactly one.",
"queries": [
"agent memory local search past sessions",
"long term memory MCP server local"
]
},
{
"title": "Set the MCP memory storage path",
"question": "Memory MCP ignores custom storage path setting",
"canonical_url": "https://xerj.org/answers/set-mcp-memory-storage-path",
"markdown_url": "https://xerj.org/answers/set-mcp-memory-storage-path.md",
"cluster": "Agent memory: storage",
"updated": "2026-10-28",
"summary": "XERJ has no separate memory path. Agent memory lives in the node data directory as .xerj-memory-{namespace}, and the MCP server stores nothing itself.",
"intent_group": "agent memory",
"answer": "Why does the memory MCP ignore my custom storage path setting? XERJ has no memory-specific path. Agent memory is an ordinary index named .xerj-memory-{namespace} inside the node data directory, so --data-dir sets it, and the MCP server stores nothing itself. Our capture stored a memory, restarted on the same directory, and recalled it.",
"queries": [
"long term memory MCP server local"
]
},
{
"title": "Agent memory without Postgres or a vector database",
"question": "I want persistent agent memory without standing up Postgres or Qdrant. What do people use?",
"canonical_url": "https://xerj.org/answers/agent-memory-without-postgres-qdrant",
"markdown_url": "https://xerj.org/answers/agent-memory-without-postgres-qdrant.md",
"cluster": "Agent memory: topology",
"updated": "2026-10-28",
"summary": "Our capture ran agent memory on one XERJ process with three loopback sockets, no second data service, and a peak resident size of 100,928 kB.",
"intent_group": "agent memory",
"answer": "What do people use for persistent agent memory without Postgres or Qdrant? Use the search node you already run: XERJ stores a fact with POST /_memory/{namespace} and reads it back with _recall. Our capture ran store and recall in one process, three loopback sockets, no second data service, 100,928 kB peak resident memory.",
"queries": [
"memory layer for AI agents without vector database",
"long term memory MCP server local"
]
},
{
"title": "Ask questions about a GitHub repo without cloning it",
"question": "How can I ask questions about a GitHub repo without cloning it?",
"canonical_url": "https://xerj.org/answers/ask-questions-about-a-github-repo-without-cloning",
"markdown_url": "https://xerj.org/answers/ask-questions-about-a-github-repo-without-cloning.md",
"cluster": "Answers for coding agents",
"updated": "2026-10-28",
"summary": "Run xerj ask and get answers about a GitHub repo with file:line, the pinned commit and the licence, from a signed pre-indexed pack. Nothing to clone.",
"queries": [
"ask questions about a GitHub repo without cloning it",
"ask a GitHub repo without cloning"
]
},
{
"title": "Batch lookup CVE and GHSA IDs offline in one query",
"question": "How do I batch lookup CVE and GHSA IDs offline without hitting GitHub API rate limits?",
"canonical_url": "https://xerj.org/answers/batch-lookup-cve-ghsa-ids-offline",
"markdown_url": "https://xerj.org/answers/batch-lookup-cve-ghsa-ids-offline.md",
"cluster": "Answers for coding agents",
"updated": "2026-10-31",
"summary": "Load a signed advisory pack and look up CVE, GHSA and RUSTSEC IDs offline with source citations. The recorded six-ID run answered four and abstained on two.",
"queries": [
"batch lookup CVE and GHSA IDs offline",
"batch lookup CVE IDs and GHSA IDs without GitHub API rate limits"
]
},
{
"title": "Full-text search over JSONL and CSV files from the CLI",
"question": "How do I run full-text search over JSONL files from the CLI and query a folder with BM25?",
"canonical_url": "https://xerj.org/answers/full-text-search-over-jsonl-files-cli",
"markdown_url": "https://xerj.org/answers/full-text-search-over-jsonl-files-cli.md",
"cluster": "Answers for coding agents",
"updated": "2026-10-31",
"summary": "xerj autoindex reads JSONL and CSV with no schema, then answers BM25 per field from the CLI or MCP. 2,902 rows indexed in 12.4 s; queries took 1 ms.",
"queries": [
"full-text search over JSONL files from the CLI",
"index a folder of JSONL files and query it with BM25"
]
},
{
"title": "Local code search MCP that uses fewer tokens than grep",
"question": "Is there a local code search MCP for Claude Code that uses fewer tokens than grep?",
"canonical_url": "https://xerj.org/answers/local-code-search-mcp-fewer-tokens-than-grep",
"markdown_url": "https://xerj.org/answers/local-code-search-mcp-fewer-tokens-than-grep.md",
"cluster": "Answers for coding agents",
"updated": "2026-10-28",
"summary": "xerj indexes a repo once and returns ranked passages with file:line via CLI and MCP. On psf/requests one answer was 1,303 bytes; rg printed 25,150.",
"queries": [
"local code search MCP for Claude Code that uses fewer tokens than grep",
"local code search MCP fewer tokens than grep"
]
},
{
"title": "Retrieval that cites file:line and says not found",
"question": "Is there a retrieval tool that says not found, cites file and line, and abstains when unsure?",
"canonical_url": "https://xerj.org/answers/retrieval-that-says-not-found-with-file-line-citations",
"markdown_url": "https://xerj.org/answers/retrieval-that-says-not-found-with-file-line-citations.md",
"cluster": "Answers for coding agents",
"updated": "2026-10-20",
"summary": "xerj answers with file:line and exits 1 with no match when a symbol or corpus is missing. Free-text questions still return passages; confidence is #1786.",
"queries": [
"retrieval that says not found and cites file and line",
"retrieval tool that abstains when unsure and cites file:line"
]
},
{
"title": "Look up many IDs in one local query",
"question": "Look up 1,000 IDs against a local dataset",
"canonical_url": "https://xerj.org/answers/batch-lookup-ids-from-csv-against-local-index",
"markdown_url": "https://xerj.org/answers/batch-lookup-ids-from-csv-against-local-index.md",
"cluster": "Batch lookup",
"updated": "2026-10-20",
"summary": "Put the IDs in one terms query. On 2026-10-20, 1,000 IDs against 532 issues returned took 0: 532 found, 468 absent.",
"intent_group": "Batch lookup",
"answer": "Look up 1,000 IDs against a local index with one `terms` query, then mark each ID found or not found. On 2026-10-20 the query sent 1,000 numbers over 532 issues. The response `took` was 0. 532 IDs were in the index and 468 were not.",
"queries": [
"lookup 1000 ids against local dataset fast",
"batch query local index from csv of ids",
"msearch elasticsearch multiple queries",
"batch search many queries one request search engine"
]
},
{
"title": "Does XERJ support S3, alerting or custom plugins?",
"question": "Can XERJ store its index in S3, send alerts, or run my own ingest plugin?",
"canonical_url": "https://xerj.org/answers/does-xerj-support-s3-alerting-plugins",
"markdown_url": "https://xerj.org/answers/does-xerj-support-s3-alerting-plugins.md",
"cluster": "Capabilities and limits",
"updated": "2026-10-23",
"summary": "Since v1.0.0-rc.77 the index CAN live in an S3-compatible bucket; since rc.78 record packs are real; since rc.80 _watcher evaluates exactly one watch shape and refuses every other with 501. Plugins stay built-in.",
"intent_group": "search engine alternatives",
"answer": "Can XERJ store its index in S3, send alerts, or run my own ingest plugin? Partly. Since v1.0.0-rc.77 an index can live in an S3-compatible bucket. Since rc.80 _watcher evaluates exactly one watch shape and refuses every other with a 501. User-supplied ingest plugins are not supported; transforms are built-in only.",
"queries": [
"self-hosted Elasticsearch alternative single binary Rust MCP",
"elasticsearch compatible lightweight server"
]
},
{
"title": "Check report claims against saved sources",
"question": "Verify claims in a report against sources",
"canonical_url": "https://xerj.org/answers/verify-ai-report-claims-against-sources",
"markdown_url": "https://xerj.org/answers/verify-ai-report-claims-against-sources.md",
"cluster": "Claim checks",
"updated": "2026-10-20",
"summary": "Index the saved sources and run one match_phrase per claim. On 2026-10-20, 3 of 5 phrases were in the docs index and 2 were not.",
"intent_group": "Claim checks",
"answer": "Verify claims in a report against the saved sources. Index those files, then run one `match_phrase` per claim. A claim with no hit is unverified. On 2026-10-20, 3 of 5 phrases were in the docs index and 2 were not. The first check took 490 ms.",
"queries": [
"verify claims in report against sources automatically",
"fact verification against source document tool",
"check llm output is supported by context",
"mark unverified facts in research output",
"attribute answer to source passage"
]
},
{
"title": "Audit a PHP codebase with an index, not grep",
"question": "How do I search a large PHP repo for dangerous sinks without reading every file?",
"canonical_url": "https://xerj.org/answers/audit-php-codebase-with-an-index",
"markdown_url": "https://xerj.org/answers/audit-php-codebase-with-an-index.md",
"cluster": "Code security",
"updated": "2026-10-19",
"summary": "The published WordPress core audit indexed the tree as queryable facts, then read only the survivors. Core came back hardened, and that negative is the result.",
"intent_group": "code search for agents",
"answer": "How do you search a large PHP repo for dangerous sinks without reading every file? Index it as queryable facts, ask for the bug shape, and read only what comes back. The published WordPress core audit spent about 26,000 tokens against an estimated 5,200,000 to read the code once, and found core hardened.",
"queries": [
"local code search MCP Claude Code fewer tokens than grep",
"tree-sitter code search CLI"
]
},
{
"title": "How do I rebuild a reference-coding corpus index?",
"question": "How do I rebuild a reference-coding corpus index from scratch?",
"canonical_url": "https://xerj.org/answers/rebuild-reference-corpus-index",
"markdown_url": "https://xerj.org/answers/rebuild-reference-corpus-index.md",
"cluster": "Coding agents: reference retrieval",
"updated": "2026-10-19",
"summary": "xerj corpus index --fresh builds a replacement index beside the old one, verifies it has records, switches the state file, and only then retires the old index. A failed build costs nothing.",
"intent_group": "code search for agents",
"answer": "How do I rebuild a reference-coding corpus index from scratch? Run xerj corpus index with --fresh. It builds a replacement beside the existing index, checks that it holds records, switches the state file, and only then deletes the old indices by exact name. A failed build costs you nothing; the old index keeps serving.",
"queries": [
"find reference implementation in open source repos"
]
},
{
"title": "Index a reference library for a coding agent",
"question": "How do I set up reference coding so the agent retrieves a mechanism before writing code?",
"canonical_url": "https://xerj.org/answers/index-reference-library-for-coding-agent",
"markdown_url": "https://xerj.org/answers/index-reference-library-for-coding-agent.md",
"cluster": "Coding agents: reference retrieval",
"updated": "2026-10-20",
"summary": "Clone the library you are about to write against, index it with xerj autoindex, and retrieve the passage first. The published study, with the tracks where it loses.",
"intent_group": "code search for agents",
"answer": "How do I set up reference coding so the agent retrieves a mechanism before writing code? Clone the library you are about to write against, index it with xerj autoindex, and have the agent retrieve the passage before it writes. A published study measured a gain on code the model cannot recall, and a loss on code it knows.",
"queries": [
"find reference implementation in open source repos",
"search open source repos for how others solved X"
]
},
{
"title": "Text classification without an LLM: tickets and spam",
"question": "Can I classify text from labelled history without calling an LLM?",
"canonical_url": "https://xerj.org/answers/classify-text-from-labelled-history-without-llm",
"markdown_url": "https://xerj.org/answers/classify-text-from-labelled-history-without-llm.md",
"cluster": "Decisions as retrieval",
"updated": "2026-10-28",
"summary": "Classify text by voting over its nearest labelled examples, with no LLM or API call. Measured: 0.933 accuracy on 77-way intent routing, 0.983 on SMS spam.",
"intent_group": "retrieval research and eval",
"answer": "Can I classify text from labelled history without calling an LLM? Yes, if you already have labelled examples. Index them in XERJ, fetch the 10 nearest for each new item, and vote. Measured: 0.933 accuracy on 77-way intent routing with the opt-in neural embedder, and 0.983 on SMS spam with plain BM25.",
"queries": [
"non generative model for question answering json",
"route to bigger model when confidence low"
]
},
{
"title": "Reduce embedding API cost: embed inside the search engine",
"question": "My embedding bill is too high",
"canonical_url": "https://xerj.org/answers/reduce-embedding-api-cost",
"markdown_url": "https://xerj.org/answers/reduce-embedding-api-cost.md",
"cluster": "Embeddings: cost",
"updated": "2026-10-31",
"summary": "XERJ embeds documents inside the node by default, so a captured run saw 0 non-loopback peers. Proxy mode sent exactly 2 requests for 100 documents.",
"intent_group": "retrieval research and eval",
"answer": "My embedding bill is too high; how do I reduce embedding API cost? Embed inside the search node. XERJ embeds semantic_text fields in-process by default, so the default configuration bills nothing to an embedding API: a capture of a default node saw 0 non-loopback peers in 3.51 s. Proxy mode sent exactly 2 requests for 100 documents.",
"queries": [
"search code by meaning offline"
]
},
{
"title": "Offline local search with no cloud embeddings or OpenAI API",
"question": "I want local search that works offline, no cloud embeddings. What are my options?",
"canonical_url": "https://xerj.org/answers/local-embeddings-without-openai-api",
"markdown_url": "https://xerj.org/answers/local-embeddings-without-openai-api.md",
"cluster": "Embeddings: local execution",
"updated": "2026-10-28",
"summary": "XERJ embeds locally in two ways. The default lexical embedder needs no model at all, and --embed-mode neural loads a cached MiniLM model on the CPU.",
"intent_group": "retrieval research and eval",
"answer": "What are my options for local search that works offline with no cloud embeddings? XERJ embeds locally two ways. The default embedder is lexical feature hashing inside the binary, needs no model, and made 0 outbound connections in our capture. The opt-in --embed-mode neural loads all-MiniLM-L6-v2 from a local cache and runs on the CPU.",
"queries": [
"json mode extraction local model",
"search code by meaning offline"
]
},
{
"title": "When are neural embeddings worth turning on?",
"question": "Do I even need embeddings for search, or is full-text enough?",
"canonical_url": "https://xerj.org/answers/do-search-embeddings-help",
"markdown_url": "https://xerj.org/answers/do-search-embeddings-help.md",
"cluster": "Embeddings: selection",
"updated": "2026-10-31",
"summary": "Embeddings only helped when we opted into the neural embedder. On XERJ's lexical default, kNN promoted coffee storage above the synonyms for the query car.",
"intent_group": "retrieval research and eval",
"answer": "Do I even need embeddings for search, or is full-text enough? On XERJ's default lexical embedder, full-text BM25 is close: 0.4167 precision at 3 against BM25's 0.375 on 8 judged queries. Embeddings clearly helped only after opting into --embed-mode neural, which moved precision at 3 to 0.6667 and recall to 1.0.",
"queries": [
"grep vs semantic search for coding agents",
"bm25"
]
},
{
"title": "Can I full-text search my browser history file?",
"question": "Is there a way to full-text search my browser history?",
"canonical_url": "https://xerj.org/answers/full-text-search-browser-history",
"markdown_url": "https://xerj.org/answers/full-text-search-browser-history.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "Copy the Chrome History SQLite file and index it. A captured run made titles and URLs queryable, left the source unchanged, and missed 40 WAL rows.",
"intent_group": "JSONL and data files",
"answer": "Is there a way to full-text search my browser history? Copy Chrome's History SQLite file and run xerj autoindex on the folder. A captured run returned 60 hits for a title phrase and 1 for an exact URL, left all 3 source checksums unchanged, and found no page text, because Chrome stores none.",
"queries": [
"full text search sqlite fts5 vs alternatives"
]
},
{
"title": "Count keyword mentions by month",
"question": "Count mentions of a word over time in a posts file",
"canonical_url": "https://xerj.org/answers/count-keyword-mentions-over-time-jsonl",
"markdown_url": "https://xerj.org/answers/count-keyword-mentions-over-time-jsonl.md",
"cluster": "Files and formats",
"updated": "2026-10-20",
"summary": "Index a JSONL posts file and send one date histogram on the date field. On 2026-10-20, autoindex in issue titles returned 88 hits and took 123 ms.",
"intent_group": "Files and formats",
"answer": "Count mentions of a word over time in a posts dataset. Index the JSONL, check the date field, and send one date histogram. On 2026-10-20 the phrase autoindex in issue titles returned 88 hits and took 123 ms: 1 in July, 50 in August, 11 in September, 26 in October. A fractional epoch field returned no months.",
"queries": [
"count mentions of X over time in posts dataset",
"keyword frequency over time across posts",
"topic counts in jsonl posts by month",
"aggregate search hits by month cli",
"search posts by keyword and date"
]
},
{
"title": "Find every place a config key is set in a repo",
"question": "How do I find every place a config key is set across YAML and XML in a repo?",
"canonical_url": "https://xerj.org/answers/search-yaml-xml-config-repository",
"markdown_url": "https://xerj.org/answers/search-yaml-xml-config-repository.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "XERJ autoindex indexes YAML and XML config files as full-text documents, maps 9 fields including body and title, and answers one bool query across both.",
"intent_group": "code search for agents",
"answer": "How do I find every place a config key is set across YAML and XML in a repo? Run xerj autoindex on the folder; it needs no schema file. In our capture 1 cluster.yaml and 1 service.xml became 4 documents in one cfg-docs index, and one bool query returned 2 hits, one from each format.",
"queries": [
"find function definition across repo CLI"
]
},
{
"title": "Find out what is in a messy data folder before searching",
"question": "I dropped a messy data folder on an agent. How should it figure out what's inside before searching?",
"canonical_url": "https://xerj.org/answers/catalog-files-with-autoindex-map",
"markdown_url": "https://xerj.org/answers/catalog-files-with-autoindex-map.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "Point xerj autoindex at the folder, then read xerj autoindex map: every dataset it inferred, the fields and types, the time range, and every file it refused.",
"intent_group": "JSONL and data files",
"answer": "How should an agent figure out what is inside a messy data folder before searching? Run xerj autoindex on the folder, then read xerj autoindex map. The map lists every dataset it inferred, each field with type, cardinality and null share, the time range, a ready query, and every file it refused.",
"queries": [
"agent tool for querying datasets",
"index folder of json files for search"
]
},
{
"title": "Full-text search a SQLite database (FTS5 alternative)",
"question": "How do I full-text search a SQLite database?",
"canonical_url": "https://xerj.org/answers/full-text-search-sqlite-database",
"markdown_url": "https://xerj.org/answers/full-text-search-sqlite-database.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "xerj autoindex reads a SQLite file read-only and turns each table into an index. A captured WAL-mode run indexed 400 of 450 committed rows and changed no bytes.",
"intent_group": "JSONL and data files",
"answer": "How do I full-text search a SQLite database? Run xerj autoindex on it: the file is read read-only and each table becomes an index. In a captured WAL-mode run XERJ created sq-tickets with 400 documents and sq-agents with 13, left all 3 files byte-identical, and missed rows still in the write-ahead log.",
"queries": [
"full text search sqlite fts5 vs alternatives",
"search mixed csv json sqlite files together"
]
},
{
"title": "How do I index a CSV with many columns?",
"question": "How to index CSV files with big number of columns/fields",
"canonical_url": "https://xerj.org/answers/index-csv-with-many-columns",
"markdown_url": "https://xerj.org/answers/index-csv-with-many-columns.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "xerj autoindex infers a mapping for a wide CSV with no schema work. A captured 120-column file produced 128 mapped fields and an exact terms aggregation.",
"intent_group": "JSONL and data files",
"answer": "How do you index CSV files with a big number of columns or fields? Point xerj autoindex at the file; it infers the mapping with no schema work. In a captured run a 120-column CSV became 128 mapped fields across 501 documents, and a terms aggregation on an inferred keyword column returned 4 exact buckets.",
"queries": [
"full text search over csv files cli",
"index folder of csv files and query with bm25"
]
},
{
"title": "How do I index Markdown into Elasticsearch?",
"question": "What is the best way to index Markdown documents into Elasticsearch?",
"canonical_url": "https://xerj.org/answers/index-markdown-into-elasticsearch-api",
"markdown_url": "https://xerj.org/answers/index-markdown-into-elasticsearch-api.md",
"cluster": "Files and formats",
"updated": "2026-10-23",
"summary": "XERJ autoindex indexes Markdown as the txt-prose family and answers the Elasticsearch API, but it maps no headings array and keeps the hash in the title.",
"intent_group": "logs and docs",
"answer": "What is the best way to index Markdown documents into Elasticsearch? XERJ indexes a Markdown folder with xerj autoindex and serves it on the Elasticsearch REST API. Markdown lands in the txt-prose family; in our capture XERJ mapped 9 fields, kept the title as the literal '# Runbook', and produced no headings array.",
"queries": [
"search markdown notes MCP server",
"elasticsearch api compatible local dev"
]
},
{
"title": "How do I read email and PDFs after indexing a folder?",
"question": "I indexed a folder of email and PDFs. How do I actually read what it found?",
"canonical_url": "https://xerj.org/answers/read-indexed-email-and-pdf-folder",
"markdown_url": "https://xerj.org/answers/read-indexed-email-and-pdf-folder.md",
"cluster": "Files and formats",
"updated": "2026-10-30",
"summary": "xerj brain indexes the folder and the console opens any record: an email with its attachments, a PDF page, and the files it links to. Extracted text only.",
"intent_group": "logs and docs",
"answer": "I indexed a folder of email and PDFs; how do I actually read what it found? Run xerj brain on the folder and open the console it prints. The Corpus page lists what was indexed, and the Reader opens an email with headers, body and attachments, or one PDF page. It shows extracted text only.",
"queries": [
"index pdf folder full text search offline"
]
},
{
"title": "How do I run syntax-aware code search?",
"question": "Is there a syntax-aware code search tool for refactoring?",
"canonical_url": "https://xerj.org/answers/syntax-aware-code-search-refactoring",
"markdown_url": "https://xerj.org/answers/syntax-aware-code-search-refactoring.md",
"cluster": "Files and formats",
"updated": "2026-10-30",
"summary": "XERJ indexes source files with a defs field and a symbols array, so one query finds declarations with kind, name and line while another finds raw text.",
"intent_group": "code search for agents",
"answer": "Is there a syntax-aware code search tool for refactoring? XERJ gives you two code queries on one index: match on body for raw text, and match on defs for declared symbols, which returns a symbols array with kind, name and line. It extracts definitions only and rewrites nothing. For structural rewrites use ast-grep.",
"queries": [
"tree-sitter code search CLI",
"find function definition across repo CLI"
]
},
{
"title": "How do I search a Confluence export?",
"question": "How do I search my Confluence export?",
"canonical_url": "https://xerj.org/answers/search-confluence-html-export",
"markdown_url": "https://xerj.org/answers/search-confluence-html-export.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "Point xerj autoindex at an unzipped Confluence HTML space export. A captured run kept page titles, nested page bodies, and the attachment tree.",
"intent_group": "logs and docs",
"answer": "How do I search my Confluence export? Unzip the Confluence HTML space export to local disk and run xerj autoindex on the folder. A captured run kept page titles, nested page bodies and the attachment tree: body text on a nested page returned 1 hit, titled as Confluence writes it, PLAT : Recovery procedure.",
"queries": [
"search confluence export locally"
]
},
{
"title": "How do I search a Slack JSON export?",
"question": "How do I search a Slack or Discord JSON export?",
"canonical_url": "https://xerj.org/answers/search-slack-json-export",
"markdown_url": "https://xerj.org/answers/search-slack-json-export.md",
"cluster": "Files and formats",
"updated": "2026-10-20",
"summary": "Point xerj autoindex at an unzipped Slack export. A captured run found a threaded reply, kept ts, thread_ts and user, and round-tripped Japanese text.",
"intent_group": "JSONL and data files",
"answer": "How do I search a Slack or Discord JSON export? Unzip the export to local disk and run xerj autoindex on the folder. In a captured run, a phrase inside a threaded reply returned 2 hits at incidents/2026-01-15.json with ax_locator e1, and the ts, thread_ts and user values all survived, as did Japanese text.",
"queries": [
"search slack export json"
]
},
{
"title": "Index a monorepo so your agent stops reading the whole repo",
"question": "How do I stop my agent from reading the whole repo into context?",
"canonical_url": "https://xerj.org/answers/index-monorepo-for-agent",
"markdown_url": "https://xerj.org/answers/index-monorepo-for-agent.md",
"cluster": "Files and formats",
"updated": "2026-10-20",
"summary": "Index the tree once with xerj autoindex, then let the agent query the defs and symbols fields instead of opening files. A dry run first prints every ignore rule.",
"intent_group": "code search for agents",
"answer": "How do I stop my agent from reading the whole repo into context? Index the tree once with xerj autoindex and let the agent query the defs and symbols fields instead of opening files. Run --dry-run first: in our capture it reported files=3, ignored_files=2 and ignored_dirs=3, naming every ignore rule.",
"queries": [
"index monorepo for AI agent search",
"find function definition across repo CLI",
"search symbols across multiple repos"
]
},
{
"title": "Is it efficient to index PDF files?",
"question": "Is it inefficient to index PDF files into a search engine?",
"canonical_url": "https://xerj.org/answers/is-pdf-indexing-efficient",
"markdown_url": "https://xerj.org/answers/is-pdf-indexing-efficient.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "PDF extraction is the slowest family XERJ parses. XERJ runs it in an isolated worker sized from free memory, caps it 5 ways, and refuses image-only files.",
"intent_group": "logs and docs",
"answer": "Is it inefficient to index PDF files into a search engine? Compared with opening every file by hand, no, though PDF is the slowest family XERJ parses. Extraction runs in an isolated worker process sized from free memory, capped five ways, and each file is parsed once. Image-only PDFs are refused with a reason string.",
"queries": [
"index pdf folder full text search offline"
]
},
{
"title": "Search .gz logs without zgrep: decompress once, query often",
"question": "How do I search gzipped logs without decompressing the whole file?",
"canonical_url": "https://xerj.org/answers/search-gzip-logs-without-zgrep",
"markdown_url": "https://xerj.org/answers/search-gzip-logs-without-zgrep.md",
"cluster": "Files and formats",
"updated": "2026-10-28",
"summary": "XERJ decompresses a .gz log once at index time, so queries never read the archive again. The plain and gzip copies of one log returned the same counts.",
"intent_group": "logs and docs",
"answer": "How do I search gzipped logs without decompressing the whole file? Let XERJ decompress each .gz log once at index time, so no query reads the compressed file again. In our capture the plain copy and the gzip copy of one log both returned 5001 from _count, and both returned 1250 hits for level=ERROR.",
"queries": [
"search logs locally without ELK"
]
},
{
"title": "Search a .csv.gz or .json.gz without unzipping it",
"question": "How do I search gzipped CSV exports?",
"canonical_url": "https://xerj.org/answers/search-gzipped-csv-or-json",
"markdown_url": "https://xerj.org/answers/search-gzipped-csv-or-json.md",
"cluster": "Files and formats",
"updated": "2026-10-30",
"summary": "Gzip is a wrapper, not a family. autoindex unwraps it and sniffs the inner CSV or JSON, so a compressed export becomes typed fields rather than one opaque blob.",
"intent_group": "JSONL and data files",
"answer": "How do I search gzipped CSV exports without unzipping them? Point xerj autoindex at the folder. The run strips the gzip wrapper once and sniffs the bytes underneath, so a .csv.gz becomes typed columns and a .json.gz becomes documents with fields. No query reads the archive again.",
"queries": [
"search large csv files fast without database"
]
},
{
"title": "Search a folder of PDF papers offline",
"question": "I downloaded a bunch of papers as PDFs. How do I search across them?",
"canonical_url": "https://xerj.org/answers/search-all-pdfs-in-a-folder",
"markdown_url": "https://xerj.org/answers/search-all-pdfs-in-a-folder.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "One xerj autoindex command indexes the folder, then a match_phrase query reads every PDF. A captured run hit all 3 born-digital files and refused a scanned one.",
"intent_group": "logs and docs",
"answer": "I downloaded a bunch of papers as PDFs; how do I search across them? Run xerj autoindex on the folder, then send one match_phrase query. In a captured run, 3 born-digital PDFs produced 9 documents and one phrase hit all 3 files. The fourth, an image-only scan, produced 0 documents, because XERJ runs no OCR.",
"queries": [
"index pdf folder full text search offline",
"search across pdfs locally"
]
},
{
"title": "Search a help-center you saved as HTML",
"question": "I saved a bunch of docs pages as HTML. How do I search that?",
"canonical_url": "https://xerj.org/answers/search-html-export",
"markdown_url": "https://xerj.org/answers/search-html-export.md",
"cluster": "Files and formats",
"updated": "2026-08-21",
"summary": "XERJ autoindex indexes a static HTML export from local disk, extracts title and a headings array per page, and fetched 0 non-loopback peers in our capture.",
"intent_group": "logs and docs",
"answer": "I saved a bunch of docs pages as HTML; how do I search that? Run xerj autoindex on the export folder. In our 3-page capture XERJ extracted a title and a headings array from each page, one match query on body returned 3 hits, and a network watch observed 0 non-loopback peers during the whole run."
},
{
"title": "Search a JSON export of support tickets",
"question": "I have a JSON export of support tickets. How do I search it like a real help-center search?",
"canonical_url": "https://xerj.org/answers/search-zendesk-ticket-json-export",
"markdown_url": "https://xerj.org/answers/search-zendesk-ticket-json-export.md",
"cluster": "Files and formats",
"updated": "2026-10-20",
"summary": "Index the exported ticket JSON on disk. A captured run returned 36 description hits with per-ticket locators and an exact status count of 30 per status.",
"intent_group": "JSONL and data files",
"answer": "I have a JSON export of support tickets; how do I search it like a real help-center search? Index the exported JSON on local disk with one xerj autoindex run. In a captured run a description phrase returned 36 hits with per-ticket locators such as tickets:e4, and a status aggregation returned 6 buckets of exactly 30.",
"queries": [
"index folder of json files for search"
]
},
{
"title": "Search a SQL dump without restoring it",
"question": "I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?",
"canonical_url": "https://xerj.org/answers/search-sql-dump-file",
"markdown_url": "https://xerj.org/answers/search-sql-dump-file.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "xerj autoindex parses a MySQL-style .sql file directly, with no database server, and makes every INSERT value searchable. A captured run indexed 321 documents.",
"intent_group": "JSONL and data files",
"answer": "I have a 2 GB SQL dump; how do I find rows mentioning a customer without loading it into Postgres? Run xerj autoindex on the .sql file; it parses MySQL-style dumps with no database server. In a captured run one file produced dump-articles with 301 documents and dump-authors with 20, and match_phrase found text inside an INSERT.",
"queries": [
"search large csv files fast without database"
]
},
{
"title": "Search an OpenAPI spec so an agent can find endpoints",
"question": "My agent needs to look up endpoints in a big OpenAPI spec. What's the right way?",
"canonical_url": "https://xerj.org/answers/search-openapi-spec-for-agent",
"markdown_url": "https://xerj.org/answers/search-openapi-spec-for-agent.md",
"cluster": "Files and formats",
"updated": "2026-10-28",
"summary": "Index the OpenAPI file with xerj autoindex. In a captured run a route name, a description and an operationId each returned 1 hit per serialization.",
"intent_group": "code search for agents",
"answer": "My agent needs to look up endpoints in a big OpenAPI spec; what's the right way? Index the spec file itself with xerj autoindex and let the agent query it. In a captured run a route name, a description and an operationId each returned 2 hits, 1 per JSON and YAML serialization. Extraction is format-based: body and title only.",
"queries": [
"openapi spec search for agents"
]
},
{
"title": "Search BVH motion-capture files by joint, frame and length",
"question": "How do I search motion-capture data?",
"canonical_url": "https://xerj.org/answers/search-bvh-motion-capture-files",
"markdown_url": "https://xerj.org/answers/search-bvh-motion-capture-files.md",
"cluster": "Files and formats",
"updated": "2026-10-28",
"summary": "xerj autoindex reads .bvh files and writes frames, frame_time_s, duration_s, joint_count and a joints array you can query. Run one command on the folder.",
"intent_group": "JSONL and data files",
"answer": "How do I search motion-capture data in BVH files? Run xerj autoindex on the folder. XERJ detects the bvh family and writes frames, frame_time_s, duration_s, joint_count and a joints keyword array, with no body field. Our test clip reported 60 frames over 1.999998 seconds, and a terms query on joints returned it."
},
{
"title": "Search inside PDFs, Word docs and Markdown in one folder",
"question": "I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?",
"canonical_url": "https://xerj.org/answers/search-file-contents-in-a-folder",
"markdown_url": "https://xerj.org/answers/search-file-contents-in-a-folder.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "Index a folder of PDFs, Word docs and markdown with one xerj autoindex command, then search the contents. A captured 6-file run indexed 51 documents into 2 indices.",
"intent_group": "logs and docs",
"answer": "I have a folder of PDFs, Word docs and Markdown; how do I search all of them at once? Run xerj autoindex on the folder. In a captured run over 6 formats, XERJ indexed 51 documents into 2 indices with 0 junk files, and one match_phrase query returned 3 hits from an HTML, a JSON and a Markdown file.",
"queries": [
"search inside files in a folder",
"index pdf folder full text search offline"
]
},
{
"title": "Search inside Word documents (.docx) in a folder",
"question": "How do I search through a folder of contracts in .docx?",
"canonical_url": "https://xerj.org/answers/search-word-documents-in-a-folder",
"markdown_url": "https://xerj.org/answers/search-word-documents-in-a-folder.md",
"cluster": "Files and formats",
"updated": "2026-10-28",
"summary": "Index a folder of Word .docx files with one xerj autoindex command, then search their paragraphs. A captured run also shows the decompression guard.",
"intent_group": "logs and docs",
"answer": "How do I search through a folder of contracts in .docx? Run xerj autoindex on the folder, then send a match_phrase query against the paragraphs. In a captured run, 1 DOCX produced 2 documents and a query for second reviewer returned the paragraph and the title. A deliberately expanded zip-bomb file produced 0 documents.",
"queries": [
"search inside files in a folder"
]
},
{
"title": "Search JSON and JSONL logs plus gzip logs in one folder",
"question": "What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?",
"canonical_url": "https://xerj.org/answers/search-json-and-jsonl-logs",
"markdown_url": "https://xerj.org/answers/search-json-and-jsonl-logs.md",
"cluster": "Files and formats",
"updated": "2026-10-19",
"summary": "xerj autoindex detects JSON arrays, JSONL logs and gzipped logs in one folder, infers the date field and answers exact filters. One run returned 386 ERROR hits.",
"intent_group": "JSONL and data files",
"answer": "What's the easiest way to search JSON logs plus some old gzip text logs in the same folder? Run xerj autoindex on it. It detects JSON-array and JSONL files by content and gives each its own index. In a captured 2-file run it inferred timestamp and ts as date fields, and level=ERROR returned exactly 386 hits.",
"queries": [
"search jsonl logs locally",
"search json logs from the command line"
]
},
{
"title": "Search Jupyter notebooks (.ipynb) and the .py beside them",
"question": "I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files?",
"canonical_url": "https://xerj.org/answers/search-jupyter-notebook-cells",
"markdown_url": "https://xerj.org/answers/search-jupyter-notebook-cells.md",
"cluster": "Files and formats",
"updated": "2026-10-28",
"summary": "Index a folder of Jupyter notebooks with xerj autoindex. Each heading section becomes one document with its heading path, starting cell and text output.",
"intent_group": "code search for agents",
"answer": "How do I search all my .ipynb files for a function I wrote months ago? Run xerj autoindex on the folder. XERJ writes one document per Markdown-heading section of a notebook, with the heading path and starting cell. A captured query for okapi_transform found both notebooks and the .py file that defines it.",
"queries": [
"search jupyter notebooks"
]
},
{
"title": "Search markdown notes and PDFs in one vault",
"question": "What's the best way to search markdown notes and PDFs in the same vault?",
"canonical_url": "https://xerj.org/answers/search-obsidian-pdf-docx-attachments",
"markdown_url": "https://xerj.org/answers/search-obsidian-pdf-docx-attachments.md",
"cluster": "Files and formats",
"updated": "2026-10-30",
"summary": "A captured XERJ run indexed a vault of markdown notes and returned text from inside a PDF attachment and a DOCX attachment, plus wikilink edges between the notes.",
"intent_group": "logs and docs",
"answer": "What's the best way to search Markdown notes and PDFs in the same vault? Run xerj autoindex on the vault folder. It reads attachments too. In a captured run a phrase found only inside a PDF attachment returned 1 hit, a phrase only inside a DOCX returned 1 hit, and wikilinks became edges carrying the line that made them.",
"queries": [
"search markdown notes MCP server"
]
},
{
"title": "Search multiple CSV files at once, without a database",
"question": "I have a directory of CSV exports. How do I query them without opening each one in Excel?",
"canonical_url": "https://xerj.org/answers/index-multiple-csv-files",
"markdown_url": "https://xerj.org/answers/index-multiple-csv-files.md",
"cluster": "Files and formats",
"updated": "2026-10-28",
"summary": "Point xerj autoindex at a folder of CSV files once. A captured run split 3 CSVs with 2 headers into 2 indices and answered one query across both.",
"intent_group": "JSONL and data files",
"answer": "I have a directory of CSV exports; how do I query them without opening each one in Excel? Give xerj autoindex the folder. In a captured run, 3 CSV files with 2 different headers became 2 indices holding 402 and 151 documents, and one query_string request across both returned 171 hits split by dataset.",
"queries": [
"index folder of csv files and query with bm25",
"search csv and jsonl folder one command",
"search large csv files fast without database"
]
},
{
"title": "Search text across Kubernetes pod logs from many pods",
"question": "Grep for specific text from kubernetes multiple pods",
"canonical_url": "https://xerj.org/answers/search-kubernetes-pod-logs-on-disk",
"markdown_url": "https://xerj.org/answers/search-kubernetes-pod-logs-on-disk.md",
"cluster": "Files and formats",
"updated": "2026-10-28",
"summary": "Collect pod logs to disk, then index the folder once. A captured run answered 1 phrase query across 3 pod log files and returned 18 hits, 6 per pod.",
"intent_group": "logs and docs",
"answer": "How do I grep for specific text across logs from multiple Kubernetes pods? Collect the pod logs to local disk first, then run xerj autoindex on the folder. In a captured run, one match_phrase request returned 18 hits, 6 from each of 3 pod log files. XERJ is not a collector, and the CRI format reads as prose.",
"queries": [
"search logs locally without ELK"
]
},
{
"title": "Search Unity scenes and the C# beside them",
"question": "How do I search a Unity project's assets?",
"canonical_url": "https://xerj.org/answers/search-unity-project-assets",
"markdown_url": "https://xerj.org/answers/search-unity-project-assets.md",
"cluster": "Files and formats",
"updated": "2026-10-28",
"summary": "xerj autoindex detects the unity and unity-meta families, splits a scene into one index per Unity class, and joins an asset to its .meta record by path.",
"intent_group": "code search for agents",
"answer": "How do I search a Unity project's assets? Run xerj autoindex on the project folder. XERJ detects the unity and unity-meta families and extracts m_Name, unity_class and guid, splitting a scene into one index per Unity class. One bool query joined an asset to its .meta record and returned 3 documents across 2 families."
},
{
"title": "Why does my Notion export duplicate titles?",
"question": "API sync/export duplicates Notion titles in pages, databases, search results",
"canonical_url": "https://xerj.org/answers/notion-export-duplicate-search-results",
"markdown_url": "https://xerj.org/answers/notion-export-duplicate-search-results.md",
"cluster": "Files and formats",
"updated": "2026-10-30",
"summary": "A captured run indexed a Notion Markdown export twice and got the same 8 documents with byte-identical ids. The duplicates come from the export layout.",
"intent_group": "logs and docs",
"answer": "Why does my Notion export duplicate titles in search results? The duplicates come from the export layout and from the 2 documents XERJ writes per Markdown file, not from re-indexing. A captured run indexed the same Notion export twice and returned 8 documents both times, with byte-identical ids, so the index never doubled.",
"queries": [
"search markdown notes MCP server"
]
},
{
"title": "Answer questions about a docs folder",
"question": "Answer questions about a docs folder",
"canonical_url": "https://xerj.org/answers/answer-questions-about-a-docs-folder-with-citations",
"markdown_url": "https://xerj.org/answers/answer-questions-about-a-docs-folder-with-citations.md",
"cluster": "Folder indexing",
"updated": "2026-10-20",
"summary": "Index the docs folder with xerj autoindex. A phrase query returns the file to cite. xerj search on the same question ranked code lines instead.",
"intent_group": "Folder indexing",
"answer": "Answer questions about a docs folder by indexing it with `xerj autoindex`, then running a phrase query. Each hit carries `ax_path`, so the agent can cite the file. On 2026-10-20 a phrase query for \"what is in here\" returned `WHY_XERJ.md` and took 1 ms. `xerj search` on the same words did not.",
"queries": [
"answer questions about docs folder",
"local search for documentation with citations",
"search enterprise docs offline",
"search large roadmap and changelog files"
]
},
{
"title": "Point a tool at a folder and ask questions about the files",
"question": "I want to point something at a folder and then ask questions about what's in it. What should I use?",
"canonical_url": "https://xerj.org/answers/how-xerj-autoindexes-a-folder",
"markdown_url": "https://xerj.org/answers/how-xerj-autoindexes-a-folder.md",
"cluster": "Folder indexing",
"updated": "2026-10-28",
"summary": "Index the folder with one command, read the map of what XERJ found, then let an agent query it over MCP instead of opening the files one by one.",
"intent_group": "JSONL and data files",
"answer": "What should I use to point something at a folder and then ask questions about what is in it? Run xerj autoindex on the folder: it detects file types, builds typed indices and needs no configuration. Then xerj autoindex map shows which index and field to query, and an agent asks over HTTP or xerj mcp.",
"queries": [
"search csv and jsonl folder one command",
"index folder of json files for search",
"ask questions about a GitHub repo MCP server"
]
},
{
"title": "Search a Gmail Takeout mbox on your own machine",
"question": "How do I search a Google Takeout mbox file locally?",
"canonical_url": "https://xerj.org/answers/search-gmail-takeout-mbox-locally",
"markdown_url": "https://xerj.org/answers/search-gmail-takeout-mbox-locally.md",
"cluster": "Folder indexing",
"updated": "2026-10-19",
"summary": "Unzip the export, run xerj autoindex on the folder, and search messages, threads and attached PDF pages over HTTP. The mailbox is streamed, and with the default embedder no message text leaves your machine.",
"intent_group": "logs and docs",
"answer": "How do I search a Google Takeout mbox file locally? Unzip the Takeout download, run xerj autoindex on the folder with its own --prefix, then search the mailbox over HTTP. The mbox is recognised by content and streamed one message at a time, attached PDFs become per-page documents, and with the default embedder no message text leaves your machine."
},
{
"title": "Find duplicate GitHub issues before filing",
"question": "Find duplicate GitHub issues before you file",
"canonical_url": "https://xerj.org/answers/find-duplicate-github-issues-before-filing",
"markdown_url": "https://xerj.org/answers/find-duplicate-github-issues-before-filing.md",
"cluster": "GitHub issues",
"updated": "2026-10-20",
"summary": "Export issues to JSONL, index them with xerj autoindex, and search the draft title. On 2026-10-20 issue 960 ranked first; a paraphrase did not.",
"intent_group": "GitHub issues",
"answer": "Find duplicate GitHub issues before you file. Export the issues to JSONL, index the folder with `xerj autoindex`, and search the draft title. On 2026-10-20 that search over 1,532 records ranked issue 960 first and took 7 ms. A paraphrase of the same bug did not rank it first.",
"queries": [
"find duplicate github issues",
"check if feature request already exists",
"check if github issue is duplicate tool",
"dedupe github issues before filing",
"search closed issues for same bug",
"cluster similar bug reports"
]
},
{
"title": "Search GitHub issues and PRs locally",
"question": "Search repo issues and pull requests locally",
"canonical_url": "https://xerj.org/answers/search-github-issues-and-prs-locally",
"markdown_url": "https://xerj.org/answers/search-github-issues-and-prs-locally.md",
"cluster": "GitHub issues",
"updated": "2026-10-28",
"summary": "Export issues and pull requests to JSONL and index them locally. A captured gh search file was 36,550 bytes; xerj search's file was 1,865.",
"intent_group": "GitHub issues",
"answer": "Search a repo's issues and pull requests locally. Export them to JSONL, index the folder, and query that index instead of reading `gh` JSON. On 2026-10-20 the `gh` capture file was 36,550 bytes and the `xerj search` capture file was 1,865 bytes. Two of the three passages were cited as line 1.",
"queries": [
"search repo issues and prs",
"gh issue search returns too much json",
"mcp server search github repo issues without cloning",
"search closed issues for the same bug",
"link issues to code locations"
]
},
{
"title": "RAG without a vector database: one hybrid index",
"question": "How do I build RAG without a vector database?",
"canonical_url": "https://xerj.org/answers/rag-without-vector-database",
"markdown_url": "https://xerj.org/answers/rag-without-vector-database.md",
"cluster": "Hybrid retrieval: architecture",
"updated": "2026-10-31",
"summary": "Build a RAG retrieval layer on one XERJ index. One hybrid request fuses BM25 and kNN with Reciprocal Rank Fusion, and no second service runs.",
"intent_group": "retrieval research and eval",
"answer": "How do I build RAG without a vector database? Keep the inverted index and the dense vectors in one XERJ index and retrieve with one hybrid request, which fuses a BM25 sub-query and a kNN sub-query with Reciprocal Rank Fusion. No second service runs. Our 20-document capture returned d08, d04 and d10.",
"queries": [
"rag without vector database",
"hybrid search bm25 + vectors local"
]
},
{
"title": "How much better is hybrid search than BM25? Measured.",
"question": "How much better is hybrid search than BM25 alone?",
"canonical_url": "https://xerj.org/answers/hybrid-search-quality-measured-ndcg",
"markdown_url": "https://xerj.org/answers/hybrid-search-quality-measured-ndcg.md",
"cluster": "Hybrid retrieval: quality",
"updated": "2026-10-31",
"summary": "XERJ measured BM25, vectors and hybrid RRF on two public BEIR datasets. Hybrid won both: nDCG@10 0.6993 against 0.6572 on SciFact, with a neural embedder.",
"intent_group": "retrieval research and eval",
"answer": "How much better is hybrid search than BM25 alone? On two public BEIR datasets XERJ's hybrid RRF beat both BM25 and vectors: nDCG@10 0.6993 against 0.6572 on SciFact and 0.3448 against 0.3016 on NFCorpus. Those runs used --embed-mode neural with all-MiniLM-L6-v2; the default lexical embedder is not covered.",
"queries": [
"BEIR benchmark BM25 baseline numbers",
"bm25s vs pyserini BEIR nDCG@10 reproduction"
]
},
{
"title": "How do I rerank search results with a relevance judge?",
"question": "How do I rerank search results with a relevance judge?",
"canonical_url": "https://xerj.org/answers/rerank-search-results-calibrated-judge",
"markdown_url": "https://xerj.org/answers/rerank-search-results-calibrated-judge.md",
"cluster": "Hybrid retrieval: reranking",
"updated": "2026-10-28",
"summary": "Add a rerank block to a XERJ search: the top 30 hits go to an external judge and a 0 to 1 probability replaces the score. Order by it; the measured calibration says never threshold it with min_score.",
"intent_group": "retrieval research and eval",
"answer": "How do I rerank search results with a relevance judge? Add a rerank block to a XERJ _search body. The top 30 hits go to an external judge, which returns a 0 to 1 relevance probability that replaces _score. Order by it, but never threshold it with min_score: measured calibration error was 0.10 to 0.31.",
"queries": [
"calibrated confidence score retrieval",
"reranker"
]
},
{
"title": "Reciprocal Rank Fusion (RRF): what it is, when to use it",
"question": "What is reciprocal rank fusion and when should I use it?",
"canonical_url": "https://xerj.org/answers/reciprocal-rank-fusion-when-to-use",
"markdown_url": "https://xerj.org/answers/reciprocal-rank-fusion-when-to-use.md",
"cluster": "Hybrid retrieval: RRF",
"updated": "2026-10-28",
"summary": "Reciprocal Rank Fusion scores a document by the sum of weight / (k + rank) across ranked lists. XERJ uses k = 60, and a captured score checks the math.",
"intent_group": "retrieval research and eval",
"answer": "What is reciprocal rank fusion, and when should I use it? RRF scores a document by the sum of weight over k plus its rank in every list that returned it. Use it to merge BM25 and kNN results whose scores are not comparable. XERJ uses k = 60, and our captured fused score was exactly 1/61 plus 1/61.",
"queries": [
"hybrid search bm25 + vectors local"
]
},
{
"title": "How does XERJ combine BM25 and kNN?",
"question": "How does XERJ combine BM25 and kNN?",
"canonical_url": "https://xerj.org/answers/how-xerj-combines-search",
"markdown_url": "https://xerj.org/answers/how-xerj-combines-search.md",
"cluster": "Hybrid search",
"updated": "2026-10-31",
"summary": "One hybrid request carries a BM25 sub-query and a kNN sub-query against one index, and Reciprocal Rank Fusion merges their ranked lists into a single result list.",
"intent_group": "retrieval research and eval",
"answer": "How does XERJ combine BM25 and kNN? One hybrid request carries a BM25 sub-query and a kNN sub-query against a single index, and Reciprocal Rank Fusion merges the two ranked lists. Fusion reads rank positions, not scores, so the BM25 and cosine scales never need to be normalized against each other.",
"queries": [
"index folder of jsonl files and query with bm25",
"pluggable scoring function search engine"
]
},
{
"title": "How do I search files that live in an S3 bucket?",
"question": "How do I search files that live in an S3 bucket?",
"canonical_url": "https://xerj.org/answers/search-files-in-an-s3-bucket",
"markdown_url": "https://xerj.org/answers/search-files-in-an-s3-bucket.md",
"cluster": "Ingest: object storage",
"updated": "2026-10-19",
"summary": "Point xerj autoindex at s3://bucket/prefix. It lists the prefix, streams only the objects whose ETag changed, and indexes them. One LIST request per 1,000 keys.",
"intent_group": "operating autoindex",
"answer": "How do I search files that live in an S3 bucket? Run xerj autoindex s3://bucket/prefix against a running node. XERJ lists the prefix, streams in only the objects whose ETag or size changed, and indexes them with the same extractors it uses for a folder. Credentials come from the environment; the index stays local."
},
{
"title": "How do I keep an index current when files live in a bucket?",
"question": "My documents live in an S3 or R2 bucket. How do I keep a XERJ index current as objects change?",
"canonical_url": "https://xerj.org/answers/keep-s3-bucket-index-current",
"markdown_url": "https://xerj.org/answers/keep-s3-bucket-index-current.md",
"cluster": "Object storage",
"updated": "2026-10-19",
"summary": "A bucket has no inotify, so you poll or you subscribe to events. Poll cost is the decision: ListObjectsV2 is a Class A operation, one call per 1,000 keys, every cycle.",
"intent_group": "operating autoindex",
"answer": "My documents live in an S3 or R2 bucket; how do I keep a XERJ index current as objects change? Poll the prefix with xerj autoindex s3://bucket/prefix --watch, and pick the interval from the operation count. ListObjectsV2 is a Class A operation, one call per 1,000 keys, on every cycle, even for an empty bucket."
},
{
"title": "How do I check my code index actually finished?",
"question": "My codebase indexer says indexed but I don't see my code. How do I check it actually finished?",
"canonical_url": "https://xerj.org/answers/check-codebase-index-is-complete",
"markdown_url": "https://xerj.org/answers/check-codebase-index-is-complete.md",
"cluster": "Operations: completeness",
"updated": "2026-10-24",
"summary": "Compare 4 numbers: files on disk, the dry-run plan, autoindex status, and the index count. A captured run cut 64 files to a 3-file plan, naming a rule per gap.",
"intent_group": "code search for agents",
"answer": "My codebase indexer says indexed but I don't see my code: how do I check it actually finished? Reconcile four numbers: files on disk, the --dry-run plan, xerj autoindex status, and the document count in _cat/indices. A captured run turned 64 non-hidden files into a 3-file plan, naming an ignore rule for every gap.",
"queries": [
"index monorepo for AI agent search"
]
},
{
"title": "How do I estimate folder-indexing time?",
"question": "How long will it take to index a folder for search?",
"canonical_url": "https://xerj.org/answers/estimate-autoindex-time-before-running",
"markdown_url": "https://xerj.org/answers/estimate-autoindex-time-before-running.md",
"cluster": "Operations: estimation",
"updated": "2026-10-19",
"summary": "XERJ measures a client-side extraction floor during a dry run and can stop at a decision gate with exit 4. On 2,500 PDFs the floor was 2.2 min, the run 157.7 s.",
"intent_group": "operating autoindex",
"answer": "How long will it take to index a folder for search? Run xerj autoindex --dry-run first: it measures an extraction floor on your own machine and writes nothing. Add --max-minutes and the decision gate exits 4 with a JSON decision request. On 2,500 PDFs the floor was 2.2 minutes and the finished run took 157.7 seconds."
},
{
"title": "Why does a folder search miss files on disk?",
"question": "Why would a folder search miss files that I can see on disk?",
"canonical_url": "https://xerj.org/answers/why-autoindex-skipped-files",
"markdown_url": "https://xerj.org/answers/why-autoindex-skipped-files.md",
"cluster": "Operations: exclusions",
"updated": "2026-10-24",
"summary": "XERJ prints one line per ignore rule and stores a refusal reason per file. A capture reconciles 26 files on disk to 1 indexed, 2 refused and 23 excluded.",
"intent_group": "operating autoindex",
"answer": "Why would a folder search miss files that I can see on disk? XERJ prints one line per ignore rule with an exact file count, and stores a refusal reason for every file it opened. A capture over 26 files on disk indexed 1, refused 2 with named reasons, excluded 23 through ignore rules, and exited 3."
},
{
"title": "What do the xerj autoindex exit codes mean?",
"question": "What does indexer exit code 3 mean?",
"canonical_url": "https://xerj.org/answers/autoindex-exit-codes",
"markdown_url": "https://xerj.org/answers/autoindex-exit-codes.md",
"cluster": "Operations: exit codes",
"updated": "2026-10-28",
"summary": "xerj autoindex exits 0 complete, 3 completed-with-junk, 4 needs-a-decision, 2 usage and 1 on a runtime failure. Only 4 is asking you a question.",
"intent_group": "operating autoindex",
"answer": "Exit 3 means the run finished with an outcome to inspect. Completed-with-junk is success; stale-resume-plan carries ok=false because new files were not indexed and needs a --fresh rebuild. Exit 0 is completion or cancellation, 4 needs approval, 2 is usage, and 1 is a real failure. Read the terminal reason and refusal counts before reporting coverage."
},
{
"title": "Why autoindex refuses a .zip and asks you to extract it",
"question": "Why does xerj autoindex say to extract a zip first?",
"canonical_url": "https://xerj.org/answers/autoindex-says-extract-the-archive-first",
"markdown_url": "https://xerj.org/answers/autoindex-says-extract-the-archive-first.md",
"cluster": "Operations: exit codes",
"updated": "2026-10-19",
"summary": "autoindex never opens archives. A .zip, .tgz, .7z, .rar or .xz is marked as junk with the exact extraction command; the run continues. Index the extracted folder.",
"intent_group": "operating autoindex",
"answer": "Why does xerj autoindex say to extract a zip first? Because autoindex never opens archives. A .zip, .tgz, .7z, .rar or .xz is marked as junk with a reason that quotes the extraction command, the rest of the folder is indexed, and the run exits 3. Extract the archive and run the same command again."
},
{
"title": "Why did xerj autoindex say a dataset was REFUSED?",
"question": "Why did xerj autoindex say a dataset was refused by the server?",
"canonical_url": "https://xerj.org/answers/autoindex-dataset-refused-by-server",
"markdown_url": "https://xerj.org/answers/autoindex-dataset-refused-by-server.md",
"cluster": "Operations: exit codes",
"updated": "2026-10-19",
"summary": "When the server refuses one dataset's mapping, xerj autoindex records that dataset's files as junk, indexes every other dataset, and exits 3 with datasets_refused on the terminal line.",
"intent_group": "operating autoindex",
"answer": "Why did xerj autoindex say a dataset was refused by the server? The server answered HTTP 400 to that dataset's mapping. autoindex records the dataset's files as junk, indexes every other dataset, and exits 3 with datasets_refused on the terminal line. Re-running does not fix it; fix the cause and rebuild under a new prefix."
},
{
"title": "xerj autoindex 429 (server pushed back): the run retries",
"question": "Why did xerj autoindex say the server pushed back with HTTP 429?",
"canonical_url": "https://xerj.org/answers/autoindex-server-back-pressure-429",
"markdown_url": "https://xerj.org/answers/autoindex-server-back-pressure-429.md",
"cluster": "Operations: exit codes",
"updated": "2026-10-28",
"summary": "xerj autoindex retries rejected items after a 429. Persistent rejection eventually fails the run; the error and completion record explain the outcome.",
"intent_group": "operating autoindex",
"answer": "Why did xerj autoindex say the server pushed back with HTTP 429? The node shed load for a moment through its memory circuit breaker. autoindex lowers bulk concurrency, re-sends only the rejected items, and reports bulk_retries on the terminal line. It exits 1 only after 600 seconds of re-sends the node never accepts, and the same command resumes."
},
{
"title": "How do I keep a XERJ index up to date as files change?",
"question": "How do I keep a search index up to date as files change, without re-indexing everything?",
"canonical_url": "https://xerj.org/answers/keep-index-current-as-files-change",
"markdown_url": "https://xerj.org/answers/keep-index-current-as-files-change.md",
"cluster": "Operations: freshness",
"updated": "2026-10-24",
"summary": "Run xerj autoindex --watch --no-graph. It indexes once, then reindexes what the filesystem reports. Measured: 0.00 CPU-seconds per idle minute against 1.7 s and a full corpus re-read for every poll.",
"intent_group": "operating autoindex",
"answer": "How do I keep a search index up to date as files change, without re-indexing everything? Run xerj autoindex ./folder --watch --no-graph. It indexes once, then reindexes only what the filesystem reports changed. Measured idle cost was 0.00 CPU-seconds per minute, against 1.7 s and a full corpus re-read for every timed re-run.",
"queries": [
"incremental index jsonl appended file search",
"search checkpoint files while crawler still running"
]
},
{
"title": "Single-binary local search engine, no Docker or JVM",
"question": "Is there a single-binary local search engine I can just run?",
"canonical_url": "https://xerj.org/answers/search-engine-without-docker",
"markdown_url": "https://xerj.org/answers/search-engine-without-docker.md",
"cluster": "Operations: installation",
"updated": "2026-10-28",
"summary": "XERJ runs from one native binary with no container and no JVM. A measured capture records 3 linked libraries and a 1.071 s cold start to the first HTTP 200.",
"intent_group": "search engine alternatives",
"answer": "Is there a single-binary local search engine I can just run? Yes. XERJ runs from one native Rust binary with no container and no JVM. A first-party capture on Linux x86-64 shows 3 dynamically linked libraries and a 67,174,440-byte executable, and a cold start of 1.071 s to the first HTTP 200 on an empty data directory.",
"queries": [
"self-hosted Elasticsearch alternative single binary Rust MCP",
"search engine without docker"
]
},
{
"title": "Search logs locally without ELK: low-volume log search",
"question": "Free or cheap alternative for low volume log management and searching?",
"canonical_url": "https://xerj.org/answers/cheap-low-volume-log-search",
"markdown_url": "https://xerj.org/answers/cheap-low-volume-log-search.md",
"cluster": "Operations: low-volume logs",
"updated": "2026-10-19",
"summary": "XERJ indexes plain-text logs on one node with exact error counts and sub-millisecond filters. A measured ladder stops at 16 MB: memory grows about 200x the corpus.",
"intent_group": "logs and docs",
"answer": "Is there a free or cheap alternative for low-volume log management and searching? XERJ indexes plain-text logs on one node with no ELK stack, returns exact error counts, and answered a level=ERROR filter at p50 0.488 ms on a 16 MB corpus. Memory is the limit: peak resident memory grew to about 200 times the corpus.",
"queries": [
"search logs locally without ELK",
"opensearch alternative low memory"
]
},
{
"title": "How do I read autoindex progress?",
"question": "How can I see whether folder indexing is still working?",
"canonical_url": "https://xerj.org/answers/read-autoindex-progress",
"markdown_url": "https://xerj.org/answers/read-autoindex-progress.md",
"cluster": "Operations: progress",
"updated": "2026-10-24",
"summary": "XERJ prints xerj-bar, xerj-progress and a final xerj-done line. On a single large file the percentage stays at 0.0%, so read since_progress_s and waiting_on.",
"intent_group": "operating autoindex",
"answer": "How can I see whether folder indexing is still working? Pass --progress plain and read the xerj-progress lines on stderr. A captured 22.2 s run emitted 12 phases in order and ended with xerj-done ok=true. On a single 16 MB file the percentage stays at 0.0%, so read since_progress_s and waiting_on instead."
},
{
"title": "Resume an interrupted indexing run without starting over",
"question": "The indexer died overnight. Do I have to start over?",
"canonical_url": "https://xerj.org/answers/resume-interrupted-autoindex-run",
"markdown_url": "https://xerj.org/answers/resume-interrupted-autoindex-run.md",
"cluster": "Operations: recovery",
"updated": "2026-10-28",
"summary": "XERJ keeps a resume journal in the state directory, so re-running autoindex resumes it. A resumed capture reached 82,231 documents, like a clean run.",
"intent_group": "operating autoindex",
"answer": "The indexer died overnight; do I have to start over? No. XERJ writes a resume journal into the --state-dir, so re-running the identical autoindex command is idempotent. In a capture the interrupted run, the resumed run and a clean control run all ended at 82,231 documents, and the first 20 document ids matched exactly.",
"queries": [
"resumable indexing large folder"
]
},
{
"title": "Why is reindexing my files taking forever?",
"question": "Reindexing my files is taking forever. What usually causes that?",
"canonical_url": "https://xerj.org/answers/reindex-taking-forever",
"markdown_url": "https://xerj.org/answers/reindex-taking-forever.md",
"cluster": "Operations: reindex",
"updated": "2026-10-28",
"summary": "A measured XERJ _reindex moved 100,000 documents in 20,836 ms on one node. Read the batches, created and failures fields to tell slow progress from no progress.",
"intent_group": "operating autoindex",
"answer": "Reindexing my files is taking forever; what usually causes it? Usually batch size and write cost, and sometimes a stalled call. Read created against a _count of the destination index to tell slow progress from none. A measured XERJ _reindex of 100,000 documents took 20,836 ms in 100 batches with 0 failures on one node."
},
{
"title": "What is XERJ?",
"question": "What is XERJ?",
"canonical_url": "https://xerj.org/answers/what-is-xerj",
"markdown_url": "https://xerj.org/answers/what-is-xerj.md",
"cluster": "Product identity",
"updated": "2026-10-28",
"summary": "XERJ is a new way for AI to search for data: one local Rust binary that indexes your code, docs, specs and logs, plus Corpus Hub packs, and returns cited answers.",
"intent_group": "Find the right tool",
"answer": "What is XERJ? It is the search engine for AI agents. A new way for AI to search for data: one local Rust binary that indexes your code, docs, specs and logs, plus Corpus Hub packs, and returns cited answers. Query it over the Elasticsearch REST API, or let an agent call it through xerj mcp.",
"queries": [
"local search engine for AI agents MCP server BM25",
"self-hosted Elasticsearch alternative single binary Rust MCP"
]
},
{
"title": "Improve a basic FAISS RAG pipeline with hybrid search",
"question": "How can I improve a basic FAISS RAG pipeline?",
"canonical_url": "https://xerj.org/answers/improve-basic-faiss-rag-pipeline",
"markdown_url": "https://xerj.org/answers/improve-basic-faiss-rag-pipeline.md",
"cluster": "RAG: troubleshooting",
"updated": "2026-10-31",
"summary": "Move the FAISS chunk store into one XERJ index and fuse BM25 with vectors in a hybrid query. Two request shapes FAISS users try first return HTTP 400.",
"intent_group": "retrieval research and eval",
"answer": "How can I improve a basic FAISS RAG pipeline? Load the chunk store into one XERJ index with a semantic_text field and retrieve with the hybrid clause, which fuses BM25 and kNN, instead of vectors alone. Our 20-chunk migration indexed cleanly, and the two request shapes FAISS users write first both returned HTTP 400.",
"queries": [
"rag with structured output schema",
"query documents return typed results"
]
},
{
"title": "When does XERJ kNN use an exact scan instead of HNSW?",
"question": "Why is filtered kNN slower than unfiltered?",
"canonical_url": "https://xerj.org/answers/filter-knn-exact-scan-caveat",
"markdown_url": "https://xerj.org/answers/filter-knn-exact-scan-caveat.md",
"cluster": "Retrieval behaviour",
"updated": "2026-10-19",
"summary": "A filter takes kNN off the HNSW graph and onto an exact scan whose cost scales with vectors scanned. This page explains when that happens and publishes no timing.",
"intent_group": "retrieval research and eval",
"answer": "Why is filtered kNN slower than unfiltered in XERJ? The filter changes the retrieval path. An unfiltered cosine knn on a large full-precision field is served by beam search over a persisted HNSW graph; a filtered one runs an exact scan whose cost grows with the vectors it reads. This page publishes no latency figure."
},
{
"title": "Vector database or full-text search for a folder?",
"question": "What's the actual difference between a vector database and full-text search?",
"canonical_url": "https://xerj.org/answers/vector-database-vs-full-text-search",
"markdown_url": "https://xerj.org/answers/vector-database-vs-full-text-search.md",
"cluster": "Retrieval: selection",
"updated": "2026-10-31",
"summary": "Full-text search matches tokens, kNN matches vectors, hybrid fuses both. XERJ serves all three from one index over an indexed folder, so the choice is a clause.",
"intent_group": "retrieval research and eval",
"answer": "What's the actual difference between a vector database and full-text search? Full-text search matches tokens and ranks with BM25; a kNN query compares one embedding against stored dense vectors. XERJ holds both in one index, so the choice is which clause to send. On our 8 judged queries the three modes disagreed on the top hit once.",
"queries": [
"grep vs semantic search for coding agents",
"vector database vs full text search"
]
},
{
"title": "BM25 vs vector search: keyword vs semantic, side by side",
"question": "BM25 vs vector search: which one should you use?",
"canonical_url": "https://xerj.org/answers/bm25-vs-vector-search",
"markdown_url": "https://xerj.org/answers/bm25-vs-vector-search.md",
"cluster": "Search quality",
"updated": "2026-10-30",
"summary": "BM25 matches the words in a query. Vector search matches meaning. Type a query into a live toy, see where each one fails, and read recorded benchmark numbers.",
"intent_group": "hybrid search",
"answer": "BM25 vs vector search: which should you use? BM25 scores the exact words a document shares with the query, so it is best for names, codes and error strings. Vector search compares meaning, so it finds paraphrases. Most search over mixed text works best with both, merged as hybrid search.",
"queries": [
"bm25 vs vector search",
"keyword vs semantic search",
"bm25 vs embeddings",
"lexical vs semantic search"
]
},
{
"title": "What is hybrid search? BM25 plus vectors, explained",
"question": "What is hybrid search?",
"canonical_url": "https://xerj.org/answers/what-is-hybrid-search",
"markdown_url": "https://xerj.org/answers/what-is-hybrid-search.md",
"cluster": "Search quality",
"updated": "2026-10-30",
"summary": "Hybrid search runs BM25 and vector search on one query and merges the two ranked lists. Try a live toy, a worked RRF example and a recorded benchmark.",
"intent_group": "hybrid search",
"answer": "What is hybrid search? It runs a keyword search such as BM25 and a vector search on the same query, then merges the two ranked lists into one. Keywords catch exact words like error codes and names. Vectors catch the same idea in different words. Fusion, often Reciprocal Rank Fusion, combines the ranks.",
"queries": [
"hybrid search",
"what is hybrid search",
"hybrid search without a vector database",
"hybrid search explained"
]
},
{
"title": "Share a local search index through a tunnel",
"question": "How can I give a remote person temporary search access to files on my laptop without port forwarding or a VPN?",
"canonical_url": "https://xerj.org/answers/share-local-search-index-through-a-tunnel",
"markdown_url": "https://xerj.org/answers/share-local-search-index-through-a-tunnel.md",
"cluster": "Sharing: read-only guest access",
"updated": "2026-10-19",
"summary": "xerj share --tunnel starts your own cloudflared, prints a public guest link, and closes the tunnel and revokes the share on Ctrl-C. What the trade is.",
"intent_group": "sharing an index",
"answer": "How can I give a remote person temporary search access to files on my laptop without port forwarding or a VPN? Run xerj share with --tunnel: it starts your own cloudflared, prints a public HTTPS guest link, and runs until Ctrl-C, which closes the tunnel and revokes the share. Cloudflare terminates the TLS."
},
{
"title": "Share read-only search over a folder without uploading it",
"question": "I need my accountant to search a folder of emails and PDFs. How do I do that without uploading everything somewhere?",
"canonical_url": "https://xerj.org/answers/share-folder-read-only-search-without-uploading",
"markdown_url": "https://xerj.org/answers/share-folder-read-only-search-without-uploading.md",
"cluster": "Sharing: read-only guest access",
"updated": "2026-10-28",
"summary": "Index the folder on your machine, then run xerj share. The other person gets a link, a passcode and a read-only search page. Your files stay with you.",
"intent_group": "sharing an index",
"answer": "How do I let my accountant search a folder of emails and PDFs without uploading everything somewhere? Index the folder with xerj brain, then run xerj share on it. The other person gets a link and a passcode and opens a read-only search page. Documents and index stay on your machine, and you can revoke it anytime."
},
{
"title": "What a XERJ share-link guest can and cannot reach",
"question": "If I give someone a read-only share link to one search index, can they see my other indices or anything else on the server?",
"canonical_url": "https://xerj.org/answers/what-a-share-link-guest-can-reach",
"markdown_url": "https://xerj.org/answers/what-a-share-link-guest-can-reach.md",
"cluster": "Sharing: read-only guest access",
"updated": "2026-10-19",
"summary": "A share-link guest key reads the shared index and nothing else: no other index, no _cat or _cluster, no writes, no scroll or PIT. Each refusal is a live test.",
"intent_group": "sharing an index",
"answer": "If I give someone a read-only share link to one search index, can they see my other indices? No. A share-link guest key carries read on the shared index only, and a guest route allow-list closes _cat, _cluster, every other index, all writes, and scroll and point-in-time contexts. A live test checked each refusal."
}
]
}