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
site: answer-first upgrade of answer and compare pages (#1966)
xerj-orgdba01e96efe1
diff --git a/content/answers/agent-memory-without-postgres-qdrant.md b/content/answers/agent-memory-without-postgres-qdrant.mdindex c7794d0ce..2d2e8ea4f 100644--- a/content/answers/agent-memory-without-postgres-qdrant.md+++ b/content/answers/agent-memory-without-postgres-qdrant.md@@ -1,5 +1,5 @@----title: "Agent memory on a laptop, no extra database"+title: "Agent memory without Postgres or a vector database"h1: "What's a simple way to give an agent long-term memory on my laptop without Qdrant?"description: "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."slug: "agent-memory-without-postgres-qdrant"@@ -7,11 +7,19 @@ cluster: "Agent memory: topology"question: "I want persistent agent memory without standing up Postgres or Qdrant. What do people use?"intent: "tool-selection"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start one XERJ node on this laptop, POST a durable fact to /_memory/agentmem, read it back with POST /_memory/agentmem/_recall, then run ss -ltnp and ps to list every listening socket and every process the node owns and report whether postgres, qdrant, redis, weaviate, milvus or chroma is running anywhere on the host."+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."+key_fact: "xerj mcp exposes 2 memory tools, `xerj_memory_store` and `xerj_memory_recall`, among the 17 tools a live `tools/list` returned."+key_fact_source: "landing/docs/agents/schemas/mcp-tools.json"+key_fact_date: "2026-10-19"+intent_group: "agent memory"+queries:+ - "memory layer for AI agents without vector database"+ - "long term memory MCP server local"commands:- cmd: "curl -s -XPOST 'http://127.0.0.1:9430/_memory/agentmem' -H 'content-type: application/json' -d '{\"text\":\"The user prefers p50 and p95 latency, never the mean.\",\"metadata\":{\"session\":\"A\"}}'"note: "Store one memory against the running node. No other service takes part."diff --git a/content/answers/audit-php-codebase-with-an-index.md b/content/answers/audit-php-codebase-with-an-index.mdindex aaa03b0ea..1cb9df8b7 100644--- a/content/answers/audit-php-codebase-with-an-index.md+++ b/content/answers/audit-php-codebase-with-an-index.md@@ -7,11 +7,19 @@ cluster: "Code security"question: "How do I search a large PHP repo for dangerous sinks without reading every file?"intent: "how-to"published: "2026-08-22"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a security-reviewing coding agent on a large PHP repository. Read https://xerj.org/llms.txt, compile the invariant you care about into indexed facts with an AST extractor, index those facts into XERJ, query for the violating shape, and read only the survivors — then report the clean surfaces as findings rather than dropping them."+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."+key_fact: "The WordPress core audit covered 1,492 PHP files and about 619k lines, indexed as 11,990 functions."+key_fact_source: "docs/case-studies/wordpress-security-audit/README.md"+key_fact_date: "2026-10-19"+intent_group: "code search for agents"+queries:+ - "local code search MCP Claude Code fewer tokens than grep"+ - "tree-sitter code search CLI"commands:- cmd: "xerj --insecure --data-dir ./.xerj-audit"note: "Start a local node to hold the audit facts."diff --git a/content/answers/autoindex-dataset-refused-by-server.md b/content/answers/autoindex-dataset-refused-by-server.mdindex 0f794fa43..ecf68abc6 100644--- a/content/answers/autoindex-dataset-refused-by-server.md+++ b/content/answers/autoindex-dataset-refused-by-server.md@@ -7,11 +7,16 @@ cluster: "Operations: exit codes"question: "Why did xerj autoindex say a dataset was refused by the server?"intent: "troubleshooting"published: "2026-09-18"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run xerj autoindex with --progress plain, and parse the xerj-done line. If it carries datasets_refused, report the corpus as indexed but incomplete, run xerj autoindex map to read the Refused datasets section, and name each refused index and the server's reason to the user. Do not retry the same command: a refusal is recorded in the committed generation and a retry repeats it."+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."+key_fact: "A forced refusal on a 3-file corpus recorded the CSV dataset's 2 files as junk and still indexed the other dataset."+key_fact_source: "benchmarks/autoindex-resilience/refusal-e2e.run1.stderr.txt"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"commands:- cmd: "xerj autoindex ./corpus --url http://127.0.0.1:9200 --prefix ax --no-graph --state-dir ./state --progress plain"note: "A normal run. If the server refuses a dataset, the run continues and exits 3."diff --git a/content/answers/autoindex-exit-codes.md b/content/answers/autoindex-exit-codes.mdindex c374ebb68..c308f3dbc 100644--- a/content/answers/autoindex-exit-codes.md+++ b/content/answers/autoindex-exit-codes.md@@ -7,11 +7,16 @@ cluster: "Operations: exit codes"question: "What does indexer exit code 3 mean?"intent: "troubleshooting"published: "2026-08-22"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run xerj autoindex on the folder, then branch on the process exit code before you report anything: 0 and 3 are finished runs, 4 is a decision request on stdout that you answer with --approve, 2 is a bad command line, and 1 is a real failure to retry or escalate."+answer: "What does indexer exit code 3 mean for xerj autoindex? It means success: the run completed and recorded some junk files. Exit 0 is a clean completion, 4 means the estimate exceeded --max-minutes and nothing was indexed, 2 is a usage error, and 1 is an endpoint or journal failure. Only exit 4 asks you a question."+key_fact: "The decision gate that produces exit 4 defaults to 10 minutes of estimated work (`DEFAULT_MAX_MINUTES`)."+key_fact_source: "engine/crates/xerj-autoindex/src/gate.rs"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"commands:- cmd: "xerj autoindex --help"note: "Print the exit-code contract from the binary you actually installed."diff --git a/content/answers/autoindex-says-extract-the-archive-first.md b/content/answers/autoindex-says-extract-the-archive-first.mdindex 75ad8ec4a..fb5197c4b 100644--- a/content/answers/autoindex-says-extract-the-archive-first.md+++ b/content/answers/autoindex-says-extract-the-archive-first.md@@ -7,11 +7,16 @@ cluster: "Operations: exit codes"question: "Why does xerj autoindex say to extract a zip first?"intent: "troubleshooting"published: "2026-09-18"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt. If a run prints 'not indexed — archives are never opened' under its summary (or its --json summary has a non-empty unextracted_archives list), run the command each line names (unzip, tar -xzf, 7z x, unrar x, xz -dk) on that file, then run xerj autoindex again on the extracted folder. Exit code 3 with those lines is a completed run, not a failure, but if the archive was the only thing in the folder nothing was indexed: tell the user."+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."+key_fact: "autoindex classifies a file from its first 8,192 bytes (`PREFIX` in the sniffer), which is how an archive is recognised by magic bytes rather than by its extension."+key_fact_source: "engine/crates/xerj-autoindex/src/sniff.rs"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"commands:- cmd: "xerj autoindex ~/downloads --url http://127.0.0.1:9200 --prefix dl --progress plain"note: "A run over a folder that holds an archive finishes with exit 3 and prints the archive, with the command to extract it, under its summary."diff --git a/content/answers/autoindex-server-back-pressure-429.md b/content/answers/autoindex-server-back-pressure-429.mdindex b62685e9a..5deec2ebd 100644--- a/content/answers/autoindex-server-back-pressure-429.md+++ b/content/answers/autoindex-server-back-pressure-429.md@@ -7,11 +7,16 @@ cluster: "Operations: exit codes"question: "Why did xerj autoindex say the server pushed back with HTTP 429?"intent: "troubleshooting"published: "2026-09-18"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run xerj autoindex with --progress plain, and keep reading the stream when a line says server is shedding load or server pushed back (HTTP 429): the run is re-sending the rejected items and is not hung. Parse the xerj-done line; bulk_retries=N means the run fought back-pressure and still landed every record. Report exit 1 with 'kept rejecting' in the error line as a server condition that did not clear, and rerun the same command to resume."+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."+key_fact: "One bulk request carries at most 10,000 actions (`BULK_MAX_ACTIONS`), a fifth of the engine's default limit."+key_fact_source: "engine/crates/xerj-autoindex/src/esclient.rs"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"commands:- cmd: "xerj autoindex ./corpus --url http://127.0.0.1:9200 --prefix ax --no-graph --state-dir ./state --progress plain"note: "A normal run. If the node sheds load for a moment, the run re-sends the rejected items and continues."diff --git a/content/answers/catalog-files-with-autoindex-map.md b/content/answers/catalog-files-with-autoindex-map.mdindex 8bd6f35b1..08c5ffff0 100644--- a/content/answers/catalog-files-with-autoindex-map.md+++ b/content/answers/catalog-files-with-autoindex-map.md@@ -1,5 +1,5 @@----title: "How do I find out what is in a messy data folder?"+title: "Find out what is in a messy data folder before searching"h1: "How should an agent figure out what's in a messy data folder before searching?"description: "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."slug: "catalog-files-with-autoindex-map"@@ -7,11 +7,19 @@ cluster: "Files and formats"question: "I dropped a messy data folder on an agent. How should it figure out what's inside before searching?"intent: "tool-selection"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure, run xerj autoindex on the messy folder you were handed, then run xerj autoindex map --json and report every dataset, its index name, its formats, its field names with types, its time field and time range, and finally query autoindex-catalog for doc_kind file to list every file the run refused and the reason it gave."+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."+key_fact: "Type inference keeps at most 512 fields per dataset (`MAX_FIELDS_PER_DATASET`), so a map never lists more than that for one dataset."+key_fact_source: "engine/crates/xerj-autoindex/src/infer/mod.rs"+key_fact_date: "2026-10-19"+intent_group: "JSONL and data files"+queries:+ - "agent tool for querying datasets"+ - "index folder of json files for search"commands:- cmd: "xerj autoindex map --url http://127.0.0.1:9410 --disable-feedback"note: "Print the data map for everything the node has indexed."diff --git a/content/answers/cheap-low-volume-log-search.md b/content/answers/cheap-low-volume-log-search.mdindex 7a071f3be..be58f4f7d 100644--- a/content/answers/cheap-low-volume-log-search.md+++ b/content/answers/cheap-low-volume-log-search.md@@ -1,5 +1,5 @@----title: "What can I use for low-volume log search?"+title: "Search logs locally without ELK: low-volume log search"h1: "What can I use for low-volume log search?"description: "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."slug: "cheap-low-volume-log-search"@@ -7,11 +7,19 @@ cluster: "Operations: low-volume logs"question: "Free or cheap alternative for low volume log management and searching?"intent: "tool-selection"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, index a small folder of plain-text logs with xerj autoindex, then run a term filter on level and a terms aggregation on service, and record the node's peak resident memory from /proc before you plan a larger corpus."+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."+key_fact: "The page's measured ladder stopped at a 16 MB log corpus, where peak resident memory was about 200 times the corpus size."+key_fact_source: "capture"+key_fact_date: "2026-08-23"+intent_group: "logs and docs"+queries:+ - "search logs locally without ELK"+ - "opensearch alternative low memory"commands:- cmd: "xerj autoindex ./logs --url http://127.0.0.1:9200 --prefix log16 --state-dir ./state-log16 --progress plain"note: "Index a folder of plain-text log files into a typed index."diff --git a/content/answers/check-codebase-index-is-complete.md b/content/answers/check-codebase-index-is-complete.mdindex 4f9b64371..9901ff0c5 100644--- a/content/answers/check-codebase-index-is-complete.md+++ b/content/answers/check-codebase-index-is-complete.md@@ -7,11 +7,18 @@ cluster: "Operations: completeness"question: "My codebase indexer says indexed but I don't see my code. How do I check it actually finished?"intent: "troubleshooting"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, count the files under the target folder, run xerj autoindex with --dry-run, run it for real, then reconcile the dry-run file count with xerj autoindex status and with a _cat/indices count before you report the codebase as indexed."+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."+key_fact: "Source files above 2 MiB are not parsed for symbols (`CODE_CAP`), one of the documented reasons a file can be missing from the code fields."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/code.rs"+key_fact_date: "2026-10-19"+intent_group: "code search for agents"+queries:+ - "index monorepo for AI agent search"commands:- cmd: "xerj autoindex ./my-repo --url http://127.0.0.1:9200 --prefix comp --state-dir ./state-comp --dry-run"note: "Print the plan and the ignore accounting without writing anything."diff --git a/content/answers/classify-text-from-labelled-history-without-llm.md b/content/answers/classify-text-from-labelled-history-without-llm.mdindex f15f9cb5c..6a41b56fd 100644--- a/content/answers/classify-text-from-labelled-history-without-llm.md+++ b/content/answers/classify-text-from-labelled-history-without-llm.md@@ -7,11 +7,19 @@ cluster: "Decisions as retrieval"question: "Can I classify text from labelled history without calling an LLM?"intent: "informational"published: "2026-09-18"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, index the user's labelled examples into one XERJ index with the label in a keyword field, classify each held-out item by a rank-weighted vote over its 10 nearest neighbours, and report accuracy, the share of items decided at confidence 0.8 or higher, and the accuracy on that share."+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."+key_fact: "SMS spam detection scored 0.983 accuracy with BM25 over 4,000 labelled examples and 1,000 held-out items, k = 10."+key_fact_source: "benchmarks/decisions-as-retrieval/results/run-2026-09-18.txt"+key_fact_date: "2026-09-18"+intent_group: "retrieval research and eval"+queries:+ - "non generative model for question answering json"+ - "route to bigger model when confidence low"commands:- cmd: "xerj --insecure --data-dir ./decisions-data --embed-mode neural"note: "Start a throwaway node. The neural flag is needed for the MiniLM and hybrid rows only. The BM25 row uses no embedder and works on a default node."diff --git a/content/answers/code-search-mcp-for-claude-code.md b/content/answers/code-search-mcp-for-claude-code.mdindex e182f7888..bc8ee4ae6 100644--- a/content/answers/code-search-mcp-for-claude-code.md+++ b/content/answers/code-search-mcp-for-claude-code.md@@ -1,7 +1,7 @@----title: "Make an agent cite a file instead of dumping it"+title: "Code search MCP for Claude Code: cite file:line, not grep"h1: "I need my agent to find a passage and cite the file, not dump the whole tree. How?"-description: "Index the repository with xerj autoindex, then call xerj_search through xerj mcp. One captured call returned the file and line for 2 symbols without opening a file."+description: "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."slug: "code-search-mcp-for-claude-code"cluster: "Agent access and memory"question: "I need my agent to find a passage and cite the file, not dump the whole tree. How?"@@ -12,6 +12,16 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, index this repository with xerj autoindex --prefix mcpcode, add xerj mcp to your MCP host with the absolute binary path, then answer 'where is merge_segments defined' with one xerj_search call on the defs field and quote the file and line from the symbols array without opening the file."+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."+key_fact: "XERJ's tree-sitter registry covers 36 languages, a count pinned by a unit test so the docs cannot drift."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/code.rs"+key_fact_date: "2026-10-19"+intent_group: "code search for agents"+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"commands:- cmd: "xerj autoindex ./code --url http://127.0.0.1:9500 --prefix mcpcode --state-dir ./state-mcpcode --progress plain --disable-feedback"note: "Index the repository into mcpcode-* before the agent asks anything."@@ -40,7 +50,7 @@ faq:- q: "Can XERJ tell the agent who calls a function?"a: "No. Extraction is definitions only, with no call graph, no import graph and no cross-file reference resolution. A `defs` hit names the declaration site."- q: "Are the OpenAI and Anthropic tool schema files up to date?"- a: "No. Both list 6 tools while the binary serves 10. Read `tools/list` from a live server rather than copying either file."+ a: "No. Both list 6 tools while the binary serves 17 (checked 2026-10-19). Read `tools/list` from a live server, or the generated `mcp-tools.json`, rather than copying either file."---**TL;DR** — Index the repository with `xerj autoindex`, then register `xerj mcp` as an MCP server in the agent host. One captured `xerj_search` call on the `defs` field returned 2 documents. Each carried a `symbols` array with file and line, including `merge_segments` at `src/lib.rs` line 17.@@ -53,7 +63,7 @@ The MCP server holds no code of its own. Index the tree into a predictable prefixerj autoindex ./code --url http://127.0.0.1:9500 --prefix mcpcode --state-dir ./state-mcpcode --progress plain --disable-feedback```-XERJ parses 34 languages with tree-sitter and writes `language`, `defs`, `symbols[]`, `symbol_count` and `body` on every code document. The `defs` field is the retrieval hook for an agent.+XERJ parses 36 languages with tree-sitter and writes `language`, `defs`, `symbols[]`, `symbol_count` and `body` on every code document. The `defs` field is the retrieval hook for an agent.## Register the MCP server@@ -137,7 +147,7 @@ Two caps bound the extractor: a 2 MB file cap and 5,000 symbols per file. A parsInstall the latest XERJ before you write any host configuration, so that the `xerj mcp` subcommand is present.-The published `openai-tools.json` and `anthropic-tools.json` still list 6 tools while the binary serves 10. The 4 missing names are `xerj_brain_ego`, `xerj_brain_link`, `xerj_brain_overview` and `xerj_brain_unlink`. Read `tools/list` from a live server instead of copying either file.+The published `openai-tools.json` and `anthropic-tools.json` still list 6 tools while the binary serves 17 (v1.0.0-rc.97, checked 2026-10-19). The 11 missing names include the 4 `xerj_brain_*` tools, `xerj_code_search` and the 3 `xerj_hub_*` tools. Read `tools/list` from a live server, or the generated `mcp-tools.json`, instead of copying either file.## What the capture wasdiff --git a/content/answers/coding-agent-memory-across-sessions.md b/content/answers/coding-agent-memory-across-sessions.mdindex 17cb8d5a7..4617654c5 100644--- a/content/answers/coding-agent-memory-across-sessions.md+++ b/content/answers/coding-agent-memory-across-sessions.md@@ -7,11 +7,19 @@ cluster: "Agent memory: setup"question: "How do people store user preferences so an agent can recall them next week?"intent: "how-to"published: "2026-08-21"-updated: "2026-09-13"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, POST two facts to /_memory/agentmem on a running XERJ node, stop the node, start it again against the same data directory, then POST to /_memory/agentmem/_recall and report both returned ids."+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."+key_fact: "A memory store call deduplicates at a default cosine similarity of 0.95 when `dedup` is on."+key_fact_source: "engine/crates/xerj-api/src/memory_api.rs"+key_fact_date: "2026-10-19"+intent_group: "agent memory"+queries:+ - "agent memory local search past sessions"+ - "long term memory MCP server local"commands:- cmd: "curl -s -XPOST 'http://127.0.0.1:9430/_memory/agentmem' -H 'content-type: application/json' -d '{\"text\":\"The user prefers p50 and p95 latency, never the mean.\",\"metadata\":{\"session\":\"A\",\"topic\":\"preferences\"}}'"note: "Store one memory. Port 9430 is the capture's Elasticsearch-compatible listener; the default is 9200."diff --git a/content/answers/do-search-embeddings-help.md b/content/answers/do-search-embeddings-help.mdindex 4488434fc..58e2ad4a1 100644--- a/content/answers/do-search-embeddings-help.md+++ b/content/answers/do-search-embeddings-help.md@@ -7,11 +7,19 @@ cluster: "Embeddings: selection"question: "Do I even need embeddings for search, or is full-text enough?"intent: "informational"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, index a small judged corpus into one XERJ index, run each query as BM25 and as kNN on the default node, then restart the node with --embed-mode neural and run the same queries again. Report precision at 3 and every miss for all three modes."+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."+key_fact: "On BEIR SciFact, hybrid RRF with the neural embedder scored nDCG@10 0.6993 against 0.6572 for BM25 alone."+key_fact_source: "benchmarks/beir-hybrid/results/scifact.txt"+key_fact_date: "2026-09-18"+intent_group: "retrieval research and eval"+queries:+ - "grep vs semantic search for coding agents"+ - "bm25"commands:- cmd: "curl -s -XPUT 'http://127.0.0.1:9440/eval' -H 'content-type: application/json' -d '{\"mappings\":{\"properties\":{\"doc_id\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"text\":{\"type\":\"semantic_text\"}}}}'"note: "Create the judged index first. Without this step the queries below answer 404. Port 9440 is the capture's Elasticsearch-compatible listener; the default is 9200."diff --git a/content/answers/does-xerj-support-s3-alerting-plugins.md b/content/answers/does-xerj-support-s3-alerting-plugins.mdindex 0eaebfd2a..6e5f87335 100644--- a/content/answers/does-xerj-support-s3-alerting-plugins.md+++ b/content/answers/does-xerj-support-s3-alerting-plugins.md@@ -7,11 +7,19 @@ cluster: "Capabilities and limits"question: "Can XERJ store its index in S3, send alerts, or run my own ingest plugin?"intent: "informational"published: "2026-09-18"-updated: "2026-09-30"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt and https://github.com/xerj-org/xerj/blob/main/ROADMAP.md before you plan around XERJ. Object storage works in BOTH directions: xerj autoindex s3://bucket/prefix reads documents out of a bucket, and since v1.0.0-rc.77 storage.backend = \"s3\" stores the index itself in one (needs an existing storage.s3_bucket; the WAL stays local). Alerting is PARTIAL (v1.0.0-rc.80: interval-triggered xerj_decide watches that index fires; every other shape 501s). Record packs are real since rc.78 (pre-indexed packs are not). Do not design for user-supplied ingest plugins or pre-indexed packs. Tell the human which of their requirements falls on that list, and use only what the roadmap lists under shipping today."+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."+key_fact: "XERJ passes 1366 of 1369 Elasticsearch YAML conformance cases; the remaining gaps are listed in the suite."+key_fact_source: "README.md"+key_fact_date: "2026-10-19"+intent_group: "search engine alternatives"+queries:+ - "self-hosted Elasticsearch alternative single binary Rust MCP"+ - "elasticsearch compatible lightweight server"commands:- cmd: "curl -s -XPUT http://127.0.0.1:9200/_watcher/watch/demo -H 'content-type: application/json' -d '{\"trigger\":{\"schedule\":{\"interval\":\"10s\"}},\"input\":{\"simple\":{}},\"condition\":{\"never\":{}}}'"note: "Since rc.80 this exact body is REFUSED with a 501 naming what is not evaluated (the condition is not xerj_decide). A supported shape — interval trigger, one-index search input, xerj_decide condition, index_alert action — is accepted AND evaluated."diff --git a/content/answers/estimate-autoindex-time-before-running.md b/content/answers/estimate-autoindex-time-before-running.mdindex 563579b51..7b8d82583 100644--- a/content/answers/estimate-autoindex-time-before-running.md+++ b/content/answers/estimate-autoindex-time-before-running.md@@ -7,11 +7,16 @@ cluster: "Operations: estimation"question: "How long will it take to index a folder for search?"intent: "cost"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run xerj autoindex with --dry-run to read the measured extraction floor, then re-run with --max-minutes and --quiet so the decision gate returns exit 4 and a machine-readable decision JSON on stdout before any document is written."+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."+key_fact: "Without --max-minutes, the gate asks before any run estimated at more than 10 minutes (`DEFAULT_MAX_MINUTES`)."+key_fact_source: "engine/crates/xerj-autoindex/src/gate.rs"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"commands:- cmd: "xerj autoindex ./mixed --url http://127.0.0.1:9200 --prefix est --state-dir ./state-est --dry-run"note: "Print the file count, the measured extraction floor and the work order."diff --git a/content/answers/evidence-for-agent-memory-links.md b/content/answers/evidence-for-agent-memory-links.mdindex f5a07947e..724946b62 100644--- a/content/answers/evidence-for-agent-memory-links.md+++ b/content/answers/evidence-for-agent-memory-links.md@@ -7,11 +7,19 @@ cluster: "Agent memory: provenance"question: "Agent memory: knowledge graphs aren't enough, we need a know-how graph"intent: "informational"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, build a XERJ brain over a notes folder, search the .xerj-memory-<brain>-edges index for documents with a src field, and report how many edges carry an evidence quote and what each quote says."+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."+key_fact: "The shared-term link detector keeps at most 5 edges per document (`MAX_EDGES_PER_DOC`), which bounds the link index."+key_fact_source: "engine/crates/xerj-autoindex/src/detect/sharedterm.rs"+key_fact_date: "2026-10-19"+intent_group: "agent memory"+queries:+ - "agent memory that cites sources"+ - "temporal knowledge graph agent memory as-of query"commands:- cmd: "curl -s -XPOST 'http://127.0.0.1:9430/.xerj-memory-notes-edges/_search' -H 'content-type: application/json' -d '{\"query\":{\"exists\":{\"field\":\"src\"}},\"size\":50,\"_source\":true,\"track_total_hits\":true}'"note: "Read every detected edge with its evidence. The exists filter drops the brain metadata document."diff --git a/content/answers/filter-knn-exact-scan-caveat.md b/content/answers/filter-knn-exact-scan-caveat.mdindex dadb26172..e452e167e 100644--- a/content/answers/filter-knn-exact-scan-caveat.md+++ b/content/answers/filter-knn-exact-scan-caveat.md@@ -7,11 +7,16 @@ cluster: "Retrieval behaviour"question: "Why is filtered kNN slower than unfiltered?"intent: "troubleshooting"published: "2026-08-22"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, and before you attribute a kNN latency change to XERJ, check which path the query takes: an unfiltered cosine kNN on a full-precision field over a large enough index is HNSW-served, and a filtered, nested, aggregation-bearing, quantized, non-cosine or small-index query is an exact scan whose cost scales with the vectors it must scan."+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."+key_fact: "The HNSW beam width (`num_candidates`) is floored at 800, and indexes under 1,024 documents always use the exact scan."+key_fact_source: "landing/llms.txt"+key_fact_date: "2026-10-19"+intent_group: "retrieval research and eval"commands:- cmd: "curl -s -XPOST http://127.0.0.1:9200/docs/_search -H 'content-type: application/json' -d '{\"knn\":{\"field\":\"embedding\",\"query_vector\":[0.1,0.2],\"k\":10,\"num_candidates\":100},\"_source\":[\"title\"]}'"note: "An unfiltered kNN clause. This is the shape the graph can serve."diff --git a/content/answers/full-text-search-browser-history.md b/content/answers/full-text-search-browser-history.mdindex f904e4481..61b6b2898 100644--- a/content/answers/full-text-search-browser-history.md+++ b/content/answers/full-text-search-browser-history.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "Is there a way to full-text search my browser history?"intent: "tool-selection"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, close the browser, copy the Chrome History file and its -wal and -shm side files to a scratch folder, record sha256 of all 3, start a local XERJ node, run `xerj autoindex ./browser-history --url http://127.0.0.1:9200 --prefix bh --progress plain`, re-record the checksums, then POST a match_phrase on title, a term on url, and an exists query on body, and report the hit totals plus the row count in the source urls table."+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."+key_fact: "Each record keeps at most 512 fields (`MAX_FIELDS_PER_RECORD`), so even a wide SQLite table maps without schema work."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/mod.rs"+key_fact_date: "2026-10-19"+intent_group: "JSONL and data files"+queries:+ - "full text search sqlite fts5 vs alternatives"commands:- cmd: "bash -c 'cd ./browser-history && sha256sum History History-wal History-shm'"note: "Record the source checksums before and after the run, to prove nothing was written."diff --git a/content/answers/full-text-search-sqlite-database.md b/content/answers/full-text-search-sqlite-database.mdindex d3a0e938a..cf8641569 100644--- a/content/answers/full-text-search-sqlite-database.md+++ b/content/answers/full-text-search-sqlite-database.md@@ -1,5 +1,5 @@----title: "How do I full-text search a SQLite database?"+title: "Full-text search a SQLite database (FTS5 alternative)"h1: "How do I full-text search a SQLite database I just copied onto disk?"description: "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."slug: "full-text-search-sqlite-database"@@ -7,11 +7,19 @@ cluster: "Files and formats"question: "How do I full-text search a SQLite database?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run sqlite3 on the target database with PRAGMA wal_checkpoint(TRUNCATE) so no committed row is left in the -wal file, record sha256sum of the .db, -wal and -shm files, start a local XERJ node, run `xerj autoindex ./sqlite --url http://127.0.0.1:9200 --prefix sq --progress plain`, compare the checksums again, then POST a match_phrase query to /sq-*/_search and report the hit total against the row count you expected."+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."+key_fact: "XERJ maps each existing SQLite table without an FTS5 virtual table, keeping up to 512 fields per record (`MAX_FIELDS_PER_RECORD`)."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/mod.rs"+key_fact_date: "2026-10-19"+intent_group: "JSONL and data files"+queries:+ - "full text search sqlite fts5 vs alternatives"+ - "search mixed csv json sqlite files together"commands:- cmd: "xerj autoindex ./sqlite --url http://127.0.0.1:9200 --prefix sq --progress plain"note: "Read the SQLite file read-only and create one index per table."diff --git a/content/answers/give-chatgpt-claude-local-file-access.md b/content/answers/give-chatgpt-claude-local-file-access.mdindex 132cbcce9..ce552e50d 100644--- a/content/answers/give-chatgpt-claude-local-file-access.md+++ b/content/answers/give-chatgpt-claude-local-file-access.md@@ -1,17 +1,26 @@----title: "Can ChatGPT search a folder on my laptop?"+title: "MCP server to search local files from ChatGPT or Claude"h1: "Can ChatGPT search a folder on my laptop, or do I need something else?"-description: "xerj mcp is a stdio MCP server that proxies 10 tools to a running XERJ node, so an agent reads an indexed local folder instead of opening files itself."+description: "xerj mcp is a stdio MCP server that proxies 17 tools to a running XERJ node, so ChatGPT, Claude or Cursor search an indexed local folder instead of opening files."slug: "give-chatgpt-claude-local-file-access"cluster: "Agent access and memory"question: "Can ChatGPT search a folder on my laptop, or do I need something else?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure, index a local folder with xerj autoindex --prefix mcpdocs, add xerj mcp to your MCP host config with the absolute binary path and XERJ_URL, then call tools/list and one xerj_search over mcpdocs-* and report the ax_path of every hit instead of opening a file."+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."+key_fact: "A live `tools/list` from xerj v1.0.0-rc.97 returned 17 tools, each with an inputSchema."+key_fact_source: "landing/docs/agents/schemas/mcp-tools.json"+key_fact_date: "2026-10-19"+intent_group: "Find the right tool"+queries:+ - "mcp server search local files"+ - "claude code plugin local search"+ - "cursor mcp full text search"commands:- cmd: "xerj --insecure --data-dir ./data --disable-feedback"note: "Start the one node the MCP server proxies to. `xerj mcp` never starts a node itself."@@ -35,14 +44,14 @@ faq:- q: "Does xerj mcp start a XERJ node?"a: "No. `xerj mcp` proxies to a node that is already running. Start the node first with `xerj --data-dir ./data`, then point the MCP server at its URL."- q: "How many tools does the XERJ MCP server expose?"- a: "10, and every one carries an `inputSchema`. Our captured `tools/list` returned `xerj_search`, 3 retrieval tools, 2 memory tools and 4 brain tools."+ a: "17 on v1.0.0-rc.97 (live `tools/list`, 2026-10-19), and every one carries an `inputSchema`: `xerj_search`, 3 more retrieval tools, 2 memory tools, 4 brain tools, `xerj_map`, `xerj_code_search`, `xerj_plan`, `xerj_field_report` and 3 Corpus Hub tools. The first capture for this page, in August 2026, returned 10."- q: "Why does my MCP host fail to launch xerj?"a: "Use an absolute path in the `command` field. An MCP host launched from a desktop icon does not inherit your shell PATH, so a bare `xerj` fails there."- q: "Can I restrict which indices the agent can read?"a: "Only with a scoped API key. XERJ has no RBAC and no SSO, and `GET /_security/roles` reports `\"enforced\": false` for the seeded roles."----**TL;DR** — XERJ ships an MCP server as `xerj mcp`. Install the latest XERJ, start a node, index a folder with `xerj autoindex`, then point the agent host at the binary with an absolute path. Our captured `tools/list` returned 10 tools, and one `xerj_search` call read an indexed local file.+**TL;DR** — XERJ ships an MCP server as `xerj mcp`. Install the latest XERJ, start a node, index a folder with `xerj autoindex`, then point the agent host at the binary with an absolute path. A live `tools/list` from v1.0.0-rc.97 returned 17 tools on 2026-10-19, and one `xerj_search` call read an indexed local file.## What `xerj mcp` actually is@@ -52,8 +61,10 @@ The command does not start a node. Start one first, otherwise every tool call fa```textSpeaks MCP over stdio (newline-delimited JSON-RPC 2.0 on stdin/stdout) and-proxies ten tools ... to a XERJ node that is ALREADY RUNNING. This command-does not start a node; start one first with `xerj --data-dir ./data`.+proxies 17 tools — xerj_search, xerj_semantic_search, ... xerj_hub_ask — to a+XERJ node that+is ALREADY RUNNING. This command does not start a node; start one first with+`xerj --insecure --data-dir ~/xerj-data`.```## Index the folder before you wire the agent@@ -104,13 +115,13 @@ The agent host opens with `initialize`. XERJ echoes the protocol version, namesThe server also returns an `instructions` string that tells the agent which tool to reach for. Diagnostics go to stderr, so stdout carries only the JSON-RPC stream.-## Ten tools, with their required arguments+## Seventeen tools, with their required arguments-`tools/list` returned 10 tools in our capture, and all 10 carried an `inputSchema`.+A live `tools/list` from v1.0.0-rc.97 (2026-10-19) returned 17 tools, and all 17 carried an `inputSchema`. The first capture for this page, in August 2026, returned 10.| tool | required arguments || --- | --- |-| `xerj_search` | `index` |+| `xerj_search` | none (`index` defaults to every index) || `xerj_semantic_search` | `index`, `field`, `query` || `xerj_vector_search` | `index`, `field`, `query_vector` || `xerj_hybrid_search` | `index`, `queries` |@@ -120,6 +131,13 @@ The server also returns an `instructions` string that tells the agent which tool| `xerj_brain_link` | `brain`, `src`, `dst`, `type` || `xerj_brain_unlink` | `brain`, `edge_id` || `xerj_brain_overview` | `brain` |+| `xerj_map` | none |+| `xerj_code_search` | `corpus`, `query` |+| `xerj_plan` | `prompt` |+| `xerj_field_report` | `agent`, `used_for`, `verdict` |+| `xerj_hub_find` | `question` |+| `xerj_hub_def` | `slug`, `symbol` |+| `xerj_hub_ask` | `question` |## One real call against an indexed local file@@ -160,9 +178,9 @@ A call against a missing index passes the node's own 404 `index_not_found_except## The published tool schemas are stale-The binary serves 10 tools. The published `openai-tools.json` and `anthropic-tools.json` still list 6, and the 4 missing names are `xerj_brain_ego`, `xerj_brain_link`, `xerj_brain_overview` and `xerj_brain_unlink`.+The binary serves 17 tools. The published `openai-tools.json` and `anthropic-tools.json` still list 6 (checked 2026-10-19), so 11 are missing: the 4 `xerj_brain_*` tools, `xerj_map`, `xerj_code_search`, `xerj_plan`, `xerj_field_report` and the 3 `xerj_hub_*` tools. The MCP schema at `/docs/agents/schemas/mcp-tools.json` is generated from a live `tools/list` and lists all 17.-That is a documentation defect, confirmed against the source that generates the tool list. If you wire either vendor schema into an agent by hand, add the 4 brain tools yourself or read `tools/list` from a live server instead.+That is a documentation defect, confirmed against the source that generates the tool list. If you wire either vendor schema into an agent by hand, add the missing tools yourself or read `tools/list` from a live server instead.## What this setup does not give youdiff --git a/content/answers/how-xerj-autoindexes-a-folder.md b/content/answers/how-xerj-autoindexes-a-folder.mdindex 4df44d26e..8c97a3d49 100644--- a/content/answers/how-xerj-autoindexes-a-folder.md+++ b/content/answers/how-xerj-autoindexes-a-folder.md@@ -1,5 +1,5 @@----title: "Point a tool at a folder and ask about the files"+title: "Point a tool at a folder and ask questions about the files"h1: "I want to point something at a folder and then ask questions about what's in it. What should I use?"description: "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."slug: "how-xerj-autoindexes-a-folder"@@ -7,11 +7,20 @@ cluster: "Folder indexing"question: "I want to point something at a folder and then ask questions about what's in it. What should I use?"intent: "informational"published: "2026-08-21"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "Article"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a node with `xerj --insecure --data-dir ./.xerj-data`, run `xerj autoindex ./notes --url http://127.0.0.1:9200 --prefix notes --progress plain --dry-run` to read the plan, run the same command without --dry-run, then run `xerj autoindex map --url http://127.0.0.1:9200` and answer the user question with one match_phrase query against a real index and a real field, citing the ax_path of every hit."+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."+key_fact: "The README's sample run indexed 25,329 files into 593 datasets and 83,103 records in 158.1 s with 8 workers."+key_fact_source: "README.md"+key_fact_date: "2026-10-19"+intent_group: "JSONL and data files"+queries:+ - "search csv and jsonl folder one command"+ - "index folder of json files for search"+ - "ask questions about a GitHub repo MCP server"commands:- cmd: "xerj --insecure --data-dir ./.xerj-data"note: "Start a local node. Nothing is indexed yet and nothing leaves the machine."@@ -81,7 +90,7 @@ An agent answers from the returned passage and cites `ax_path`, rather than read## Hand the indexed folder to an agent-`xerj mcp` exposes the indexed folder to an agent host as a stdio tool server, serving 10 tools against a node that is already running. The agent sends a query and reads hits with file paths, instead of opening files one by one.+`xerj mcp` exposes the indexed folder to an agent host as a stdio tool server, serving 17 tools against a node that is already running. The agent sends a query and reads hits with file paths, instead of opening files one by one.The node and the MCP server both run on your machine. No file content is uploaded, because the agent host calls a local process rather than a hosted API.diff --git a/content/answers/how-xerj-combines-search.md b/content/answers/how-xerj-combines-search.mdindex ebd50cc78..57506605c 100644--- a/content/answers/how-xerj-combines-search.md+++ b/content/answers/how-xerj-combines-search.md@@ -7,11 +7,19 @@ cluster: "Hybrid search"question: "How does XERJ combine BM25 and kNN?"intent: "informational"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, GET /_mapping on the target index to find the companion vector field, GET /v1/embedding/identity to learn which embedder the node loaded, then POST one hybrid request whose queries array holds a match sub-query and a knn sub-query with fusion rrf, and report the fused ranking beside the ranking each sub-query returns on its own."+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."+key_fact: "XERJ's RRF uses a default k of 60, so a document ranked first in both lists scores 1/61 + 1/61 = 0.032787."+key_fact_source: "/answers/reciprocal-rank-fusion-when-to-use"+key_fact_date: "2026-08-23"+intent_group: "retrieval research and eval"+queries:+ - "index folder of jsonl files and query with bm25"+ - "pluggable scoring function search engine"commands:- cmd: "xerj autoindex ./docs --url http://127.0.0.1:9200 --prefix article-docs --progress plain"note: "Index the documentation into a named dataset with a semantic_text body field."diff --git a/content/answers/hybrid-search-quality-measured-ndcg.md b/content/answers/hybrid-search-quality-measured-ndcg.mdindex 5902231fa..d51833dcd 100644--- a/content/answers/hybrid-search-quality-measured-ndcg.md+++ b/content/answers/hybrid-search-quality-measured-ndcg.md@@ -12,6 +12,14 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a throwaway XERJ node with --embed-mode neural, load the BEIR SciFact corpus with benchmarks/beir-hybrid/load.py, run benchmarks/beir-hybrid/eval.py, and report nDCG@10 for the BM25, vector-only, reorder and hybrid RRF arms next to the published figures."+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."+key_fact: "On BEIR NFCorpus (323 test queries, 3,633 documents), hybrid RRF scored nDCG@10 0.3448 against 0.3016 for BM25."+key_fact_source: "benchmarks/beir-hybrid/results/nfcorpus.txt"+key_fact_date: "2026-09-18"+intent_group: "retrieval research and eval"+queries:+ - "BEIR benchmark BM25 baseline numbers"+ - "bm25s vs pyserini BEIR nDCG@10 reproduction"commands:- cmd: "xerj --insecure --data-dir ./beir-data --embed-mode neural"note: "Start a throwaway node with the neural embedder. Without this flag the embedder is lexical feature hashing and the vector and hybrid figures on this page do not apply."diff --git a/content/answers/improve-basic-faiss-rag-pipeline.md b/content/answers/improve-basic-faiss-rag-pipeline.mdindex d54fb702f..8147fd04f 100644--- a/content/answers/improve-basic-faiss-rag-pipeline.md+++ b/content/answers/improve-basic-faiss-rag-pipeline.md@@ -7,11 +7,19 @@ cluster: "RAG: troubleshooting"question: "How can I improve a basic FAISS RAG pipeline?"intent: "troubleshooting"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, load an existing chunk store into one XERJ index with a semantic_text content field, then run retrieval as a hybrid clause nested inside query with fusion rrf. Report the exact 400 body for any request shape that fails."+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."+key_fact: "With the neural embedder, hybrid RRF beat vectors alone on BEIR SciFact: nDCG@10 0.6993 against 0.6764."+key_fact_source: "benchmarks/beir-hybrid/results/scifact.txt"+key_fact_date: "2026-09-18"+intent_group: "retrieval research and eval"+queries:+ - "rag with structured output schema"+ - "query documents return typed results"commands:- cmd: "curl -s -XPUT 'http://127.0.0.1:9440/faiss20' -H 'content-type: application/json' -d '{\"mappings\":{\"properties\":{\"chunk_id\":{\"type\":\"keyword\"},\"source\":{\"type\":\"keyword\"},\"content\":{\"type\":\"semantic_text\"},\"chunk_index\":{\"type\":\"long\"}}}}'"note: "Create the migration index. Port 9440 is the capture's Elasticsearch-compatible listener; the default is 9200."diff --git a/content/answers/index-csv-with-many-columns.md b/content/answers/index-csv-with-many-columns.mdindex d3ddd75f4..55f145869 100644--- a/content/answers/index-csv-with-many-columns.md+++ b/content/answers/index-csv-with-many-columns.md@@ -12,6 +12,14 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, run `xerj autoindex ./csv-wide --url http://127.0.0.1:9200 --prefix wide --progress plain`, GET /wide-csv/_mapping to read the inferred field types, then POST a terms aggregation on an inferred keyword field and report the bucket counts with doc_count_error_upper_bound."+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."+key_fact: "Type inference keeps up to 512 fields per dataset (`MAX_FIELDS_PER_DATASET`), the ceiling for a very wide CSV."+key_fact_source: "engine/crates/xerj-autoindex/src/infer/mod.rs"+key_fact_date: "2026-10-19"+intent_group: "JSONL and data files"+queries:+ - "full text search over csv files cli"+ - "index folder of csv files and query with bm25"commands:- cmd: "xerj autoindex ./csv-wide --url http://127.0.0.1:9200 --prefix wide --progress plain"note: "Index the wide CSV file; XERJ infers one type per column."diff --git a/content/answers/index-markdown-into-elasticsearch-api.md b/content/answers/index-markdown-into-elasticsearch-api.mdindex e16d48fa8..c36446d40 100644--- a/content/answers/index-markdown-into-elasticsearch-api.md+++ b/content/answers/index-markdown-into-elasticsearch-api.md@@ -7,11 +7,19 @@ cluster: "Files and formats"question: "What is the best way to index Markdown documents into Elasticsearch?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure, run xerj autoindex ./markdown --prefix md, read GET /md-*/_mapping, then POST a match query with a highlight to /md-docs/_search and report that the mapping has no headings field and that title keeps its leading hash character."+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."+key_fact: "XERJ passes 1366 of 1369 Elasticsearch YAML conformance cases, so ES clients query the Markdown index unchanged."+key_fact_source: "README.md"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "search markdown notes MCP server"+ - "elasticsearch api compatible local dev"commands:- cmd: "xerj autoindex ./markdown --url http://127.0.0.1:9410 --prefix md --state-dir ./state-md --progress plain --disable-feedback"note: "Index a Markdown folder into the prefix md."diff --git a/content/answers/index-monorepo-for-agent.md b/content/answers/index-monorepo-for-agent.mdindex 2d6b04f15..59cab5351 100644--- a/content/answers/index-monorepo-for-agent.md+++ b/content/answers/index-monorepo-for-agent.md@@ -1,5 +1,5 @@----title: "How do I stop my agent reading the whole repo?"+title: "Index a monorepo so your agent stops reading the whole repo"h1: "How do I stop my agent from reading the whole repo into context?"description: "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."slug: "index-monorepo-for-agent"@@ -7,11 +7,20 @@ cluster: "Files and formats"question: "How do I stop my agent from reading the whole repo into context?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure, run xerj autoindex ./code --prefix code --dry-run and record files, ignored_files and ignored_dirs from the xerj-done line, run it again without --dry-run, then aggregate language and symbol_count over code-*/_search and answer with a defs query instead of opening any source file."+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."+key_fact: "A reference-coding study measured 9,982 output tokens for the indexed agent against 26,477 for grep-driven Claude Code, 2.7 times fewer, both solving 16/16."+key_fact_source: "docs/case-studies/reference-coding/data/results-multilang-final.json"+key_fact_date: "2026-10-19"+intent_group: "code search for agents"+queries:+ - "index monorepo for AI agent search"+ - "find function definition across repo CLI"+ - "search symbols across multiple repos"commands:- cmd: "xerj autoindex ./code --url http://127.0.0.1:9410 --prefix code --state-dir ./state-code --progress plain --disable-feedback --dry-run"note: "Print the plan and the ignore accounting without writing anything."@@ -29,7 +38,7 @@ faq:- q: "My agent keeps opening every file in the repo. How do I let it search the folder instead?"a: "Run `xerj autoindex` on the tree and register `xerj mcp` with the agent host. The agent then calls a search tool and gets hits with paths, so the file-by-file walk stops."- q: "How do I give a coding agent the whole codebase as searchable context?"- a: "Index the tree with `xerj autoindex`, which extracts definitions through tree-sitter for 34 languages, and expose the index over MCP. The agent queries it rather than loading the repository."+ a: "Index the tree with `xerj autoindex`, which extracts definitions through tree-sitter for 36 languages, and expose the index over MCP. The agent queries it rather than loading the repository."- q: "How do I index a monorepo so my coding agent stops reading files one by one?"a: "Point `xerj autoindex` at the monorepo root. Built-in rules prune `node_modules/`, `vendor/`, `target/`, `dist/`, `build/`, `.venv/` and `__pycache__/`, and `--dry-run` prints the plan before anything is written."- q: "Which ignore file wins?"@@ -79,7 +88,7 @@ curl -s -XPOST 'http://127.0.0.1:9410/code-*/_search' -H 'content-type: applicatThe `by_language` aggregation returned one bucket per language: `go`, `python` and `rust`. Do not carry a captured bucket size over to your own tree. Every per-declaration document carries the `language` of the file it came from, so a bucket counts declarations as well as files and moves with the code, not with the file count.-XERJ recognizes 34 languages through tree-sitter. This capture exercised 3 of them, so read the answer as the shape of the aggregation and not as a language-coverage test.+XERJ recognizes 36 languages through tree-sitter. This capture exercised 3 of them, so read the answer as the shape of the aggregation and not as a language-coverage test.## One definition hit an agent can usediff --git a/content/answers/index-multiple-csv-files.md b/content/answers/index-multiple-csv-files.mdindex 30eada0a0..f79925b39 100644--- a/content/answers/index-multiple-csv-files.md+++ b/content/answers/index-multiple-csv-files.md@@ -1,5 +1,5 @@----title: "How do I search a folder of CSV exports?"+title: "Search a folder of CSV files with BM25, without a database"h1: "I have a directory of CSV exports. How do I query them without opening each one in Excel?"description: "Point xerj autoindex at the folder once. A captured run split 3 CSV files across 2 schemas into 2 indices and answered one query across both of them."slug: "index-multiple-csv-files"@@ -12,6 +12,15 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, run `xerj autoindex ./csv-exports --url http://127.0.0.1:9200 --prefix multi --progress plain`, GET /_cat/indices/multi-*?format=json to see how many indices the different headers produced, then POST one query_string search across multi-* with a terms aggregation on ax_dataset and report the per-dataset counts."+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."+key_fact: "One CSV file yields at most 4,096 records per extraction window (`MAX_RECORDS_PER_FILE`) before the next window starts."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/mod.rs"+key_fact_date: "2026-10-19"+intent_group: "JSONL and data files"+queries:+ - "index folder of csv files and query with bm25"+ - "search csv and jsonl folder one command"+ - "search large csv files fast without database"commands:- cmd: "xerj autoindex ./csv-multi --url http://127.0.0.1:9200 --prefix multi --progress plain"note: "Index every CSV file in the folder in one pass."diff --git a/content/answers/index-reference-library-for-coding-agent.md b/content/answers/index-reference-library-for-coding-agent.mdindex 933870507..f58d35a75 100644--- a/content/answers/index-reference-library-for-coding-agent.md+++ b/content/answers/index-reference-library-for-coding-agent.md@@ -7,11 +7,19 @@ cluster: "Coding agents: reference retrieval"question: "How do I set up reference coding so the agent retrieves a mechanism before writing code?"intent: "how-to"published: "2026-08-22"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent about to write against an unfamiliar library. Read https://xerj.org/llms.txt, clone the library into ./ref, start a XERJ node with --insecure, run xerj autoindex ./ref --prefix ref, read xerj autoindex map, then answer with a defs query and quote the retrieved passage with its ax_path before you write any code."+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."+key_fact: "Across 16 runs in four languages, the xerj arm solved 16/16 with 9,982 output tokens at $1.58."+key_fact_source: "docs/case-studies/reference-coding/data/results-multilang-final.json"+key_fact_date: "2026-10-19"+intent_group: "code search for agents"+queries:+ - "find reference implementation in open source repos"+ - "search open source repos for how others solved X"commands:- cmd: "git clone --depth 1 https://github.com/serde-rs/serde ./ref/serde"note: "Put the reference source on local disk. A shallow clone is enough to read from."@@ -29,7 +37,7 @@ links_out:- "syntax-aware-code-search-refactoring"- "compare/xerj-vs-ripgrep-for-code-agents"evidence:- - claim: "Across five languages, 16 runs: the xerj arm solved 16/16 with 9,982 output tokens at $1.58, the native arm solved 16/16 with 26,477 output tokens at $3.27, and the bare arm solved 11/16 at $11.18."+ - claim: "Across four languages (Python, JavaScript, C and Java), 16 runs: the xerj arm solved 16/16 with 9,982 output tokens at $1.58, the native arm solved 16/16 with 26,477 output tokens at $3.27, and the bare arm solved 11/16 at $11.18."source: "docs/case-studies/reference-coding/data/results-multilang-final.json"- claim: "On the seven domains with an unrecallable runtime contract, 21 runs: the bare arm solved 1/21 at $21.90, the native arm 21/21 at $4.26, and the xerj arm 21/21 at $3.38."source: "docs/case-studies/reference-coding/CASE_STUDY.md:569"@@ -94,7 +102,7 @@ The study ran the same Claude Code three ways against 13 reference libraries inThe verdict was objective: the generated code had to compile and pass a hidden test the model never saw.-**Across five languages, 16 runs.** The native and xerj arms both solved 16/16. The xerj arm spent 9,982 output tokens at $1.58; the native arm spent 26,477 output tokens at $3.27. The bare arm solved 11/16 at $11.18.+**Across four languages (Python, JavaScript, C and Java), 16 runs.** The native and xerj arms both solved 16/16. The xerj arm spent 9,982 output tokens at $1.58; the native arm spent 26,477 output tokens at $3.27. The bare arm solved 11/16 at $11.18.**On seven domains carrying a runtime contract the compiler cannot warn about, 21 runs.** The bare arm solved 1/21 while burning $21.90. The native arm solved 21/21 at $4.26 and the xerj arm solved 21/21 at $3.38.diff --git a/content/answers/is-pdf-indexing-efficient.md b/content/answers/is-pdf-indexing-efficient.mdindex 6a9b3993d..10d4961dd 100644--- a/content/answers/is-pdf-indexing-efficient.md+++ b/content/answers/is-pdf-indexing-efficient.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "Is it inefficient to index PDF files into a search engine?"intent: "informational"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure, run xerj autoindex on a PDF folder with --prefix pdfx, then query autoindex-catalog for doc_kind run and report pdf_workers, resource_notes, wall_seconds and the pdf_extraction_reuse counters, and query doc_kind file with status junk to report every PDF that failed and its reason string."+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."+key_fact: "XERJ runs at most 4 concurrent PDF worker processes (`MAX_PDF_WORKERS`) and reads at most 100,000 pages per file (`MAX_PAGES`)."+key_fact_source: "engine/crates/xerj-autoindex/src/resources.rs"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "index pdf folder full text search offline"commands:- cmd: "xerj autoindex ./pdf --url http://127.0.0.1:9410 --prefix pdfx --state-dir ./state-pdfx --progress plain --disable-feedback"note: "Index a PDF folder and record the worker decisions on stderr."diff --git a/content/answers/keep-index-current-as-files-change.md b/content/answers/keep-index-current-as-files-change.mdindex eb11080bc..a0884d2b0 100644--- a/content/answers/keep-index-current-as-files-change.md+++ b/content/answers/keep-index-current-as-files-change.md@@ -7,11 +7,19 @@ cluster: "Operations: freshness"question: "How do I keep a search index up to date as files change, without re-indexing everything?"intent: "how-to"published: "2026-09-19"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent keeping a folder searchable. Read https://xerj.org/llms.txt first. Index the folder once with xerj autoindex --no-graph, then start xerj autoindex --watch --no-graph on the same --state-dir and --prefix, read the per-pass watch lines on stderr to confirm hashed= versus carried=, and do not add a cron job that re-runs the indexer."+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."+key_fact: "The --debounce quiet period accepts at most 60,000 ms (`MAX_DEBOUNCE_MS`); longer than a minute is a timer, not a debounce."+key_fact_source: "engine/crates/xerj-autoindex/src/cli.rs"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"+queries:+ - "incremental index jsonl appended file search"+ - "search checkpoint files while crawler still running"commands:- cmd: "xerj autoindex ./notes --url http://127.0.0.1:9200 --prefix notes --state-dir ./state-notes --no-graph"note: "Index the folder once. This is the pass a watcher would run first."diff --git a/content/answers/keep-s3-bucket-index-current.md b/content/answers/keep-s3-bucket-index-current.mdindex e0e7ca54f..134d810b9 100644--- a/content/answers/keep-s3-bucket-index-current.md+++ b/content/answers/keep-s3-bucket-index-current.md@@ -7,11 +7,16 @@ cluster: "Object storage"question: "My documents live in an S3 or R2 bucket. How do I keep a XERJ index current as objects change?"intent: "informational"published: "2026-09-19"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent planning a bucket-backed search index. Read https://xerj.org/llms.txt first. Before you choose a poll interval, compute the cost: ListObjectsV2 is a Class A operation at one call per 1,000 keys per cycle, and Cloudflare R2's free tier is 1,000,000 Class A operations a month. A 5-second poll on an empty bucket costs 518,400 a month, which is half the tier for no change detection at all. Tell the human the monthly operation count your interval implies before you write any code, and do not use `xerj autoindex --watch` as an indexer: it emits a change feed and does not write to a node."+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."+key_fact: "The default poll interval is 300 seconds and the default budget is 200,000 Class A operations a month."+key_fact_source: "engine/crates/xerj-autoindex/src/objwatch/cost.rs"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"commands:- cmd: "xerj autoindex s3://logs/2026/09/ --watch --dry-run --endpoint-url https://ACCOUNT.r2.cloudflarestorage.com"note: "One cycle, no object reads, nothing emitted, no journal written — but the listing itself is real and is billed: ceil(objects / 1000) Class A operations, charged to the spend ledger. It prints the projected monthly Class A operation count for that prefix at that interval, which is the number to decide on."diff --git a/content/answers/knowledge-graphs-for-agent-memory.md b/content/answers/knowledge-graphs-for-agent-memory.mdindex cf89c5b4b..cad851bad 100644--- a/content/answers/knowledge-graphs-for-agent-memory.md+++ b/content/answers/knowledge-graphs-for-agent-memory.md@@ -7,11 +7,19 @@ cluster: "Agent memory: link retrieval"question: "Ask HN: Anyone using knowledge graphs for LLM agent memory/context management?"intent: "tool-selection"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run `xerj autoindex ./notes --url http://127.0.0.1:9430 --prefix br --brain notes --progress plain`, GET /_graph/notes/overview to read the totals and the detector split, then request /_graph/notes/ego at hops=1, hops=2 and hops=3 and report the edge counts plus the exact text of the refusal you get at 3 hops."+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."+key_fact: "The shared-term detector links a document to at most 5 others (`MAX_EDGES_PER_DOC`)."+key_fact_source: "engine/crates/xerj-autoindex/src/detect/sharedterm.rs"+key_fact_date: "2026-10-19"+intent_group: "agent memory"+queries:+ - "temporal knowledge graph agent memory as-of query"+ - "agent memory with validity windows"commands:- cmd: "xerj autoindex ./notes --url http://127.0.0.1:9430 --prefix br --state-dir ./state-br --brain notes --progress plain"note: "Index a notes folder and build its second brain in the same run."diff --git a/content/answers/local-embeddings-without-openai-api.md b/content/answers/local-embeddings-without-openai-api.mdindex 55bf5cf7c..cf447e433 100644--- a/content/answers/local-embeddings-without-openai-api.md+++ b/content/answers/local-embeddings-without-openai-api.md@@ -1,5 +1,5 @@----title: "Local search offline with no cloud embeddings"+title: "Offline local search with no cloud embeddings or OpenAI API"h1: "I want local search that works offline, no cloud embeddings. What are my options?"description: "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."slug: "local-embeddings-without-openai-api"@@ -7,11 +7,19 @@ cluster: "Embeddings: local execution"question: "I want local search that works offline, no cloud embeddings. What are my options?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start one XERJ node with --embed-mode neural and a run-local HF_HOME, index 20 documents twice, and report both wall-clock times together with the output of GET /v1/embedding/identity."+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."+key_fact: "The opt-in neural embedder downloads about 90 MB of model files once; the default lexical embedder downloads nothing."+key_fact_source: "README.md"+key_fact_date: "2026-10-19"+intent_group: "retrieval research and eval"+queries:+ - "json mode extraction local model"+ - "search code by meaning offline"commands:- cmd: "curl -s -XGET 'http://127.0.0.1:9440/v1/embedding/identity'"note: "Confirm the default node uses the built-in lexical embedder and downloads no model."diff --git a/content/answers/mcp-api-search-or-vector-search.md b/content/answers/mcp-api-search-or-vector-search.mdindex ddbc7cd65..c6cec9b01 100644--- a/content/answers/mcp-api-search-or-vector-search.md+++ b/content/answers/mcp-api-search-or-vector-search.md@@ -7,11 +7,19 @@ cluster: "Agent access and memory"question: "MCP/API search or vector search — which should an agent call?"intent: "tool-selection"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, index a small labeled corpus into one XERJ index with a semantic_text field, then ask the same question through xerj_search, xerj_semantic_search, xerj_vector_search and xerj_hybrid_search over MCP, print the returned ids side by side, and say which tool you would call by default and why."+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."+key_fact: "Four of the 17 XERJ MCP tools retrieve: `xerj_search`, `xerj_semantic_search`, `xerj_vector_search` and `xerj_hybrid_search`."+key_fact_source: "landing/docs/agents/schemas/mcp-tools.json"+key_fact_date: "2026-10-19"+intent_group: "retrieval research and eval"+queries:+ - "local search engine for AI agents MCP server BM25"+ - "mcp server bm25"commands:- cmd: "curl -s -XPUT 'http://127.0.0.1:9500/eval' -H 'content-type: application/json' -d '{\"mappings\":{\"properties\":{\"doc_id\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"text\":{\"type\":\"semantic_text\"}}}}'"note: "One index holds the inverted index and the dense vectors together."diff --git a/content/answers/notion-export-duplicate-search-results.md b/content/answers/notion-export-duplicate-search-results.mdindex 7c610b8df..8d0ddec83 100644--- a/content/answers/notion-export-duplicate-search-results.md+++ b/content/answers/notion-export-duplicate-search-results.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "API sync/export duplicates Notion titles in pages, databases, search results"intent: "troubleshooting"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, unzip a Notion Markdown and CSV workspace export, run `xerj autoindex ./notion-export --url http://127.0.0.1:9200 --prefix nt --progress plain` twice, POST a match_all sorted by ax_path and ax_locator after each run, compare the returned _id lists byte for byte, and report every file the autoindex-catalog marked junk with its reason."+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."+key_fact: "Re-indexing the same 4-file Notion export a second time returned the same 8 documents, with byte-identical ids."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "logs and docs"+queries:+ - "search markdown notes MCP server"commands:- cmd: "xerj autoindex ./notion-export --url http://127.0.0.1:9200 --prefix nt --progress plain"note: "Index the unzipped Notion export. Run the same line twice to test for duplicates."diff --git a/content/answers/private-agent-memory-namespaces.md b/content/answers/private-agent-memory-namespaces.mdindex 4b7961929..f0951d350 100644--- a/content/answers/private-agent-memory-namespaces.md+++ b/content/answers/private-agent-memory-namespaces.md@@ -7,11 +7,18 @@ cluster: "Agent memory: security"question: "How do I keep one agent's memory from leaking into another agent's?"intent: "informational"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node without --insecure, mint a scoped API key, store a memory in one namespace, then try to recall a different namespace with that key and report the exact status code you receive."+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."+key_fact: "Our capture recorded 0 non-loopback connections while storing and recalling memory."+key_fact_source: "capture"+key_fact_date: "2026-08-23"+intent_group: "agent memory"+queries:+ - "local first agent memory privacy"commands:- cmd: "curl -s -XGET 'http://127.0.0.1:8430/_security/roles'"note: "Read the node's own statement about role enforcement. Use the native REST port, not the Elasticsearch-compatible one."diff --git a/content/answers/rag-without-vector-database.md b/content/answers/rag-without-vector-database.mdindex 778af2e63..def87e15a 100644--- a/content/answers/rag-without-vector-database.md+++ b/content/answers/rag-without-vector-database.md@@ -1,5 +1,5 @@----title: "RAG without a vector database"+title: "RAG without a vector database: one hybrid index"h1: "How do I build RAG without a vector database?"description: "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."slug: "rag-without-vector-database"@@ -12,6 +12,14 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start one single-node XERJ, create an index with a semantic_text field, bulk-load the corpus, then run one hybrid request with fusion rrf and report the returned ids and scores before you write any retrieval code."+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."+key_fact: "On BEIR SciFact, hybrid RRF with the opt-in neural embedder scored nDCG@10 0.6993, above both BM25 (0.6572) and vectors alone (0.6764)."+key_fact_source: "benchmarks/beir-hybrid/results/scifact.txt"+key_fact_date: "2026-09-18"+intent_group: "retrieval research and eval"+queries:+ - "rag without vector database"+ - "hybrid search bm25 + vectors local"commands:- cmd: "curl -s -XPUT 'http://127.0.0.1:9440/eval' -H 'content-type: application/json' -d '{\"mappings\":{\"properties\":{\"doc_id\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"text\":{\"type\":\"semantic_text\"},\"tags\":{\"type\":\"keyword\"},\"ord\":{\"type\":\"long\"}}}}'"note: "Create the one index that holds both the text and the dense vector. Port 9440 is the capture's Elasticsearch-compatible listener; the default is 9200."diff --git a/content/answers/read-autoindex-progress.md b/content/answers/read-autoindex-progress.mdindex 697fef648..04a486ea6 100644--- a/content/answers/read-autoindex-progress.md+++ b/content/answers/read-autoindex-progress.md@@ -7,11 +7,16 @@ cluster: "Operations: progress"question: "How can I see whether folder indexing is still working?"intent: "how-to"published: "2026-08-21"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run xerj autoindex with --progress plain, parse the xerj-progress lines on stderr into phase, pct, since_progress_s and waiting_on fields, and report the terminal xerj-done line rather than guessing from the bar."+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."+key_fact: "With --no-graph, a 231-file repository reported 9 phases in order, and its index phase read pct=81.7 at 169/231 items."+key_fact_source: "benchmarks/autoindex-resilience/after-fix.small-repo.stderr.txt"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"commands:- cmd: "xerj autoindex ./logs --url http://127.0.0.1:9200 --prefix log16 --state-dir ./state-log16 --progress plain"note: "Print machine-readable progress lines on stderr for the whole run."diff --git a/content/answers/read-indexed-email-and-pdf-folder.md b/content/answers/read-indexed-email-and-pdf-folder.mdindex 16e5fbfd7..910ca414b 100644--- a/content/answers/read-indexed-email-and-pdf-folder.md+++ b/content/answers/read-indexed-email-and-pdf-folder.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "I indexed a folder of email and PDFs. How do I actually read what it found?"intent: "how-to"published: "2026-09-18"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run `xerj brain ./casefile --no-open` on a folder of .eml and .pdf files, search the index it reports for a word from one email subject, then give the person the console link `/_xerj-console/#/reader?index=INDEX&id=ID` for the best hit instead of pasting the whole document into the chat."+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."+key_fact: "In the recorded run, xerj brain turned 10 files into 81 records in one dataset and wrote 33 links into the brain."+key_fact_source: "docs/usecases/console-reader/live-e2e.json"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "index pdf folder full text search offline"commands:- cmd: "xerj brain ./casefile --no-open"note: "Index the folder, detect the links between files, and print the console URL and the one-time passkey setup link."diff --git a/content/answers/rebuild-reference-corpus-index.md b/content/answers/rebuild-reference-corpus-index.mdindex af1d68a40..3cf17e2fa 100644--- a/content/answers/rebuild-reference-corpus-index.md+++ b/content/answers/rebuild-reference-corpus-index.md@@ -7,11 +7,18 @@ cluster: "Coding agents: reference retrieval"question: "How do I rebuild a reference-coding corpus index from scratch?"intent: "how-to"published: "2026-09-18"-updated: "2026-09-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent maintaining a reference-coding corpus. Read https://xerj.org/llms.txt. When xerj code reports an index older than 30 days, or a plain `xerj corpus index` run says the state directory cannot become generation authority, run `xerj corpus index <corpus> --fresh`. Do not delete the old indices yourself and do not pass --fresh to xerj autoindex directly. Read the command's last lines: it states the record count of the verified replacement, or that the existing index was NOT touched."+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."+key_fact: "On v1.0.0-rc.74, xerj autoindex --fresh over a committed generation aborted with exit 1; --fresh now swaps instead of discarding."+key_fact_source: "benchmarks/autoindex-resilience/fresh-before-rc74.committed-generation.txt"+key_fact_date: "2026-10-19"+intent_group: "code search for agents"+queries:+ - "find reference implementation in open source repos"commands:- cmd: "xerj corpus index xerj-storage"note: "Index a corpus, or update in place the build an earlier run recorded."diff --git a/content/answers/reciprocal-rank-fusion-when-to-use.md b/content/answers/reciprocal-rank-fusion-when-to-use.mdindex 9c58ab408..75f744fa6 100644--- a/content/answers/reciprocal-rank-fusion-when-to-use.md+++ b/content/answers/reciprocal-rank-fusion-when-to-use.md@@ -7,11 +7,18 @@ cluster: "Hybrid retrieval: RRF"question: "What is reciprocal rank fusion and when should I use it?"intent: "informational"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run the same query through a BM25 request and a kNN request against one XERJ index, then run it once more through the hybrid clause with fusion rrf, and confirm each fused score equals the sum of 1/(60+rank) over the lists that returned the document."+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."+key_fact: "The captured fused score for document d02, ranked first in both lists, was 0.032787 with k = 60."+key_fact_source: "capture"+key_fact_date: "2026-08-23"+intent_group: "retrieval research and eval"+queries:+ - "hybrid search bm25 + vectors local"commands:- cmd: "curl -s -XPUT 'http://127.0.0.1:9440/eval' -H 'content-type: application/json' -d '{\"mappings\":{\"properties\":{\"doc_id\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"text\":{\"type\":\"semantic_text\"}}}}'"note: "Create the judged index first. Without this step the queries below answer 404. Port 9440 is the capture's Elasticsearch-compatible listener; the default is 9200."diff --git a/content/answers/reduce-embedding-api-cost.md b/content/answers/reduce-embedding-api-cost.mdindex f4ce933f7..36c408d67 100644--- a/content/answers/reduce-embedding-api-cost.md+++ b/content/answers/reduce-embedding-api-cost.md@@ -7,11 +7,18 @@ cluster: "Embeddings: cost"question: "My embedding bill is too high"intent: "cost"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a single-node XERJ with the default embedder, index a semantic_text corpus, then call GET /v1/embedding/identity and confirm the backend field reads lexical before you budget for any external embedding endpoint."+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."+key_fact: "Proxy embedding mode batched 100 documents into exactly 2 outbound requests in the captured run."+key_fact_source: "capture"+key_fact_date: "2026-08-23"+intent_group: "retrieval research and eval"+queries:+ - "search code by meaning offline"commands:- cmd: "curl -s http://127.0.0.1:9200/v1/embedding/identity"note: "Read which embedder the node actually uses."diff --git a/content/answers/reindex-taking-forever.md b/content/answers/reindex-taking-forever.mdindex 941cc2718..22ef39bf5 100644--- a/content/answers/reindex-taking-forever.md+++ b/content/answers/reindex-taking-forever.md@@ -7,11 +7,16 @@ cluster: "Operations: reindex"question: "Reindexing my files is taking forever. What usually causes that?"intent: "troubleshooting"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a single-node XERJ, count the source index, POST /_reindex into a fresh destination index, then compare the response took, batches, created and failures fields against a _count of the destination before you report progress."+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."+key_fact: "A single-node `_reindex` of 100,000 documents reported took 20,836 ms, 100 batches and 0 failures."+key_fact_source: "capture"+key_fact_date: "2026-08-23"+intent_group: "operating autoindex"commands:- cmd: "curl -s http://127.0.0.1:9200/reindex_src/_count"note: "Count the source index before the copy starts."diff --git a/content/answers/rerank-search-results-calibrated-judge.md b/content/answers/rerank-search-results-calibrated-judge.mdindex d45654622..d47fbfccf 100644--- a/content/answers/rerank-search-results-calibrated-judge.md+++ b/content/answers/rerank-search-results-calibrated-judge.md@@ -7,11 +7,19 @@ cluster: "Hybrid retrieval: reranking"question: "How do I rerank search results with a relevance judge?"intent: "informational"published: "2026-09-18"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, ask the operator whether a rerank provider key is set on the XERJ node and whether document text may leave the machine, then run one search without the rerank block and one with it, and report the _rerank block of the second response, including whether applied is true."+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."+key_fact: "The rerank stage defaults to a 30-hit window and allows at most 300."+key_fact_source: "engine/crates/xerj-rerank/src/lib.rs"+key_fact_date: "2026-10-19"+intent_group: "retrieval research and eval"+queries:+ - "calibrated confidence score retrieval"+ - "reranker"commands:- cmd: "curl -s 'http://127.0.0.1:9200/_xerj/rerank'"note: "Ask the node whether a rerank provider is configured. The answer names where the key came from and never prints the key. A node started with --insecure needs no credentials. On any other node the route is superuser-only, so send the admin key from the admin.key file in the data directory."diff --git a/content/answers/resume-interrupted-autoindex-run.md b/content/answers/resume-interrupted-autoindex-run.mdindex 1fcdf9c99..5159ae642 100644--- a/content/answers/resume-interrupted-autoindex-run.md+++ b/content/answers/resume-interrupted-autoindex-run.md@@ -7,11 +7,18 @@ cluster: "Operations: recovery"question: "The indexer died overnight. Do I have to start over?"intent: "troubleshooting"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run xerj autoindex against a folder with an explicit --state-dir, interrupt it, then re-run the identical command with the same --state-dir and compare the final _count and the first 20 document ids with a clean control run into a fresh prefix."+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."+key_fact: "A resumed full-corpus generation with all 47,444 operations already applied finished on a restarted node without re-sending them."+key_fact_source: "benchmarks/autoindex-resilience/after-955.full-corpus-resume.stderr.txt"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"+queries:+ - "resumable indexing large folder"commands:- cmd: "xerj autoindex ./logs --url http://127.0.0.1:9200 --prefix sig --state-dir ./state-sig --progress plain"note: "Start the run with an explicit state directory so it can resume."diff --git a/content/answers/search-all-pdfs-in-a-folder.md b/content/answers/search-all-pdfs-in-a-folder.mdindex b3b287421..142e599b8 100644--- a/content/answers/search-all-pdfs-in-a-folder.md+++ b/content/answers/search-all-pdfs-in-a-folder.md@@ -1,5 +1,5 @@----title: "How do I search a folder of PDF papers?"+title: "Search a folder of PDF papers offline"h1: "I downloaded a bunch of papers as PDFs. How do I search across them?"description: "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."slug: "search-all-pdfs-in-a-folder"@@ -7,11 +7,19 @@ cluster: "Files and formats"question: "I downloaded a bunch of papers as PDFs. How do I search across them?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, run `xerj autoindex ./papers --url http://127.0.0.1:9200 --prefix pdfx --progress plain`, POST a match_phrase query for a sentence you know is in one paper to /pdfx-docs/_search, then query /autoindex-catalog/_search for doc_kind=file and status=junk and report every PDF that produced no text."+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."+key_fact: "XERJ reads at most 100,000 pages per PDF (`MAX_PAGES`) in an isolated worker process."+key_fact_source: "engine/crates/xerj-autoindex/src/resources.rs"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "index pdf folder full text search offline"+ - "search across pdfs locally"commands:- cmd: "xerj autoindex ./pdf --url http://127.0.0.1:9200 --prefix pdfx --progress plain"note: "Index every PDF in the folder; each file is parsed in its own worker process."diff --git a/content/answers/search-bvh-motion-capture-files.md b/content/answers/search-bvh-motion-capture-files.mdindex ec7ca0c0d..7bf89687d 100644--- a/content/answers/search-bvh-motion-capture-files.md+++ b/content/answers/search-bvh-motion-capture-files.md@@ -7,11 +7,16 @@ cluster: "Files and formats"question: "How do I search motion-capture data?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, install the latest XERJ and start a node, run xerj autoindex on a folder of .bvh files with --prefix bvh, read GET /bvh-*/_mapping, then find a clip by joint name with a terms query on joints and report frames, frame_time_s and duration_s for every hit."+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."+key_fact: "The captured BVH clip reported 60 frames over a duration_s of 1.999998."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "JSONL and data files"commands:- cmd: "xerj autoindex ./bvh --url http://127.0.0.1:9480 --prefix bvh --state-dir ./state-bvh --progress plain --disable-feedback"note: "Index the folder of .bvh clips into bvh-* indices."diff --git a/content/answers/search-confluence-html-export.md b/content/answers/search-confluence-html-export.mdindex e577f0c76..18a2e4610 100644--- a/content/answers/search-confluence-html-export.md+++ b/content/answers/search-confluence-html-export.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "How do I search my Confluence export?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, unzip a Confluence HTML space export to a folder, run `xerj autoindex ./confluence-export --url http://127.0.0.1:9200 --prefix cf --progress plain`, then POST a match_phrase on body for text inside a nested page, POST an exists query on title sorted by ax_path, and report every distinct title and the attachment paths that matched."+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."+key_fact: "One body-text query on a nested page returned 1 hit at `Recovery-procedure_262146.html` in the captured run."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "logs and docs"+queries:+ - "search confluence export locally"commands:- cmd: "xerj autoindex ./confluence-export --url http://127.0.0.1:9200 --prefix cf --progress plain"note: "Index an unzipped Confluence HTML space export from local disk."diff --git a/content/answers/search-engine-without-docker.md b/content/answers/search-engine-without-docker.mdindex da452c802..8c424fc78 100644--- a/content/answers/search-engine-without-docker.md+++ b/content/answers/search-engine-without-docker.md@@ -1,5 +1,5 @@----title: "Is there a single-binary local search engine?"+title: "Single-binary local search engine, no Docker or JVM"h1: "Is there a single-binary local search engine I can just run?"description: "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."slug: "search-engine-without-docker"@@ -7,11 +7,19 @@ cluster: "Operations: installation"question: "Is there a single-binary local search engine I can just run?"intent: "cost"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, download the XERJ release binary for this host, start a single-node instance with --insecure on a scratch data directory, poll GET / until it answers 200, and report the linked libraries and the cold-start time you measured."+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."+key_fact: "XERJ passes 1366 of 1369 Elasticsearch YAML conformance cases from that single binary."+key_fact_source: "README.md"+key_fact_date: "2026-10-19"+intent_group: "search engine alternatives"+queries:+ - "self-hosted Elasticsearch alternative single binary Rust MCP"+ - "search engine without docker"commands:- cmd: "xerj --version"note: "Print the binary version before you start a node."diff --git a/content/answers/search-file-contents-in-a-folder.md b/content/answers/search-file-contents-in-a-folder.mdindex 426048db0..7ff2d2fea 100644--- a/content/answers/search-file-contents-in-a-folder.md+++ b/content/answers/search-file-contents-in-a-folder.md@@ -1,5 +1,5 @@----title: "How do I search a folder of mixed documents?"+title: "Search inside PDFs, Word docs and Markdown in one folder"h1: "I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?"description: "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."slug: "search-file-contents-in-a-folder"@@ -7,11 +7,19 @@ cluster: "Files and formats"question: "I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, run `xerj autoindex ./mixed6 --url http://127.0.0.1:9200 --prefix mx --progress plain --dry-run` to read the planned datasets, run the same command without --dry-run, then POST a match_phrase query to /mx-*/_search and report every ax_path that matched."+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."+key_fact: "The README's sample run indexed 25,329 files into 593 datasets and 83,103 records in 158.1 s."+key_fact_source: "README.md"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "search inside files in a folder"+ - "index pdf folder full text search offline"commands:- cmd: "xerj autoindex ./mixed6 --url http://127.0.0.1:9200 --prefix mx --progress plain --dry-run"note: "Print the planned datasets and the job-size line without writing anything."diff --git a/content/answers/search-files-in-an-s3-bucket.md b/content/answers/search-files-in-an-s3-bucket.mdindex 0f5349846..63c46354e 100644--- a/content/answers/search-files-in-an-s3-bucket.md+++ b/content/answers/search-files-in-an-s3-bucket.md@@ -7,11 +7,16 @@ cluster: "Ingest: object storage"question: "How do I search files that live in an S3 bucket?"intent: "informational"published: "2026-09-19"-updated: "2026-09-19"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, then index the bucket with xerj autoindex s3://bucket/prefix, taking credentials from the environment and adding --endpoint-url for any store that is not Amazon S3. Re-run the same command to pick up changes: objects whose ETag and size are unchanged are not downloaded again. Report the LIST and GET counts the run prints before you put the command in a schedule, and remember the index itself is on the node's local disk, not in the bucket."+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."+key_fact: "Measured against MinIO: an unchanged re-run over 4 keys cost 1 LIST and 0 GET requests, 0 bytes."+key_fact_source: "engine/crates/xerj-autoindex/src/objsource_minio_tests.rs"+key_fact_date: "2026-10-19"+intent_group: "operating autoindex"commands:- cmd: "xerj autoindex s3://acme-docs/handbook"note: "Index one prefix. Credentials come from AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in the environment."diff --git a/content/answers/search-gmail-takeout-mbox-locally.md b/content/answers/search-gmail-takeout-mbox-locally.mdindex 289327e19..3dfc4e930 100644--- a/content/answers/search-gmail-takeout-mbox-locally.md+++ b/content/answers/search-gmail-takeout-mbox-locally.md@@ -7,11 +7,16 @@ cluster: "Folder indexing"question: "How do I search a Google Takeout mbox file locally?"intent: "informational"published: "2026-09-18"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt. The user has a Google Takeout download, which is private mail. Unzip it first (autoindex does not open archives), start a node with `xerj --insecure --data-dir ~/xerj-data` on the user's own machine, run `xerj autoindex <unzipped folder> --url http://127.0.0.1:9200 --prefix mail --progress plain`, and relay the xerj-bar line while it runs. Before indexing, tell the user the measured memory picture: since #1002 (v1.0.0-rc.76) a 1 GB mailbox completes under the node's default 16 GiB cap in 407.7 s and a 300 MB mailbox fits a laptop's 8 GiB cap (7,963.6 MiB peak), but the 1 GB run still peaked at 21,405.3 MiB, 1.3x that cap (per-segment caches, open as #1032), so warn about headroom on a multi-GB export. Answer questions with term filters on email_from_address / email_thread_id (hex) / attachment_name and match or match_phrase on body, which also holds the subject. Cite ax_locator and email_subject for every hit. If you file a field report, pass --pointed-at \"a private mailbox\" so the folder path is not published."+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."+key_fact: "On a 1 GB synthetic mailbox the client peaked at 296 MiB and finished in 279 s, and all 2,530 planted needles were found."+key_fact_source: "benchmarks/mbox-ingest/results/after-mixed-1G-runC-verify-every-needle.json"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"commands:- cmd: "bash -c 'unzip takeout-20260101T000000Z-001.zip -d ~/mail-export'"note: "Extract the download first. An unextracted .zip is named in the run's output with the exact command to run."diff --git a/content/answers/search-gzip-logs-without-zgrep.md b/content/answers/search-gzip-logs-without-zgrep.mdindex 58453facd..b429479c3 100644--- a/content/answers/search-gzip-logs-without-zgrep.md+++ b/content/answers/search-gzip-logs-without-zgrep.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "How do I search gzipped logs without decompressing the whole file?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure, run xerj autoindex on a folder of .gz logs with --prefix gzz, then GET /gzz-*/_count and POST a bool filter on level to /gzz-*/_search, and report that ax_format is logs(gzip) and that ts is a date field you can range over."+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."+key_fact: "The plain and gzip copies of one log both returned a `_count` of 5001 and 1250 `level=ERROR` hits."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "logs and docs"+queries:+ - "search logs locally without ELK"commands:- cmd: "xerj autoindex ./gzip-logs/gz --url http://127.0.0.1:9410 --prefix gzz --state-dir ./state-gzz --progress plain --disable-feedback"note: "Index a folder of gzip-compressed log files."diff --git a/content/answers/search-gzipped-csv-or-json.md b/content/answers/search-gzipped-csv-or-json.mdindex 6cd58e28e..30ac56bca 100644--- a/content/answers/search-gzipped-csv-or-json.md+++ b/content/answers/search-gzipped-csv-or-json.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "How do I search gzipped CSV exports?"intent: "how-to"published: "2026-08-22"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent with a folder holding .csv.gz and .json.gz exports. Read https://xerj.org/llms.txt, run xerj autoindex on the folder, then run xerj autoindex map --json and confirm from the map that the compressed files produced typed columns before you write a query against them."+answer: "How do I search gzipped CSV exports without unzipping them? Point xerj autoindex at the folder. Gzip is a wrapper, not a family: autoindex strips it during the run and sniffs the bytes underneath, so a .csv.gz becomes typed columns and a .json.gz becomes documents with fields. No query re-reads the archive."+key_fact: "The sniffer classifies the decompressed stream from its first 8,192 bytes (`PREFIX`), the same window it uses for a plain file."+key_fact_source: "engine/crates/xerj-autoindex/src/sniff.rs"+key_fact_date: "2026-10-19"+intent_group: "JSONL and data files"+queries:+ - "search large csv files fast without database"commands:- cmd: "xerj autoindex ./exports --url http://127.0.0.1:9200 --prefix gzx --state-dir ./state-gzx --progress plain --dry-run"note: "Read the plan first. The plan names the family each compressed file was sniffed as."diff --git a/content/answers/search-html-export.md b/content/answers/search-html-export.mdindex a498e3e53..3db2d6931 100644--- a/content/answers/search-html-export.md+++ b/content/answers/search-html-export.md@@ -12,6 +12,11 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure, run xerj autoindex ./html-export --prefix web on a folder of saved HTML pages, then POST a match query on body to /web-*/_search and report ax_path, title and the headings array for every hit without fetching any URL."+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."+key_fact: "The captured 3-page HTML export returned 3 hits for one `match` on `body`, with 0 non-loopback network peers."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "logs and docs"commands:- cmd: "xerj autoindex ./html-export --url http://127.0.0.1:9410 --prefix web --state-dir ./state-web --progress plain --disable-feedback"note: "Index a folder of saved HTML pages from local disk."diff --git a/content/answers/search-json-and-jsonl-logs.md b/content/answers/search-json-and-jsonl-logs.mdindex 606453308..56ae86baa 100644--- a/content/answers/search-json-and-jsonl-logs.md+++ b/content/answers/search-json-and-jsonl-logs.md@@ -1,5 +1,5 @@----title: "Search JSON logs and gzip logs in one folder"+title: "Search JSON and JSONL logs plus gzip logs in one folder"h1: "What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?"description: "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."slug: "search-json-and-jsonl-logs"@@ -12,6 +12,14 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, run `xerj autoindex ./json-logs --url http://127.0.0.1:9200 --prefix jlog --progress plain`, GET /jlog-*/_mapping to find which field XERJ inferred as a date, then POST a filtered search for level=ERROR and a terms aggregation on service, and report the hit total and the bucket counts."+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."+key_fact: "One JSONL file yields at most 4,096 records per extraction window (`MAX_RECORDS_PER_FILE`)."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/mod.rs"+key_fact_date: "2026-10-19"+intent_group: "JSONL and data files"+queries:+ - "search jsonl logs locally"+ - "search json logs from the command line"commands:- cmd: "xerj autoindex ./json-logs --url http://127.0.0.1:9200 --prefix jlog --progress plain"note: "Index a folder holding both JSON-array and JSONL log files."diff --git a/content/answers/search-jupyter-notebook-cells.md b/content/answers/search-jupyter-notebook-cells.mdindex 2ff7b7d37..6ba56e914 100644--- a/content/answers/search-jupyter-notebook-cells.md+++ b/content/answers/search-jupyter-notebook-cells.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files?"intent: "how-to"published: "2026-08-21"-updated: "2026-10-05"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, run `xerj autoindex ./notebooks --url http://127.0.0.1:9200 --prefix jp --progress plain`, then POST a match on body for a function name, a match_phrase on body for text printed only by an executed cell, and report ax_path, ax_locator, heading, heading_path and cell for every hit."+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."+key_fact: "The captured section `Okapi retrieval sweep > Run the sweep` started at cell 3 and returned the printed line `okapi accuracy 0.9137`."+key_fact_source: "capture"+key_fact_date: "2026-10-05"+intent_group: "code search for agents"+queries:+ - "search jupyter notebooks"commands:- cmd: "xerj autoindex ./notebooks --url http://127.0.0.1:9200 --prefix jp --progress plain"note: "Index a folder of .ipynb files, and the .py files beside them, from local disk."@@ -35,7 +42,7 @@ faq:- q: "Does XERJ search executed cell output as well as code?"a: "Yes, for text output. Printed text, `text/plain` results and errors are written into the section body after their cell. Image outputs and HTML-only outputs are not indexed."- q: "Is XERJ notebook-aware?"- a: "Yes, from the release after v1.0.0-rc.82. XERJ recognizes a notebook by its content, not its extension, and groups cells by their Markdown headings. It reads any kernel and records the kernel language. It never executes a notebook."+ a: "Yes, in every release after v1.0.0-rc.82; the current release is v1.0.0-rc.97 (checked 2026-10-19). XERJ recognizes a notebook by its content, not its extension, and groups cells by their Markdown headings. It reads any kernel and records the kernel language. It never executes a notebook."- q: "Which notebook fields can I filter on?"a: "`heading` and `language` are `keyword`, `cell` is `long`, and `heading_path` and `title` are `text`. `body` holds the Markdown, the code and the text outputs."- q: "Do markdown cells and code cells end up in the same document?"diff --git a/content/answers/search-kubernetes-pod-logs-on-disk.md b/content/answers/search-kubernetes-pod-logs-on-disk.mdindex db345c5e3..c786da205 100644--- a/content/answers/search-kubernetes-pod-logs-on-disk.md+++ b/content/answers/search-kubernetes-pod-logs-on-disk.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "Grep for specific text from kubernetes multiple pods"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-20"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, copy or stream the pod logs you care about into a local folder that keeps the var/log/pods/<namespace>_<pod>_<uid>/<container>/0.log layout, start a local XERJ node, run `xerj autoindex ./pod-logs --url http://127.0.0.1:9200 --prefix pl --progress plain`, POST a match_phrase on body with size 100, and report the per-file hit counts read from the returned hits rather than from an aggregation."+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."+key_fact: "One `match_phrase` request returned 18 hits, 6 per pod, across 3 collected pod logs."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "logs and docs"+queries:+ - "search logs locally without ELK"commands:- cmd: "xerj autoindex ./pod-logs --url http://127.0.0.1:9200 --prefix pl --progress plain"note: "Index a folder of already-collected pod log files from local disk."@@ -19,6 +26,9 @@ commands:note: "Run 1 phrase query across every pod, and read the spread from the hits."- cmd: "curl -s -XPOST http://127.0.0.1:9200/autoindex-catalog/_search -H 'content-type: application/json' -d '{\"query\":{\"bool\":{\"filter\":[{\"term\":{\"doc_kind\":\"file\"}}],\"must\":[{\"wildcard\":{\"path\":\"*var/log/pods*\"}}]}},\"size\":10,\"_source\":[\"path\",\"format\",\"status\",\"records\"],\"sort\":[{\"path\":\"asc\"}]}'"note: "Read the family XERJ gave each log file, and the document count per file."+evidence:+ - claim: "JSONL line cap is 16 MB (MAX_LINE = 16 << 20). A line at or above that length is skipped; the rest of the file still indexes."+ source: "engine/crates/xerj-autoindex/src/extract/mod.rs"links_out:- "search-json-and-jsonl-logs"- "search-gzip-logs-without-zgrep"@@ -35,7 +45,7 @@ faq:- q: "Did the aggregation agree with the hits in this run?"a: "Yes. The terms aggregation on the same request reported 6 documents per file, the same as the hits. Compare both before you publish a count."- q: "What if I convert the logs to JSONL first?"- a: "Keep every line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 documents at 4,096."+ a: "A line at or above 16 MB is skipped and counted as junk. The cap is `MAX_LINE` (`16 << 20`) in `engine/crates/xerj-autoindex/src/extract/mod.rs`. The rest of the file still indexes."- q: "Where do these results come from?"a: "All results come from run RUN-B, captured on 2026-08-21 on a 16-core AMD EPYC 9645 host."---@@ -78,7 +88,7 @@ All 3 files were detected as `txt-prose` in the `autoindex-catalog`. The `logs`Plan for that. The line text is searchable through `body`, so a full-text query for `level=error` finds the lines that hold that string. No typed level filter and no date range query exist on this index.-If you want typed fields, convert the lines to JSON or JSONL before you index them. Keep every JSONL line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 at 4,096, with the family flipping from `jsonl` to `json`.+If you want typed fields, convert the lines to JSON or JSONL before you index them. A JSONL line at or above 16 MB is skipped and counted as junk (`MAX_LINE`, `16 << 20`, in `engine/crates/xerj-autoindex/src/extract/mod.rs`). The rest of the file still indexes.## What XERJ is not doing herediff --git a/content/answers/search-obsidian-pdf-docx-attachments.md b/content/answers/search-obsidian-pdf-docx-attachments.mdindex 4d9d8faae..9ccfaf1b0 100644--- a/content/answers/search-obsidian-pdf-docx-attachments.md+++ b/content/answers/search-obsidian-pdf-docx-attachments.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "What's the best way to search markdown notes and PDFs in the same vault?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, run `xerj autoindex ./vault --url http://127.0.0.1:9200 --prefix ob --progress plain`, then POST a match_phrase on body for a string that exists only inside a PDF attachment and a second one for a string only inside a DOCX attachment, read the autoindex-catalog for any file whose status is junk, and report the hit paths and the junk reasons."+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."+key_fact: "Omnisearch, the in-app alternative, has 2,169 GitHub stars and released 1.31.0 on 2026-09-05."+key_fact_source: "https://github.com/scambier/obsidian-omnisearch"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "search markdown notes MCP server"commands:- cmd: "xerj autoindex ./vault --url http://127.0.0.1:9200 --prefix ob --progress plain"note: "Index a vault folder, including the attachments folder beside the notes."diff --git a/content/answers/search-openapi-spec-for-agent.md b/content/answers/search-openapi-spec-for-agent.mdindex 99a3b9dbb..d5190fb86 100644--- a/content/answers/search-openapi-spec-for-agent.md+++ b/content/answers/search-openapi-spec-for-agent.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "My agent needs to look up endpoints in a big OpenAPI spec. What's the right way?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, put an OpenAPI document on disk as both .json and .yaml, run `xerj autoindex ./api-specs --url http://127.0.0.1:9200 --prefix oa --progress plain`, then POST a match on body for a route name and for an operationId, GET /oa-docs/_mapping, and report the ax_format of every hit plus the complete field list the spec produced."+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."+key_fact: "Each of 3 lookups (route, description, operationId) returned 2 hits, 1 per serialization of the same spec."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "code search for agents"+queries:+ - "openapi spec search for agents"commands:- cmd: "xerj autoindex ./api-specs --url http://127.0.0.1:9200 --prefix oa --progress plain"note: "Index a folder of OpenAPI documents from local disk."diff --git a/content/answers/search-slack-json-export.md b/content/answers/search-slack-json-export.mdindex 237aaeff0..115b0dc1e 100644--- a/content/answers/search-slack-json-export.md+++ b/content/answers/search-slack-json-export.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "How do I search a Slack or Discord JSON export?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-20"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, unzip a Slack export so that channels.json sits beside one folder per channel, run `xerj autoindex ./slack-export --url http://127.0.0.1:9200 --prefix sl --progress plain`, then POST a match_phrase on text for a string written inside a threaded reply, GET the mapping for one channel index, and report the hit ax_path, ax_locator, ts, thread_ts and user for every hit."+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."+key_fact: "Records keep up to 512 fields each (`MAX_FIELDS_PER_RECORD`), so nested Slack message fields map without a schema."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/mod.rs"+key_fact_date: "2026-10-19"+intent_group: "JSONL and data files"+queries:+ - "search slack export json"commands:- cmd: "xerj autoindex ./slack-export --url http://127.0.0.1:9200 --prefix sl --progress plain"note: "Index an unzipped Slack export folder from local disk."@@ -21,6 +28,11 @@ commands:note: "Read the fields one channel produced, with the type XERJ inferred for each."- cmd: "curl -s -XPOST http://127.0.0.1:9200/sl-incidents/_search -H 'content-type: application/json' -d '{\"query\":{\"terms\":{\"reply_users\":[\"U02BBBB\"]}},\"size\":10,\"_source\":[\"ax_path\",\"ax_locator\",\"user\",\"ts\",\"reply_users\"],\"track_total_hits\":true}'"note: "Filter the multi-valued reply_users field for one user id."+evidence:+ - claim: "JSONL line cap is 16 MB (MAX_LINE = 16 << 20). A line at or above that length is skipped; the rest of the file still indexes."+ source: "engine/crates/xerj-autoindex/src/extract/mod.rs"+ - claim: "The sniffer reads an 8 KB prefix. A JSONL file whose first line is longer than that prefix can be labelled JSON, and the JSON extractor then falls back to per-line JSONL."+ source: "engine/crates/xerj-autoindex/src/extract/json.rs"links_out:- "search-json-and-jsonl-logs"- "give-chatgpt-claude-local-file-access"@@ -39,7 +51,7 @@ faq:- q: "Is ts indexed as a date field?"a: "No. XERJ typed `ts` and `thread_ts` as `double` in the captured run, because Slack writes an epoch value with a fractional part."- q: "Can I convert the export to JSONL first?"- a: "Keep every line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 at 4,096."+ a: "A line at or above 16 MB is skipped and counted as junk. The cap is `MAX_LINE` (`16 << 20`) in `engine/crates/xerj-autoindex/src/extract/mod.rs`. The rest of the file still indexes."- q: "I downloaded a Discord server export. How do I search it?"a: "Unzip it to local disk and run the same `xerj autoindex` command on the folder. A Discord export is JSON, and XERJ picks the family by reading the content rather than the file name. No Discord export was captured for this page, so read `xerj autoindex map` and the mapping for your own export before you write a filter."---@@ -100,11 +112,11 @@ One channel index produced 24 fields. XERJ inferred the types from the values, wThe `reactions` field is worth naming. XERJ did not expand it into 1 keyword per reaction name. The field holds the whole array as a single string such as `[{"name":"+1","users":["U01AAAA","U03CCCC"],"count":2}]`, so a reaction-name filter needs a `wildcard` or a client-side parse.-## If you flatten the export to JSONL, cap the line length+## If you flatten the export to JSONL-A long Slack message can push a JSONL line past a hard boundary. Keep every line under 4,096 characters, or the whole file is dropped.+A JSONL line at or above 16 MB is skipped and counted as junk. The rest of the file still indexes. The cap is `MAX_LINE` (`16 << 20`) in `engine/crates/xerj-autoindex/src/extract/mod.rs`.-A captured reproduction used 2 files of 30 valid JSON lines each, identical apart from length. At 4,095 characters the sniffer chose `jsonl` and indexed 30 documents. At 4,096 characters it chose `json`, failed to parse, and indexed 0.+A first line longer than the 8 KB sniff sample can be labelled JSON. The JSON extractor then reads the file as JSONL, one object per line (`jsonl_fallback` in `engine/crates/xerj-autoindex/src/extract/json.rs`).## Discord and other chat exportsdiff --git a/content/answers/search-sql-dump-file.md b/content/answers/search-sql-dump-file.mdindex 27045e491..8acf15097 100644--- a/content/answers/search-sql-dump-file.md+++ b/content/answers/search-sql-dump-file.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, run `xerj autoindex ./sqldump --url http://127.0.0.1:9200 --prefix dump --progress plain`, GET /_cat/indices/dump-*?format=json to see one index per table, then POST a match_phrase query to /dump-*/_search for a string you expect inside an INSERT value and report the hit with its ax_locator."+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."+key_fact: "The captured dump produced 2 indices holding 301 and 20 documents, 321 in total."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "JSONL and data files"+queries:+ - "search large csv files fast without database"commands:- cmd: "xerj autoindex ./sqldump --url http://127.0.0.1:9200 --prefix dump --progress plain"note: "Index a folder holding a MySQL-style .sql file; no database server is involved."diff --git a/content/answers/search-unity-project-assets.md b/content/answers/search-unity-project-assets.mdindex 757937220..201a4551a 100644--- a/content/answers/search-unity-project-assets.md+++ b/content/answers/search-unity-project-assets.md@@ -7,11 +7,16 @@ cluster: "Files and formats"question: "How do I search a Unity project's assets?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, install the latest XERJ and start a node, run xerj autoindex on a Unity project folder with --prefix unity, list the indices it created, then find one GameObject by m_Name and join one asset to its .meta record with a bool should query on asset_path and ax_path."+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."+key_fact: "One `bool` query joined an asset to its `.meta` record by path and returned 3 documents across 2 families."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "code search for agents"commands:- cmd: "xerj autoindex ./unity --url http://127.0.0.1:9480 --prefix unity --state-dir ./state-unity --progress plain --disable-feedback"note: "Index the Unity project folder into unity-* indices."diff --git a/content/answers/search-word-documents-in-a-folder.md b/content/answers/search-word-documents-in-a-folder.mdindex 6609a0738..a434a2b43 100644--- a/content/answers/search-word-documents-in-a-folder.md+++ b/content/answers/search-word-documents-in-a-folder.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "How do I search through a folder of contracts in .docx?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local XERJ node, run `xerj autoindex ./docx --url http://127.0.0.1:9200 --prefix docx --progress plain`, POST a match_phrase query to /docx-docs/_search for a phrase you expect inside a paragraph, and report the ax_path, the extracted title and the matching body text."+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."+key_fact: "The DOCX decompression guard refuses a file that expands past its cap; the captured expanded file produced 0 documents."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "logs and docs"+queries:+ - "search inside files in a folder"commands:- cmd: "xerj autoindex ./docx --url http://127.0.0.1:9200 --prefix docx --progress plain"note: "Index every DOCX file in the folder and print the terminal xerj-done line."diff --git a/content/answers/search-yaml-xml-config-repository.md b/content/answers/search-yaml-xml-config-repository.mdindex b71172be9..ac28e7cd5 100644--- a/content/answers/search-yaml-xml-config-repository.md+++ b/content/answers/search-yaml-xml-config-repository.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "How do I find every place a config key is set across YAML and XML in a repo?"intent: "how-to"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure on a scratch data directory, run xerj autoindex ./config --prefix cfg, read GET /cfg-*/_mapping to learn the real field names, then send one bool query over cfg-*/_search that matches both the YAML file and the XML file, and report ax_path and ax_format for every hit."+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."+key_fact: "The captured run mapped 9 fields, including body and title, across 4 documents from 2 config files."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "code search for agents"+queries:+ - "find function definition across repo CLI"commands:- cmd: "xerj autoindex ./config --url http://127.0.0.1:9410 --prefix cfg --state-dir ./state-cfg --progress plain --disable-feedback"note: "Index a folder of YAML and XML config files."diff --git a/content/answers/search-zendesk-ticket-json-export.md b/content/answers/search-zendesk-ticket-json-export.mdindex 76cae3d15..913104065 100644--- a/content/answers/search-zendesk-ticket-json-export.md+++ b/content/answers/search-zendesk-ticket-json-export.md@@ -7,11 +7,18 @@ cluster: "Files and formats"question: "I have a JSON export of support tickets. How do I search it like a real help-center search?"intent: "tool-selection"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-20"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, save a Zendesk incremental ticket export to a local folder as tickets.json, ticket_comments.json and users.json, start a local XERJ node, run `xerj autoindex ./zendesk-export --url http://127.0.0.1:9200 --prefix zd --progress plain`, POST a match_phrase on description, POST a terms aggregation on status with size 0, and report the hit locators, the bucket counts and the difference between the bucket total and track_total_hits."+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."+key_fact: "A `status` terms aggregation returned 6 buckets of exactly 30 tickets each."+key_fact_source: "capture"+key_fact_date: "2026-08-21"+intent_group: "JSONL and data files"+queries:+ - "index folder of json files for search"commands:- cmd: "xerj autoindex ./zendesk-export --url http://127.0.0.1:9200 --prefix zd --progress plain"note: "Index a saved Zendesk export folder from local disk."@@ -21,6 +28,9 @@ commands:note: "Count tickets per status, exactly, and read the total beside the buckets."- cmd: "curl -s -XPOST http://127.0.0.1:9200/zd-json-tickets/_search -H 'content-type: application/json' -d '{\"query\":{\"terms\":{\"tags\":[\"escalated\"]}},\"size\":10,\"_source\":[\"id\",\"status\",\"tags\"],\"track_total_hits\":true}'"note: "Filter the multi-valued tags field for one tag value."+evidence:+ - claim: "JSONL line cap is 16 MB (MAX_LINE = 16 << 20). A line at or above that length is skipped; the rest of the file still indexes."+ source: "engine/crates/xerj-autoindex/src/extract/mod.rs"links_out:- "search-json-and-jsonl-logs"- "catalog-files-with-autoindex-map"@@ -112,6 +122,6 @@ The `date` typing is what makes a range query over `created_at` work straight afXERJ has no Zendesk connector, no API token flow and no sync job. The node observed 0 distinct non-loopback peers across 185 samples over its whole life. Request the export from Zendesk yourself, save it to disk, then index the folder.-If you flatten the export to JSONL, keep every line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 documents at 4,096, with the family flipping from `jsonl` to `json`.+If you flatten the export to JSONL, a line at or above 16 MB is skipped and counted as junk (`MAX_LINE`, `16 << 20`, in `engine/crates/xerj-autoindex/src/extract/mod.rs`). The rest of the file still indexes.XERJ runs single-node here, with no replication and no failover. Every number above comes from RUN-B, captured on 2026-08-21. The binary was a `ci-test` profile build, so no wall-clock figure from this run is published as a performance number.diff --git a/content/answers/set-mcp-memory-storage-path.md b/content/answers/set-mcp-memory-storage-path.mdindex 0e83dc61b..56f5f0b84 100644--- a/content/answers/set-mcp-memory-storage-path.md+++ b/content/answers/set-mcp-memory-storage-path.md@@ -7,11 +7,18 @@ cluster: "Agent memory: storage"question: "Memory MCP ignores custom storage path setting"intent: "troubleshooting"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with a non-default data directory, store one memory, stop the node, start it again against the same directory, and report both the recalled ids and the .xerj-memory-* directory you find on disk."+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."+key_fact: "xerj mcp exposes 2 memory tools out of 17, and both proxy to the node; neither writes a file of its own."+key_fact_source: "landing/docs/agents/schemas/mcp-tools.json"+key_fact_date: "2026-10-19"+intent_group: "agent memory"+queries:+ - "long term memory MCP server local"commands:- cmd: "xerj --insecure --data-dir ./xerj-data"note: "Start a node with a non-default data directory. Memory follows this path; there is no separate memory setting."diff --git a/content/answers/share-folder-read-only-search-without-uploading.md b/content/answers/share-folder-read-only-search-without-uploading.mdindex ed5b4a3ec..70ba034c1 100644--- a/content/answers/share-folder-read-only-search-without-uploading.md+++ b/content/answers/share-folder-read-only-search-without-uploading.md@@ -7,11 +7,16 @@ cluster: "Sharing: read-only guest access"question: "I need my accountant to search a folder of emails and PDFs. How do I do that without uploading everything somewhere?"intent: "how-to"published: "2026-09-18"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run xerj brain on the folder the user names, then run xerj share on the same folder with a label and an expiry, and give the user the link and the passcode separately. Tell them the link only works on this machine unless they add --tunnel, and show them the xerj share --revoke command that was printed."+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."+key_fact: "A share defaults to 24 hours and 1 claim; the maximum is 30 days and 50 claims."+key_fact_source: "engine/crates/xerj-api/src/share.rs"+key_fact_date: "2026-10-19"+intent_group: "sharing an index"commands:- cmd: "xerj brain ./casefiles"note: "Index the folder. This boots a local node with authentication on and prints the share command for this folder when it finishes."diff --git a/content/answers/share-local-search-index-through-a-tunnel.md b/content/answers/share-local-search-index-through-a-tunnel.mdindex aadcc0c2d..47dfd0c52 100644--- a/content/answers/share-local-search-index-through-a-tunnel.md+++ b/content/answers/share-local-search-index-through-a-tunnel.md@@ -7,11 +7,16 @@ cluster: "Sharing: read-only guest access"question: "How can I give a remote person temporary search access to files on my laptop without port forwarding or a VPN?"intent: "how-to"published: "2026-09-18"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt. Confirm cloudflared is installed, then run xerj share on the user's indexed folder with --tunnel in the background, wait for the line that says the tunnel is up, and give the user the https link and the passcode separately. Tell them the link stops working when the command stops, and that stopping it revokes the share."+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."+key_fact: "A known share accepts at most 30 passcode attempts an hour, from any address."+key_fact_source: "engine/crates/xerj-api/src/share.rs"+key_fact_date: "2026-10-19"+intent_group: "sharing an index"commands:- cmd: "xerj share ./casefiles --label 'for Dana' --tunnel"note: "Open a temporary public address and print the full guest link. Runs until Ctrl-C, then closes the tunnel and revokes the share."diff --git a/content/answers/store-agent-memory-without-llm-call.md b/content/answers/store-agent-memory-without-llm-call.mdindex ce14150f3..13de30006 100644--- a/content/answers/store-agent-memory-without-llm-call.md+++ b/content/answers/store-agent-memory-without-llm-call.md@@ -7,11 +7,18 @@ cluster: "Agent memory: model dependency"question: "How do I dedup agent memory?"intent: "how-to"published: "2026-08-21"-updated: "2026-09-13"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, then POST the same fact twice to /_memory/agentmem on a running XERJ node with dedup true and dedup_threshold 0.95, confirm the second response carries created false and deduplicated true and the same id, POST a reworded version of the same fact and report whether it deduplicated, then recall the namespace and report how many documents it holds."+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. No model or summarization runs on the write path."+key_fact: "The default dedup threshold is a cosine similarity of 0.95."+key_fact_source: "engine/crates/xerj-api/src/memory_api.rs"+key_fact_date: "2026-10-19"+intent_group: "agent memory"+queries:+ - "agent memory deduplication"commands:- cmd: "curl -s -XPOST 'http://127.0.0.1:9430/_memory/agentmem' -H 'content-type: application/json' -d '{\"text\":\"The user prefers p50 and p95 latency, never the mean.\",\"dedup\":true,\"dedup_threshold\":0.95}'"note: "Store with the near-duplicate check on. Send this twice: the second call returns the first id with deduplicated true and writes nothing."diff --git a/content/answers/syntax-aware-code-search-refactoring.md b/content/answers/syntax-aware-code-search-refactoring.mdindex d7f20393f..797d4cb91 100644--- a/content/answers/syntax-aware-code-search-refactoring.md+++ b/content/answers/syntax-aware-code-search-refactoring.md@@ -7,11 +7,19 @@ cluster: "Files and formats"question: "Is there a syntax-aware code search tool for refactoring?"intent: "tool-selection"published: "2026-08-21"-updated: "2026-08-21"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure, run xerj autoindex ./code --prefix code, then send two queries to code-*/_search: a match on body for a symbol name and a match on defs for the same name, and report ax_path, language and the symbols array with kind, name and line for each declaration hit."+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."+key_fact: "XERJ's tree-sitter registry covers 36 languages, pinned by a unit test."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/code.rs"+key_fact_date: "2026-10-19"+intent_group: "code search for agents"+queries:+ - "tree-sitter code search CLI"+ - "find function definition across repo CLI"commands:- cmd: "xerj autoindex ./code --url http://127.0.0.1:9410 --prefix code --state-dir ./state-code --progress plain --disable-feedback"note: "Index the source tree into the prefix code."@@ -31,7 +39,7 @@ faq:- q: "Does XERJ find every caller of a function?"a: "No. Extraction is definitions only, with no call graph and no cross-file reference resolution. Use a language server when a rename must be sound."- q: "Which languages does XERJ parse?"- a: "34 languages through tree-sitter, including Rust, Go, Python, TypeScript, Java and C++. Our capture exercised `rust`, `python` and `go`."+ a: "36 languages through tree-sitter, including Rust, Go, Python, TypeScript, Java and C++. Our capture exercised `rust`, `python` and `go`."- q: "Does case matter in a symbol query?"a: "Yes, in practice. `src/query.go` declares `MergeSegments`, and the query token `merge_segments` did not match it in our capture."- q: "What happens if a file fails to parse?"@@ -87,7 +95,7 @@ One miss is worth naming. The file `src/query.go` declares `MergeSegments`, andXERJ extracts definitions only. There is no call graph, no import graph and no cross-file reference resolution, so XERJ does not find callers of a symbol.-That boundary decides the tool choice. Use XERJ to locate every declaration and every textual occurrence across 34 languages. Use a language server or a compiler plugin for a rename that must be sound.+That boundary decides the tool choice. Use XERJ to locate every declaration and every textual occurrence across 36 languages. Use a language server or a compiler plugin for a rename that must be sound.## Caps and failure behaviordiff --git a/content/answers/vector-database-vs-full-text-search.md b/content/answers/vector-database-vs-full-text-search.mdindex c6c0555f5..33eaa14a3 100644--- a/content/answers/vector-database-vs-full-text-search.md+++ b/content/answers/vector-database-vs-full-text-search.md@@ -7,11 +7,19 @@ cluster: "Retrieval: selection"question: "What's the actual difference between a vector database and full-text search?"intent: "informational"published: "2026-08-21"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, index a judged corpus into one XERJ index, then run the same query three times as a match query, as a knn query and as a hybrid query with fusion rrf. Report the returned ids for all three and say which judged documents each one missed."+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."+key_fact: "On BEIR SciFact, BM25 scored nDCG@10 0.6572, vectors alone 0.6764, and hybrid RRF 0.6993."+key_fact_source: "benchmarks/beir-hybrid/results/scifact.txt"+key_fact_date: "2026-09-18"+intent_group: "retrieval research and eval"+queries:+ - "grep vs semantic search for coding agents"+ - "vector database vs full text search"commands:- cmd: "curl -s -XPUT 'http://127.0.0.1:9440/eval' -H 'content-type: application/json' -d '{\"mappings\":{\"properties\":{\"doc_id\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"text\":{\"type\":\"semantic_text\"}}}}'"note: "Create the judged index first. Without this step the queries below answer 404. Port 9440 is the capture's Elasticsearch-compatible listener; the default is 9200."diff --git a/content/answers/what-a-share-link-guest-can-reach.md b/content/answers/what-a-share-link-guest-can-reach.mdindex c2ce1e1ea..95da8c1b5 100644--- a/content/answers/what-a-share-link-guest-can-reach.md+++ b/content/answers/what-a-share-link-guest-can-reach.md@@ -7,11 +7,16 @@ cluster: "Sharing: read-only guest access"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?"intent: "informational"published: "2026-09-18"-updated: "2026-09-20"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt. On a throwaway XERJ node with authentication on, create a share with POST /_share, claim it with POST /_share/claim and a JSON body of {id, passcode}, then use the returned api_key to call /_cat/indices, /_cluster/health, a search on another index, a write to the shared index and a search with ?scroll=1m, and report the status code of each call."+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."+key_fact: "The live share-link test ran 237 checks on 2026-09-19 with 0 failures."+key_fact_source: "docs/usecases/share-links/VERIFICATION.md"+key_fact_date: "2026-09-19"+intent_group: "sharing an index"commands:- cmd: "xerj share casefile --label 'for the auditor' --max-claims 1"note: "Create a share over one index. Needs the node's admin key, read from the data directory."diff --git a/content/answers/what-is-xerj.md b/content/answers/what-is-xerj.mdindex 8087c0a8f..aa97a5003 100644--- a/content/answers/what-is-xerj.md+++ b/content/answers/what-is-xerj.md@@ -12,6 +12,14 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent meeting this tool for the first time. Read https://xerj.org/llms.txt, start a node with `xerj --insecure --data-dir ./.xerj-data`, run `xerj autoindex ./docs --url http://127.0.0.1:9200 --prefix docs --progress plain` on the folder you were handed, run `xerj autoindex map --url http://127.0.0.1:9200` to learn the real index and field names, then POST one match_phrase query to /docs-*/_search and answer the user question citing the ax_path of every hit."+answer: "What is XERJ? It is an open-source local search engine for AI agents: a single Apache-2.0 Rust binary. Point xerj autoindex at a folder of code, documents or data files and query it over the Elasticsearch REST API, or let an agent call it through xerj mcp, which also stores agent memory."+key_fact: "A live `tools/list` from v1.0.0-rc.97 returned 17 MCP tools; the engine passes 1366 of 1369 Elasticsearch YAML conformance cases."+key_fact_source: "landing/docs/agents/schemas/mcp-tools.json"+key_fact_date: "2026-10-19"+intent_group: "Find the right tool"+queries:+ - "local search engine for AI agents MCP server BM25"+ - "self-hosted Elasticsearch alternative single binary Rust MCP"commands:- cmd: "xerj --insecure --data-dir ./.xerj-data"note: "Start a local development node. One process, no container and no JVM."@@ -22,7 +30,7 @@ commands:- cmd: "curl -s -XPOST http://127.0.0.1:9200/docs-*/_search -H 'content-type: application/json' -d '{\"query\":{\"match_phrase\":{\"body\":\"rotate the signing key\"}},\"size\":5,\"_source\":[\"ax_path\",\"ax_format\",\"title\"]}'"note: "Search the folder over the Elasticsearch REST API and read the file path back from every hit."- cmd: "xerj mcp --url http://127.0.0.1:9200"- note: "Attach the running node to an agent host over stdio MCP. This serves 10 tools and starts no node of its own."+ note: "Attach the running node to an agent host over stdio MCP. This serves 17 tools and starts no node of its own."links_out:- "how-xerj-autoindexes-a-folder"- "how-xerj-combines-search"@@ -54,7 +62,7 @@ faq:a: "No. XERJ fetches no web page and runs no crawler. Its inputs are folders on local disk and `s3://` bucket prefixes read as a source."----**TL;DR** — XERJ is one Apache-2.0 Rust binary that indexes a local folder and answers search queries over the Elasticsearch REST API. `xerj autoindex` needs no schema and no configuration file. The same process serves agent memory at `/_memory/{namespace}` and 10 MCP tools through `xerj mcp`.+**TL;DR** — XERJ is one Apache-2.0 Rust binary that indexes a local folder and answers search queries over the Elasticsearch REST API. `xerj autoindex` needs no schema and no configuration file. The same process serves agent memory at `/_memory/{namespace}` and 17 MCP tools through `xerj mcp`.## Point it at a folder and query the folder@@ -83,7 +91,7 @@ Every document carries `ax_path`, `ax_file`, `ax_format` and four more keyword p## Hand the same node to an agent-`xerj mcp` is a stdio MCP server inside the same binary. It serves 10 tools against a node that is already running: `xerj_search`, `xerj_semantic_search`, `xerj_vector_search`, `xerj_hybrid_search`, `xerj_memory_store`, `xerj_memory_recall` and four `xerj_brain_*` operations. The semantic tool runs whichever embedder the node loaded, and the default embedder is lexical feature hashing rather than a neural model.+`xerj mcp` is a stdio MCP server inside the same binary. It serves 17 tools against a node that is already running: `xerj_search`, `xerj_semantic_search`, `xerj_vector_search`, `xerj_hybrid_search`, `xerj_memory_store`, `xerj_memory_recall`, four `xerj_brain_*` operations, `xerj_map`, `xerj_code_search`, `xerj_plan`, `xerj_field_report` and three `xerj_hub_*` Corpus Hub tools (a live `tools/list` from v1.0.0-rc.97 on 2026-10-19). The semantic tool runs whichever embedder the node loaded, and the default embedder is lexical feature hashing rather than a neural model.The command does not start a node. Start one first, then register `xerj mcp --url http://127.0.0.1:9200` in the agent host with an absolute path to the binary.diff --git a/content/answers/why-autoindex-skipped-files.md b/content/answers/why-autoindex-skipped-files.mdindex 8592c70f0..fb610e978 100644--- a/content/answers/why-autoindex-skipped-files.md+++ b/content/answers/why-autoindex-skipped-files.md@@ -7,11 +7,16 @@ cluster: "Operations: exclusions"question: "Why would a folder search miss files that I can see on disk?"intent: "troubleshooting"published: "2026-08-21"-updated: "2026-10-05"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run xerj autoindex with --dry-run against the folder, capture the ignore-rule lines from stderr, then query the autoindex-catalog index for doc_kind file and report the status and reason of every file."+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."+key_fact: "The captured run reconciled 26 files on disk as 1 indexed, 2 refused and 23 excluded."+key_fact_source: "capture"+key_fact_date: "2026-10-05"+intent_group: "operating autoindex"commands:- cmd: "xerj autoindex ./mixed --url http://127.0.0.1:9200 --prefix excl --state-dir ./state-excl --dry-run"note: "Print every ignore rule with an exact file count, and write nothing."diff --git a/content/compare/xerj-vs-ast-grep.md b/content/compare/xerj-vs-ast-grep.mdindex 92bdeb097..620d5c83c 100644--- a/content/compare/xerj-vs-ast-grep.md+++ b/content/compare/xerj-vs-ast-grep.md@@ -7,18 +7,26 @@ cluster: "Comparison: code retrieval"question: "ast-grep vs a code index for an agent?"intent: "comparison"published: "2026-08-22"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, run `xerj autoindex ./repo --prefix code --state-dir ./state-code`, POST a match on defs for the function you are about to change to /code-*/_search and read its declaration site from the returned ax_path, apply the structural rewrite with ast-grep, then re-run the identical autoindex command and confirm the same defs query returns the new shape."+answer: "Should an agent use ast-grep or a code index? Use both. ast-grep matches and rewrites code by syntax pattern, and XERJ rewrites nothing. XERJ answers where a symbol is defined and what its contract says across a tree it already indexed. No head-to-head was run, and none is needed to split these jobs."+key_fact: "ast-grep has 16,288 GitHub stars and released 0.51.0 on 2026-10-15."+key_fact_source: "https://github.com/ast-grep/ast-grep"+key_fact_date: "2026-10-19"+intent_group: "code search for agents"+queries:+ - "tree-sitter code search CLI"+ - "structural code search for agents"commands:- cmd: "xerj autoindex ./repo --prefix code --state-dir ./state-code"note: "Build the index that answers where a symbol is defined, once per tree."- cmd: "curl -s -XPOST 'http://127.0.0.1:9200/code-*/_search' -H 'content-type: application/json' -d '{\"query\":{\"match\":{\"defs\":\"parse_config\"}},\"_source\":[\"ax_path\"],\"size\":20}'"note: "The definition query, language-independent, read from the returned hits."- cmd: "xerj mcp --url http://127.0.0.1:9200"- note: "Serve the 10 tools an agent calls before it decides what to change. Start the node first; this command does not start one."+ note: "Serve the 17 tools an agent calls before it decides what to change. Start the node first; this command does not start one."links_out:- "syntax-aware-code-search-refactoring"- "code-search-mcp-for-claude-code"@@ -45,7 +53,7 @@ faq:- q: "Can XERJ rewrite code?"a: "No. XERJ performs no abstract syntax tree rewriting and no codemod of any kind. It returns passages and paths, and you change the file."- q: "What does XERJ extract from code?"- a: "Definitions. Each code document carries a defs field and a symbols list with names, kinds and line numbers, across 34 languages."+ a: "Definitions. Each code document carries a defs field and a symbols list with names, kinds and line numbers, across 36 languages."- q: "Does ast-grep keep an index?"a: "No. The project states that it builds a syntax tree in memory for each query and does not support offline indexing."- q: "Which one does an agent call first?"@@ -90,7 +98,7 @@ XERJ pays that cost once:xerj autoindex ./repo --prefix code --state-dir ./state-code```-After that, a code document carries `title`, `language`, a `defs` field with one line per definition, a `symbols` list with names, kinds and line numbers, and the full body. One query finds where a symbol is defined, and it is the same query in every one of 34 languages.+After that, a code document carries `title`, `language`, a `defs` field with one line per definition, a `symbols` list with names, kinds and line numbers, and the full body. One query finds where a symbol is defined, and it is the same query in every one of 36 languages.```json{ "query": { "match": { "defs": "parse_config" } }, "_source": ["ax_path"] }diff --git a/content/compare/xerj-vs-docfetcher.md b/content/compare/xerj-vs-docfetcher.mdindex 1068103fd..1211cb7a2 100644--- a/content/compare/xerj-vs-docfetcher.md+++ b/content/compare/xerj-vs-docfetcher.md@@ -7,11 +7,18 @@ cluster: "Comparison: desktop search"question: "What is a free DocFetcher alternative that an agent can call?"intent: "comparison"published: "2026-08-22"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent on a Windows or Linux workstation with a documents folder. Read https://xerj.org/llms.txt, start a local XERJ node, run xerj autoindex on the folder, read the data map, then answer the user question with a match_phrase query that cites the ax_path of every hit."+answer: "What is a free DocFetcher alternative that an agent can call? XERJ: a search engine a program calls over HTTP or MCP. DocFetcher stays the better desktop GUI: it reads Outlook PST files and nested archives, and its portable version carries the index on a USB drive. This is a capability comparison; no benchmark was run."+key_fact: "DocFetcher's download page lists version 1.1.27 under the Eclipse Public License."+key_fact_source: "https://docfetcher.sourceforge.io/download/"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "desktop search alternative for agents"commands:- cmd: "xerj autoindex ./Documents --url http://127.0.0.1:9200 --prefix docs --progress plain"note: "Index the documents folder. No configuration file and no mapping are needed."@@ -91,7 +98,7 @@ The command takes no configuration file and no mapping.The node answers the Elasticsearch REST API. `xerj autoindex map` prints a data map of what the folder became. An agent reads that map, then names a real index and a real field.-`xerj mcp` is a stdio MCP server in the same binary. It serves 10 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.+`xerj mcp` is a stdio MCP server in the same binary. It serves 17 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.XERJ is single-node. There is no replication and no failover. The default embedder is lexical feature hashing, not a neural model, and neural retrieval is opt-in through `--embed-mode neural`.@@ -111,7 +118,7 @@ Every row is a documented capability of each tool. No row is a measured result.| automatic index updates | yes, while the application runs | rerun `xerj autoindex` || format detection | file extension, with a regex option | content sniffing per family || HTTP query API | not in the free application | yes, Elasticsearch REST API |-| MCP server for an agent | none | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | none | yes, `xerj mcp`, 17 tools || catalog of refused files | index report in the GUI | `autoindex-catalog`, one reason per file || agent memory in the engine | none | yes, `/_memory/{namespace}` || license | Eclipse Public License | Apache-2.0 |diff --git a/content/compare/xerj-vs-elasticsearch-local.md b/content/compare/xerj-vs-elasticsearch-local.mdindex 97a87e4e0..f37cd3bcf 100644--- a/content/compare/xerj-vs-elasticsearch-local.md+++ b/content/compare/xerj-vs-elasticsearch-local.md@@ -1,5 +1,5 @@----title: "XERJ vs Elasticsearch run on one machine"+title: "Elasticsearch-compatible engine that isn't Elasticsearch"h1: "Is there an Elasticsearch-compatible engine that isn't Elasticsearch?"description: "The published board is 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4. All 4 losses are read p99 under a write flood."slug: "xerj-vs-elasticsearch-local"@@ -12,6 +12,15 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start one XERJ node, index a folder of logs with xerj autoindex, send the same Elasticsearch query DSL you would send to Elasticsearch 8.x, and read the four published read-under-write losses before you recommend either engine."+answer: "Is there an Elasticsearch-compatible engine that isn't Elasticsearch? XERJ speaks the Elasticsearch REST API from one binary. One published board measured both on one host: 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4 at 100,000 documents. XERJ is single-node only."+key_fact: "Elasticsearch has 78,319 GitHub stars and its latest release is v9.5.5 (2026-10-06); the board was measured against 8.13.4."+key_fact_source: "https://github.com/elastic/elasticsearch"+key_fact_date: "2026-10-19"+intent_group: "search engine alternatives"+queries:+ - "elasticsearch compatible lightweight server"+ - "self-hosted Elasticsearch alternative single binary Rust MCP"+ - "opensearch alternative low memory"commands:- cmd: "xerj --insecure --data-dir ./xerj-data"note: "Start one node. There is no JVM and no container runtime on this path."diff --git a/content/compare/xerj-vs-houdahspot.md b/content/compare/xerj-vs-houdahspot.mdindex 4d3035ca2..e1c198dbd 100644--- a/content/compare/xerj-vs-houdahspot.md+++ b/content/compare/xerj-vs-houdahspot.md@@ -7,11 +7,18 @@ cluster: "Comparison: desktop search"question: "HoudahSpot vs a local search engine I can script?"intent: "comparison"published: "2026-08-22"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent that must query a folder on a Mac without a person driving a GUI. Read https://xerj.org/llms.txt, start a local XERJ node, run xerj autoindex on the folder, read the data map, then answer over HTTP or through xerj mcp and cite the ax_path of every file you used."+answer: "HoudahSpot or a local search engine I can script? HoudahSpot is a power-user front end for the Mac's own Spotlight index, with hundreds of attribute filters and saved templates. XERJ is a folder index a program calls over HTTP or MCP. No head-to-head was run, and nothing on this page was tested on macOS."+key_fact: "XERJ's tree-sitter registry covers 36 languages, one of the extractor families a Spotlight importer does not provide."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/code.rs"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "desktop search alternative for agents"commands:- cmd: "xerj autoindex ./documents --url http://127.0.0.1:9200 --prefix docs --progress plain"note: "Index the folder. The command takes no configuration file and no mapping."@@ -44,7 +51,7 @@ faq:- q: "HoudahSpot vs a local search engine I can script?"a: "HoudahSpot is a GUI over the Mac's metadata store, scriptable through AppleScript. XERJ is a node that answers HTTP and MCP directly, so a program calls it without a wrapper."- q: "What's better than HoudahSpot if I want an API for an agent?"- a: "An engine with an API. XERJ answers the Elasticsearch REST API and serves 10 MCP tools from the same binary, so the agent sends a query rather than driving an interface."+ a: "An engine with an API. XERJ answers the Elasticsearch REST API and serves 17 MCP tools from the same binary, so the agent sends a query rather than driving an interface."- q: "Advanced Mac file search that a coding agent can call?"a: "Index the folder with `xerj autoindex` and attach it with `xerj mcp`. The agent then gets cited passages with a file path on every hit."- q: "Did you compare XERJ and HoudahSpot head to head?"@@ -91,7 +98,7 @@ XERJ is a single Rust binary that runs one search node. `xerj autoindex <folder>The streaming extractors cover JSON and JSONL, CSV with dialect sniffing, structured logs, `sqldump` files, SQLite, PDF, DOCX, HTML, XML, YAML, plain text and gzip variants of those. XERJ builds its own index. It does not read the operating system's.-The node answers the Elasticsearch REST API, and `xerj autoindex map` prints a data map of what the folder became. The `xerj mcp` subcommand is a stdio MCP server in the same binary, and it serves 10 tools against a running node.+The node answers the Elasticsearch REST API, and `xerj autoindex map` prints a data map of what the folder became. The `xerj mcp` subcommand is a stdio MCP server in the same binary, and it serves 17 tools against a running node.XERJ is single-node, with no replication and no failover. The default embedder is lexical feature hashing rather than a neural model; neural retrieval is opt-in through `--embed-mode neural`. There is no OCR.@@ -110,7 +117,7 @@ Every row is a documented capability of each tool. **No row is a measured result| multiple search folders, excluded folders | yes | one folder per run, plus ignore rules || scripting surface | AppleScript, launcher integrations | Elasticsearch REST API and MCP || HTTP query API | not advertised | yes |-| MCP server for an agent | none | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | none | yes, `xerj mcp`, 17 tools || typed columns from a CSV, a `sqldump` file or SQLite | not advertised | yes, a dataset per file shape || per-file refusal reason | not advertised | `autoindex-catalog`, one reason per file || agent memory in the engine | none | yes, `/_memory/{namespace}` |diff --git a/content/compare/xerj-vs-khoj.md b/content/compare/xerj-vs-khoj.mdindex c661bd26e..7ce993a4d 100644--- a/content/compare/xerj-vs-khoj.md+++ b/content/compare/xerj-vs-khoj.md@@ -7,18 +7,25 @@ cluster: "Comparison: personal search"question: "What's a simpler alternative to Khoj if I only need search and memory?"intent: "comparison"published: "2026-08-22"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local node with `xerj --insecure --data-dir ./xerj-data`, run `xerj autoindex ./my-docs --prefix docs --state-dir ./state-docs`, register `xerj mcp --url http://127.0.0.1:9200` as an MCP server in the agent host you already run, then answer the user question with one xerj_search call and cite the ax_path of every hit. Report how many services are running when you finish."+answer: "What's a simpler alternative to Khoj if I only need search and memory? XERJ: the search and memory engine that sits under an agent you already run. Khoj is a whole application with chat, custom agents, scheduled research, voice, image generation and clients from Obsidian to WhatsApp. No head-to-head was run."+key_fact: "Khoj has 37,752 GitHub stars, is AGPL-3.0, and its latest release is 2.0.0-beta.28 (2026-03-26)."+key_fact_source: "https://github.com/khoj-ai/khoj"+key_fact_date: "2026-10-19"+intent_group: "agent memory"+queries:+ - "memory layer for AI agents without vector database"commands:- cmd: "xerj --insecure --data-dir ./xerj-data"note: "One process. No database server and no model download are part of this step."- cmd: "xerj autoindex ./my-docs --prefix docs --state-dir ./state-docs"note: "PDF, DOCX, markdown and plain text are read where they sit."- cmd: "xerj mcp --url http://127.0.0.1:9200"- note: "Attach the running node to the agent you already run. This stdio MCP server serves 10 tools and starts no node of its own."+ note: "Attach the running node to the agent you already run. This stdio MCP server serves 17 tools and starts no node of its own."links_out:- "local-embeddings-without-openai-api"- "give-chatgpt-claude-local-file-access"@@ -107,7 +114,7 @@ Read that plainly: on the shipped default, Khoj's retrieval understands a paraphKhoj can connect to a Model Context Protocol server built by somebody else, which makes it a client of that ecosystem. Its documentation does not describe Khoj exposing an MCP server of its own, and it does expose an HTTP API with key or bearer authentication for third-party applications.-XERJ sits on the other side of that line. `xerj mcp` is a stdio MCP server in the same binary, serving 10 tools, and `/_memory/{ns}` gives an agent namespaced memory in the engine.+XERJ sits on the other side of that line. `xerj mcp` is a stdio MCP server in the same binary, serving 17 tools, and `/_memory/{ns}` gives an agent namespaced memory in the engine.## The limits you inherit with XERJdiff --git a/content/compare/xerj-vs-localsynapse.md b/content/compare/xerj-vs-localsynapse.mdindex c59a184fe..483a8866e 100644--- a/content/compare/xerj-vs-localsynapse.md+++ b/content/compare/xerj-vs-localsynapse.md@@ -7,18 +7,26 @@ cluster: "Comparison: local MCP search"question: "What's a local MCP search engine for Claude?"intent: "comparison"published: "2026-08-22"-updated: "2026-10-03"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local node with `xerj --insecure --data-dir ./xerj-data`, run `xerj autoindex ./work --prefix work --state-dir ./state-work` on one chosen folder rather than a whole drive, attach it with `xerj mcp --url http://127.0.0.1:9200`, then answer the user question with an Elasticsearch DSL query and report every file the run refused together with the reason it gave."+answer: "What's a local MCP search engine for Claude? Two candidates: LocalSynapse wins the desktop experience, whole-drive indexing and mail shapes beyond mbox and eml. XERJ wins data files, Excel sheets read as typed tables, and the Elasticsearch query surface. No head-to-head was run for this comparison."+key_fact: "LocalSynapse released v2.21.0 on 2026-10-16; its GitHub repository hosts release artifacts and had 10 stars."+key_fact_source: "https://github.com/LocalSynapse/LocalSynapse"+key_fact_date: "2026-10-19"+intent_group: "Find the right tool"+queries:+ - "mcp server search local files"+ - "local search engine for AI agents MCP server BM25"commands:- cmd: "xerj --insecure --data-dir ./xerj-data"note: "Start one node. There is no desktop window and no installer step."- cmd: "xerj autoindex ./work --prefix work --state-dir ./state-work"note: "One folder at a time, chosen by you, rather than a whole drive."- cmd: "xerj mcp --url http://127.0.0.1:9200"- note: "Attach the running node over stdio MCP. Same binary, 10 tools, no desktop window."+ note: "Attach the running node over stdio MCP. Same binary, 17 tools, no desktop window."links_out:- "give-chatgpt-claude-local-file-access"- "code-search-mcp-for-claude-code"@@ -47,7 +55,7 @@ faq:- q: "Can XERJ read a spreadsheet?"a: "Yes, since v1.0.0-rc.81. Each .xlsx sheet becomes its own dataset with one record per row and typed fields, and a .pptx deck becomes one record per slide. A sheet is read as one table, merged cells are not expanded, and legacy .xls must be saved as .xlsx first."- q: "How many MCP tools does each side expose?"- a: "LocalSynapse documents four. XERJ serves 10 through xerj mcp, including memory tools."+ a: "LocalSynapse documents four. XERJ serves 17 through xerj mcp, including memory tools."- q: "Is either one open source?"a: "XERJ is Apache-2.0 with published source. LocalSynapse is Apache-2.0 but its repository says the source tree is no longer published from version 2.15.0."- q: "Is there a measured comparison on this page?"@@ -80,7 +88,7 @@ The list holds JSON and JSONL, CSV with dialect detection, structured logs, SQLThe data end of that list is where the two products part company. A SQLite database, a semicolon CSV with a decimal comma, and a multi-gigabyte SQL export are shapes a document-first indexer usually skips.-Code is the other one. Each code document carries a `defs` field and a `symbols` list with names, kinds and line numbers, across 34 languages.+Code is the other one. Each code document carries a `defs` field and a `symbols` list with names, kinds and line numbers, across 36 languages.## Two different answers to "how does the agent ask?"@@ -88,7 +96,7 @@ LocalSynapse documents an MCP server over stdio that opens no network port, withXERJ answers over the Elasticsearch REST API. An agent writes the query DSL it already knows: `match_phrase`, `terms`, `range`, aggregations and `_source` narrowing.-`xerj mcp` serves 10 tools over stdio on top of that, and `/_memory/{ns}` gives an agent namespaced memory in the engine.+`xerj mcp` serves 17 tools over stdio on top of that, and `/_memory/{ns}` gives an agent namespaced memory in the engine.Pick the surface that matches your caller. A small tool list is easier for a simple agent, and a query language is more useful for one that asks precise questions.diff --git a/content/compare/xerj-vs-meilisearch.md b/content/compare/xerj-vs-meilisearch.mdindex cd408a19b..f256115e1 100644--- a/content/compare/xerj-vs-meilisearch.md+++ b/content/compare/xerj-vs-meilisearch.md@@ -7,11 +7,18 @@ cluster: "Comparison: search engines"question: "What's a local alternative to Meilisearch that indexes a folder by itself?"intent: "comparison"published: "2026-08-22"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a local node with `xerj --insecure --data-dir ./xerj-data`, run `xerj autoindex ./docs-folder --prefix docs --state-dir ./state-docs` against the raw folder, then POST an explicit fuzzy query on body to /docs-*/_search and report the hits. Also report how many documents you had to build and POST by hand before the first query."+answer: "What's a local alternative to Meilisearch that indexes a folder by itself? XERJ reads a folder of mixed files with one command, where Meilisearch expects you to build and POST the documents. Meilisearch wins typo-tolerant instant search, and its own defaults document that win. No head-to-head was run."+key_fact: "Meilisearch has 59,612 GitHub stars and released v1.55.0 on 2026-10-12."+key_fact_source: "https://github.com/meilisearch/meilisearch"+key_fact_date: "2026-10-19"+intent_group: "search engine alternatives"+queries:+ - "meilisearch alternative local"commands:- cmd: "xerj --insecure --data-dir ./xerj-data"note: "Start one node. No document array is needed yet."@@ -128,7 +135,7 @@ Choose Meilisearch when you want a managed plan. XERJ has none.Choose XERJ when the corpus is a folder on a disk and nobody has built a pipeline for it. One command turns mixed formats into typed indices.-Choose XERJ when the caller is an agent rather than a person. The same binary also holds namespaced agent memory and an MCP server that serves 10 tools.+Choose XERJ when the caller is an agent rather than a person. The same binary also holds namespaced agent memory and an MCP server that serves 17 tools.Choose XERJ when the files hold shapes Meilisearch never accepts. A SQLite database, a hostile CSV with a decimal comma and a folder of DOCX contracts all qualify.diff --git a/content/compare/xerj-vs-obsidian-omnisearch.md b/content/compare/xerj-vs-obsidian-omnisearch.mdindex 0ffbeaae9..0a80c5337 100644--- a/content/compare/xerj-vs-obsidian-omnisearch.md+++ b/content/compare/xerj-vs-obsidian-omnisearch.md@@ -7,11 +7,18 @@ cluster: "Comparison: notes and vaults"question: "How do I search an Obsidian vault from outside Obsidian?"intent: "comparison"published: "2026-08-22"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent whose user has closed Obsidian. Read https://xerj.org/llms.txt, start a node outside the vault with `xerj --insecure --data-dir ./xerj-data`, run `xerj autoindex ./MyVault --prefix vault --state-dir ./state-vault`, then POST a match_phrase on body for a phrase that exists only inside a PDF or DOCX attachment and report the ax_path of every hit without opening Obsidian."+answer: "How do I search an Obsidian vault from outside Obsidian? Index the vault folder with XERJ; it reads it with Obsidian closed and answers an agent. Inside Obsidian, Omnisearch wins: an instant search interface, BM25 ranking, and PDFs and images through the Text Extractor plugin. No head-to-head was run."+key_fact: "Omnisearch has 2,169 GitHub stars, is GPL-3.0, and released 1.31.0 on 2026-09-05."+key_fact_source: "https://github.com/scambier/obsidian-omnisearch"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "search markdown notes MCP server"commands:- cmd: "xerj --insecure --data-dir ./xerj-data"note: "Start one node outside the vault folder, so the node never indexes its own storage."@@ -90,7 +97,7 @@ The Omnisearch README points at a third-party MCP server that detects OmnisearchThe difference is what it depends on. That route needs Obsidian running and the local HTTP server enabled.-`xerj mcp` is a stdio MCP server in the same binary as the engine. It serves 10 tools, and it needs no editor at all.+`xerj mcp` is a stdio MCP server in the same binary as the engine. It serves 17 tools, and it needs no editor at all.## What XERJ reads in a vault, and howdiff --git a/content/compare/xerj-vs-pagefind.md b/content/compare/xerj-vs-pagefind.mdindex 741ae3ba2..c80716bff 100644--- a/content/compare/xerj-vs-pagefind.md+++ b/content/compare/xerj-vs-pagefind.md@@ -7,11 +7,16 @@ cluster: "Comparison: site and export search"question: "Pagefind vs indexing a local HTML dump for an agent?"intent: "comparison"published: "2026-08-22"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent handed a folder of saved HTML pages. Read https://xerj.org/llms.txt, start a node with `xerj --insecure --data-dir ./xerj-data`, run `xerj autoindex ./site-export --prefix site --state-dir ./state-site`, then POST a match_phrase on body to /site-*/_search and report which saved page carries the phrase, plus any PDF sitting beside the HTML that also matched."+answer: "Pagefind or a local index for a folder of saved HTML? Pagefind wins search on a built static website: no server, a chunked index and a small download for the visitor. XERJ wins when an agent must query a saved HTML export on disk beside the PDFs next to it. No head-to-head was run."+key_fact: "Pagefind has 5,519 GitHub stars, is MIT-licensed, and released v1.5.2 on 2026-04-12."+key_fact_source: "https://github.com/Pagefind/pagefind"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"commands:- cmd: "xerj --insecure --data-dir ./xerj-data"note: "Start one node. Pagefind needs no node at all, which is its whole point."@@ -84,7 +89,7 @@ The command reads a content signature rather than the file extension. It infersThirteen families are covered. The list holds HTML, plain text, PDF, DOCX and CSV. It also holds JSON and JSONL, structured logs, SQL exports, SQLite, XML, YAML, code and gzip variants.-The result is queryable over the Elasticsearch REST API, and `xerj mcp` serves 10 tools to an agent over stdio. A `match_phrase` query returns the file path and the matching passage rather than the whole page.+The result is queryable over the Elasticsearch REST API, and `xerj mcp` serves 17 tools to an agent over stdio. A `match_phrase` query returns the file path and the matching passage rather than the whole page.## What XERJ is notdiff --git a/content/compare/xerj-vs-recoll.md b/content/compare/xerj-vs-recoll.mdindex 88c5c8ffd..3aaa64ccb 100644--- a/content/compare/xerj-vs-recoll.md+++ b/content/compare/xerj-vs-recoll.md@@ -7,11 +7,19 @@ cluster: "Comparison: desktop search"question: "What is the best local desktop search for a folder of PDFs and docs?"intent: "comparison"published: "2026-08-22"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent with a folder of PDFs and Word documents. Read https://xerj.org/llms.txt, start a local XERJ node, run xerj autoindex on the folder, read the data map, then answer the user question with a match_phrase query and cite the ax_path of every file you used."+answer: "What is the best local desktop search for a folder of PDFs and docs? For a person at a desk, Recoll: a GUI, email folders and attachments, OCR hooks and open-at-page. For an agent, XERJ, a search engine called over HTTP or MCP. No head-to-head benchmark was run; this page compares documented capabilities."+key_fact: "XERJ reads at most 100,000 pages per PDF and runs no OCR; Recoll's OCR goes through tesseract or ABBYY FineReader."+key_fact_source: "engine/crates/xerj-autoindex/src/resources.rs"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "desktop search alternative for agents"+ - "index pdf folder full text search offline"commands:- cmd: "xerj autoindex ./documents --url http://127.0.0.1:9200 --prefix docs --progress plain --dry-run"note: "Read the planned datasets for the folder before anything is written."@@ -52,7 +60,7 @@ faq:- q: "Is Recoll enough for AI agents or do I need an API?"a: "Recoll is enough if you write the wrapper. It answers on the command line through recollq and through a Python API, so an agent can call it through a subprocess you maintain. XERJ answers HTTP and MCP with no wrapper."- q: "How do I search my documents folder from Claude or ChatGPT?"- a: "Index the folder with `xerj autoindex`, then attach the folder to the agent through `xerj mcp`, a stdio MCP server that serves 10 tools against a running node."+ a: "Index the folder with `xerj autoindex`, then attach the folder to the agent through `xerj mcp`, a stdio MCP server that serves 17 tools against a running node."- q: "Did you run a head-to-head benchmark between XERJ and Recoll?"a: "No. No shared corpus was frozen and no recall or timing numbers were measured, so this page publishes documented capabilities and no win counts."- q: "Which tool indexes email, mbox and attachments?"@@ -93,7 +101,7 @@ The node answers the Elasticsearch REST API. A `match_phrase` query and a filterAn agent reads that map first. It then names a real index and a real field in the query.-`xerj mcp` is a stdio MCP server in the same binary. It serves 10 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.+`xerj mcp` is a stdio MCP server in the same binary. It serves 17 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.XERJ is single-node. There is no replication and no failover. The index is as durable as the one host it lives on.@@ -114,7 +122,7 @@ Every row is a documented capability of each tool. No row is a measured result.| format detection | file name and MIME configuration | content sniffing per family || helper programs on the host | many handlers are external | none, the binary parses in process || HTTP query API | not in the core application | yes, Elasticsearch REST API |-| MCP server for an agent | not in the core application | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | not in the core application | yes, `xerj mcp`, 17 tools || catalog of refused files | index failures are reported | `autoindex-catalog`, one reason per file || agent memory in the engine | no | yes, `/_memory/{namespace}` |@@ -148,7 +156,7 @@ Choose Elasticsearch instead when the documents must live on more than one host.Choose XERJ when the caller is a program. An agent that speaks HTTP or MCP needs no wrapper and no subprocess protocol.-`xerj mcp` serves 10 tools. A coding agent can start the node itself.+`xerj mcp` serves 17 tools. A coding agent can start the node itself.Choose XERJ when the folder is mixed. Format detection reads content, not the file extension. A CSV file with the wrong file extension still lands in a typed dataset.diff --git a/content/compare/xerj-vs-ripgrep-all.md b/content/compare/xerj-vs-ripgrep-all.mdindex 7734cc4d5..2ed371435 100644--- a/content/compare/xerj-vs-ripgrep-all.md+++ b/content/compare/xerj-vs-ripgrep-all.md@@ -7,11 +7,18 @@ cluster: "Comparison: desktop search"question: "How do I grep PDFs and Word docs from the command line?"intent: "comparison"published: "2026-08-22"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent with a folder of PDFs and Word documents. Read https://xerj.org/llms.txt, decide between a one-shot rga search and an index, then start a local XERJ node, run xerj autoindex on the folder and answer with a match_phrase query that cites the ax_path of every hit."+answer: "How do I grep PDFs and Word docs from the command line? For one question today, ripgrep-all: it converts PDFs and Office files as it goes, walks into archives, and needs no daemon or index. For an agent asking many questions, XERJ indexes the folder once. No head-to-head benchmark was run."+key_fact: "ripgrep-all has 9,883 GitHub stars and its latest release is v0.10.10 (2025-11-09)."+key_fact_source: "https://github.com/phiresky/ripgrep-all"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "grep pdf and docx from command line"commands:- cmd: "xerj autoindex ./documents --url http://127.0.0.1:9200 --prefix docs --progress plain"note: "Index the folder once, so later questions do not parse the PDFs again."@@ -102,7 +109,7 @@ The command takes no configuration file and no mapping. It also needs no helperThe node answers the Elasticsearch REST API. `xerj autoindex map` prints a data map of what the folder became. An agent reads that map, then names a real index and a real field.-`xerj mcp` is a stdio MCP server in the same binary. It serves 10 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.+`xerj mcp` is a stdio MCP server in the same binary. It serves 17 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.XERJ is single-node. There is no replication and no failover. The default embedder is lexical feature hashing, not a neural model, and neural retrieval is opt-in through `--embed-mode neural`.@@ -124,7 +131,7 @@ Every row is a documented capability of each tool. No row is a measured result.| ranking of results | none, matches in file order | BM25 over the extracted text || filter by file family or path | shell globs and ripgrep flags | keyword fields, `ax_format` and `ax_path` || HTTP query API | none | yes, Elasticsearch REST API |-| MCP server for an agent | none | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | none | yes, `xerj mcp`, 17 tools || catalog of refused files | messages on standard error | `autoindex-catalog`, one reason per file || agent memory in the engine | none | yes, `/_memory/{namespace}` |@@ -158,7 +165,7 @@ Choose Elasticsearch instead when the documents must live on more than one host.Choose XERJ when the same folder answers many questions. The parse happens once, and every later query reads the index rather than the PDFs.-Choose XERJ when the caller is a program. An agent that speaks HTTP or MCP needs no wrapper and no output parser. `xerj mcp` serves 10 tools.+Choose XERJ when the caller is a program. An agent that speaks HTTP or MCP needs no wrapper and no output parser. `xerj mcp` serves 17 tools.Choose XERJ when the order of the answers matters. rga returns every match in file order. BM25 puts the best documents first.diff --git a/content/compare/xerj-vs-ripgrep-for-code-agents.md b/content/compare/xerj-vs-ripgrep-for-code-agents.mdindex 13126a3fb..a0cea4565 100644--- a/content/compare/xerj-vs-ripgrep-for-code-agents.md+++ b/content/compare/xerj-vs-ripgrep-for-code-agents.md@@ -1,5 +1,5 @@----title: "XERJ compared with ripgrep for code agents"+title: "ripgrep vs a code index for coding agents: 30 tasks"h1: "Is ripgrep enough for a coding agent, or do I need a code index?"description: "30 disclosed tasks on one 331-file code tree. The two tools agree on 18. ripgrep wins 5 named tasks outright, including a substring inside an identifier."slug: "xerj-vs-ripgrep-for-code-agents"@@ -12,6 +12,15 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, index one code tree with xerj autoindex, then run the same 30 literal, phrase and symbol tasks through ripgrep and through the index, reduce both sides to the set of distinct files, publish every disagreement in both directions, and say which tool you would reach for first."+answer: "Is ripgrep enough for a coding agent, or do I need a code index? Keep ripgrep for one-off questions and add an index when an agent asks one tree many questions. On one 331-file tree the two named the same files on 18 of 30 disclosed tasks, and ripgrep 14.1.1 won 5 outright."+key_fact: "ripgrep has 69,257 GitHub stars and its latest release is 15.2.0 (2026-07-15); the 30-task run used 14.1.1."+key_fact_source: "https://github.com/BurntSushi/ripgrep"+key_fact_date: "2026-10-19"+intent_group: "code search for agents"+queries:+ - "grep vs semantic search for coding agents"+ - "local code search MCP Claude Code fewer tokens than grep"+ - "ripgrep alternative for agents"commands:- cmd: "xerj autoindex ./crates --url http://127.0.0.1:9510 --prefix c07 --state-dir ./state-c07 --progress plain --disable-feedback"note: "Build the index whose cost ripgrep never pays."@@ -117,7 +126,7 @@ The index won on symbol definitions and on analyzed phrases.| T26 | the alternation `(HNSW\|IVF\|PQ)` | 17 files | **24 files** || T18 | the phrase `index not found` | 3 files | **4 files** |-For T22 and T20 ripgrep needs a language-specific regular expression, here `struct\s+Ctx` and `pub\s+async\s+fn\s+run`. XERJ queries the extracted `defs` field, which is language-independent and covers 34 languages with one query.+For T22 and T20 ripgrep needs a language-specific regular expression, here `struct\s+Ctx` and `pub\s+async\s+fn\s+run`. XERJ queries the extracted `defs` field, which is language-independent and covers 36 languages with one query.```shcurl -s -XPOST 'http://127.0.0.1:9510/c07-*/_search' -H 'content-type: application/json' -d '{"query":{"match":{"defs":"Ctx"}},"size":100,"_source":["ax_path"],"track_total_hits":true}'@@ -169,7 +178,7 @@ Choose ripgrep for tiny trees and for one-off questions. Several hundred queries## When the index is worth its cost-Choose the index when an agent asks one tree many questions per session. Choose it when the questions are about symbols rather than bytes. One `defs` query replaces a per-language regular expression and covers 34 languages.+Choose the index when an agent asks one tree many questions per session. Choose it when the questions are about symbols rather than bytes. One `defs` query replaces a per-language regular expression and covers 36 languages.Choose the index when you want structure alongside text. The index carries `language`, `symbol_count`, aggregations and `_source` narrowing. ripgrep returns lines, and lines are all it returns.diff --git a/content/compare/xerj-vs-spotlight.md b/content/compare/xerj-vs-spotlight.mdindex 9c3671454..0eac66859 100644--- a/content/compare/xerj-vs-spotlight.md+++ b/content/compare/xerj-vs-spotlight.md@@ -7,11 +7,18 @@ cluster: "Comparison: desktop search"question: "Spotlight can't find text inside my project files. What else is there?"intent: "comparison"published: "2026-08-22"-updated: "2026-09-26"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent that needs the text inside a folder of project files. Read https://xerj.org/llms.txt, start a local XERJ node, run xerj autoindex on the folder, read the data map, then answer with a match_phrase query and cite the ax_path of every file you used - and do not assume the operating system's own index covers those files."+answer: "Spotlight can't find text inside my project files; what else is there? XERJ indexes a project folder, code and data files included, for an agent to query over HTTP or MCP. Spotlight remains the Mac's zero-setup system index with whole-disk reach and wide metadata. No head-to-head was run, and nothing here was tested on macOS."+key_fact: "XERJ's tree-sitter registry extracts definitions in 36 languages, pinned by a unit test."+key_fact_source: "engine/crates/xerj-autoindex/src/extract/code.rs"+key_fact_date: "2026-10-19"+intent_group: "logs and docs"+queries:+ - "search inside files in a folder"commands:- cmd: "xerj autoindex ./project --url http://127.0.0.1:9200 --prefix proj --progress plain --dry-run"note: "Read the plan, including which files the ignore rules would drop, before anything is written."@@ -41,7 +48,7 @@ faq:- q: "Spotlight can't find text inside my project files. What else is there?"a: "Index the folder yourself. `xerj autoindex` sniffs each file by content and indexes the text, and it does not depend on an importer existing for that file type on your machine."- q: "How do I full-text search a folder on a Mac from an agent?"- a: "Give the agent an index it can call. `xerj autoindex` builds one from the folder and `xerj mcp` serves 10 tools against the running node over stdio, so no subprocess wrapper is needed."+ a: "Give the agent an index it can call. `xerj autoindex` builds one from the folder and `xerj mcp` serves 17 tools against the running node over stdio, so no subprocess wrapper is needed."- q: "Is Spotlight enough for searching PDFs and code?"a: "For a person at a keyboard, often yes, and it is already running. For an agent that needs typed fields, a per-file refusal reason and an HTTP API, it is a different job."- q: "Did you benchmark XERJ against Spotlight?"@@ -82,7 +89,7 @@ The streaming extractors cover JSON and JSONL, CSV with dialect sniffing, structThe node answers the Elasticsearch REST API. A `match_phrase` query and a filter on a keyword field work over plain HTTP. The `xerj autoindex map` command prints a data map of what the folder became, and an agent reads it before naming an index and a field.-`xerj mcp` is a stdio MCP server in the same binary and serves 10 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.+`xerj mcp` is a stdio MCP server in the same binary and serves 17 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.XERJ is single-node. There is no replication and no failover. The default embedder is lexical feature hashing rather than a neural model, and neural retrieval is opt-in through `--embed-mode neural`. There is no OCR.@@ -101,7 +108,7 @@ Every row is a documented capability of each tool. **No row is a measured result| live updates as files change | yes, and `mdfind -live` reports them | rerun `xerj autoindex` || query language | metadata query expressions | Elasticsearch query DSL over HTTP || HTTP query API | not documented for the system store | yes, Elasticsearch REST API |-| MCP server for an agent | none | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | none | yes, `xerj mcp`, 17 tools || typed columns from a CSV or a `sqldump` file | not described in the documentation | yes, a dataset per file shape || per-file refusal reason | not described in the documentation | `autoindex-catalog`, one reason per file || agent memory in the engine | none | yes, `/_memory/{namespace}` |diff --git a/content/compare/xerj-vs-typesense.md b/content/compare/xerj-vs-typesense.mdindex ae9a668fb..66f0eb2a3 100644--- a/content/compare/xerj-vs-typesense.md+++ b/content/compare/xerj-vs-typesense.md@@ -7,11 +7,18 @@ cluster: "Comparison: search engines"question: "Do I need Typesense for an agent to search my docs?"intent: "comparison"published: "2026-08-22"-updated: "2026-08-23"+updated: "2026-10-19"author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent handed a folder of CSV exports, SQLite files and PDFs. Read https://xerj.org/llms.txt, start a node with `xerj --insecure --data-dir ./xerj-data`, run `xerj autoindex ./exports --prefix ex --state-dir ./state-ex`, then POST a terms aggregation on an inferred keyword field to /ex-*/_search and report both the bucket counts and how many files you had to convert to JSON first."+answer: "Do I need Typesense for an agent to search my docs? Not for a folder of mixed files: XERJ reads it with one command, where Typesense expects extracted JSON. Typesense wins faceted product browsing, and its own documentation names that a headline use case. No faceting head-to-head was measured."+key_fact: "Typesense has 27,008 GitHub stars, is GPL-3.0, and released v30.2 on 2026-04-19."+key_fact_source: "https://github.com/typesense/typesense"+key_fact_date: "2026-10-19"+intent_group: "search engine alternatives"+queries:+ - "typesense alternative local"commands:- cmd: "xerj --insecure --data-dir ./xerj-data"note: "Start one node. Nothing has to become JSON first."@@ -108,7 +115,7 @@ The Typesense server is GPL-3.0. XERJ is Apache-2.0. If you plan to embed eitherTypesense Cloud sells a dedicated cluster at a fixed hourly cost rather than charging per document or per search. XERJ ships self-hosted only, with no managed product at all, so a managed plan is a reason to pick Typesense.-Typesense documents conversational search and natural-language search as first-party features. Its documentation index lists no MCP server page, so treat any MCP server for Typesense as a community project until the vendor documents one. XERJ ships `xerj mcp` in the same binary, serving 10 tools.+Typesense documents conversational search and natural-language search as first-party features. Its documentation index lists no MCP server page, so treat any MCP server for Typesense as a community project until the vendor documents one. XERJ ships `xerj mcp` in the same binary, serving 17 tools.## The limits you inherit with XERJdiff --git a/content/compare/xerj-vs-vector-database.md b/content/compare/xerj-vs-vector-database.mdindex 1833e853a..f2ee41960 100644--- a/content/compare/xerj-vs-vector-database.md+++ b/content/compare/xerj-vs-vector-database.md@@ -1,5 +1,5 @@----title: "Search API or Qdrant for agent memory?"+title: "Search API or a vector database for agent memory?"h1: "Should my agent call a search API or stand up Qdrant for persistent memory?"description: "Agent memory lives in the index process XERJ already runs, so no second data service starts. On 8 judged queries hybrid linear fusion scored precision@3 0.4583."slug: "xerj-vs-vector-database"@@ -12,6 +12,14 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start one local XERJ node, store a fact with POST /_memory/{namespace} and read it back with _recall, then index a labeled corpus into the same node and run the same judged queries as BM25, kNN and hybrid RRF. Report every miss, and report whether any second data service had to start."+answer: "Should my agent call a search API or a vector store like Qdrant for memory? Call the search API you already run. XERJ serves agent memory at _memory/{namespace} from the process that serves _search. On 8 judged queries hybrid linear fusion scored precision@3 0.4583. Choose Qdrant for filtered vector search at scale."+key_fact: "Qdrant has 35,143 GitHub stars, is Apache-2.0, and released v1.19.2 on 2026-10-05."+key_fact_source: "https://github.com/qdrant/qdrant"+key_fact_date: "2026-10-19"+intent_group: "agent memory"+queries:+ - "memory layer for AI agents without vector database"+ - "vector database vs full text search"commands:- cmd: "curl -s -XPUT http://127.0.0.1:9200/eval -H 'content-type: application/json' -d '{\"mappings\":{\"properties\":{\"doc_id\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"text\":{\"type\":\"semantic_text\"}}}}'"note: "Create one index that carries both the inverted index and the dense vectors."diff --git a/content/compare/xerj-vs-web-agent-search.md b/content/compare/xerj-vs-web-agent-search.mdindex 3ff0dc346..85f25ef54 100644--- a/content/compare/xerj-vs-web-agent-search.md+++ b/content/compare/xerj-vs-web-agent-search.md@@ -12,13 +12,20 @@ author: "XERJ documentation team"reviewer: "XERJ engineering team"schema_type: "TechArticle"agent_prompt: "Act as a coding agent. Read https://xerj.org/llms.txt, start a node with `xerj --insecure --data-dir ./xerj-data`, run `xerj autoindex ./private-folder --prefix priv --state-dir ./state-priv`, attach it with `xerj mcp --url http://127.0.0.1:9200`, then answer the user question from the indexed files with one xerj_search call, cite the ax_path of every hit, and send no file content to a web search API."+answer: "How do I let an agent search a folder on my laptop instead of crawling the web? Use a local index such as XERJ, which answers about files already on your disk and opens no connection to a website. Exa, Tavily and Firecrawl answer about the public web from a query or a URL. It is a category boundary."+key_fact: "Firecrawl has 193,121 GitHub stars, is AGPL-3.0, and released v2.11.0 on 2026-06-19."+key_fact_source: "https://github.com/firecrawl/firecrawl"+key_fact_date: "2026-10-19"+intent_group: "Find the right tool"+queries:+ - "mcp server search local files"commands:- cmd: "xerj --insecure --data-dir ./xerj-data"note: "Start one local node. Nothing here reaches the public internet."- cmd: "xerj autoindex ./private-folder --prefix priv --state-dir ./state-priv"note: "Read files that are already on this disk. There is no URL input."- cmd: "xerj mcp --url http://127.0.0.1:9200"- note: "Give the agent 10 tools over that folder. Every tool reads the local node, and none of them takes a URL."+ note: "Give the agent 17 tools over that folder. Every tool reads the local node, and none of them takes a URL."links_out:- "give-chatgpt-claude-local-file-access"- "how-xerj-autoindexes-a-folder"@@ -89,7 +96,7 @@ XERJ reads a folder that is already on disk and makes it queryable with one commxerj autoindex ./private-folder --prefix priv --state-dir ./state-priv```-Formats are read from a content signature rather than trusted by extension. The families covered are JSON and JSONL, CSV, structured logs, SQL exports, SQLite, PDF, DOCX, HTML, XML, YAML, plain text, code and gzip variants. An agent then reads the result through `xerj mcp`, a stdio MCP server in the same binary that serves 10 tools.+Formats are read from a content signature rather than trusted by extension. The families covered are JSON and JSONL, CSV, structured logs, SQL exports, SQLite, PDF, DOCX, HTML, XML, YAML, plain text, code and gzip variants. An agent then reads the result through `xerj mcp`, a stdio MCP server in the same binary that serves 17 tools.The default embedder is lexical feature hashing, not neural, so a match on a differently worded question needs `--embed-mode neural`, which is opt-in and CPU-only.diff --git a/landing/answers/agent-memory-without-postgres-qdrant.html b/landing/answers/agent-memory-without-postgres-qdrant.htmlindex 9d830cf06..e081b14db 100644--- a/landing/answers/agent-memory-without-postgres-qdrant.html+++ b/landing/answers/agent-memory-without-postgres-qdrant.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>Agent memory on a laptop, no extra database</title>+<title>Agent memory without Postgres or a vector database</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/agent-memory-without-postgres-qdrant"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="Agent memory on a laptop, no extra database">+<meta property="og:title" content="Agent memory without Postgres or a vector database"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/agent-memory-without-postgres-qdrant"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Agent memory on a laptop, no extra database">+<meta name="twitter:title" content="Agent memory without Postgres or a vector database"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "Agent memory on a laptop, no extra database",+ "headline": "Agent memory without Postgres or a vector database","description": "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.","url": "https://xerj.org/answers/agent-memory-without-postgres-qdrant","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHAT'S A SIMPLE WAY TO GIVE AN AGENT LONG-TERM MEMORY ON MY LAPTOP WITHOUT QDRANT?</div><div class="kicker"><span>ANSWERS · AGENT MEMORY: TOPOLOGY</span></div><h1 class="h1-long">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> xerj mcp exposes 2 memory tools, <code class="inline">xerj_memory_store</code> and <code class="inline">xerj_memory_recall</code>, among the 17 tools a live <code class="inline">tools/list</code> returned. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json">landing/docs/agents/schemas/mcp-tools.json</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Use the node that already holds your index. Agent memory is an endpoint on it: store a fact with <code class="inline">POST /_memory/{namespace}</code> and read it back with <code class="inline">_recall</code>. Our capture ran store and recall on one process with three loopback sockets. Peak resident size was 100,928 kB, and no second data service was running.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -230,6 +235,9 @@ none of postgres/qdrant/redis/weaviate/milvus/chroma/elasticsearch/opensearch is<li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a></li><li><a href="/answers/store-agent-memory-without-llm-call">How do I stop an agent memory store from filling with near-duplicate notes?</a></li><li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a></li>+ <li><a href="/answers/set-mcp-memory-storage-path">How do I set the MCP memory storage path?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/compare/xerj-vs-khoj">What's a simpler alternative to Khoj if I only need search and memory?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/private-agent-memory-namespaces">How do I give two agents private memory on one laptop?</a> <span class="mute">· same intent: agent memory</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/agent-memory-without-postgres-qdrant.md b/landing/answers/agent-memory-without-postgres-qdrant.mdindex 82fcb057d..c8ac70d45 100644--- a/landing/answers/agent-memory-without-postgres-qdrant.md+++ b/landing/answers/agent-memory-without-postgres-qdrant.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/agent-memory-without-postgres-qdrant.md instead -->----title: "Agent memory on a laptop, no extra database"+title: "Agent memory without Postgres or a vector database"canonical: "https://xerj.org/answers/agent-memory-without-postgres-qdrant"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/agent-memory-without-postgres-qdrant.md"---# What's a simple way to give an agent long-term memory on my laptop without Qdrant?+**Short answer** (updated 2026-10-19): 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.++**Key number:** xerj mcp exposes 2 memory tools, `xerj_memory_store` and `xerj_memory_recall`, among the 17 tools a live `tools/list` returned. (as of 2026-10-19; source: [landing/docs/agents/schemas/mcp-tools.json](https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json))+**TL;DR** — Use the node that already holds your index. Agent memory is an endpoint on it: store a fact with `POST /_memory/{namespace}` and read it back with `_recall`. Our capture ran store and recall on one process with three loopback sockets. Peak resident size was 100,928 kB, and no second data service was running.## Agent prompt@@ -125,3 +129,6 @@ No. The default embedder is lexical feature hashing inside the binary, and our c- [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions)- [How do I stop an agent memory store from filling with near-duplicate notes?](/answers/store-agent-memory-without-llm-call)- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database)+- [How do I set the MCP memory storage path?](/answers/set-mcp-memory-storage-path) (same intent: agent memory)+- [What's a simpler alternative to Khoj if I only need search and memory?](/compare/xerj-vs-khoj) (same intent: agent memory)+- [How do I give two agents private memory on one laptop?](/answers/private-agent-memory-namespaces) (same intent: agent memory)diff --git a/landing/answers/ask-questions-about-a-github-repo-without-cloning.html b/landing/answers/ask-questions-about-a-github-repo-without-cloning.htmlindex 80071b667..effae43d8 100644--- a/landing/answers/ask-questions-about-a-github-repo-without-cloning.html+++ b/landing/answers/ask-questions-about-a-github-repo-without-cloning.html@@ -2,6 +2,17 @@<!DOCTYPE html><html lang="en" data-theme="day"><head>+<!-- ga4:begin — generated by scripts/seo/seo_head.py · do not hand-edit -->+<!-- Google tag (gtag.js) -->+<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z77ETCDJYL"></script>+<script>+ window.dataLayer = window.dataLayer || [];+ function gtag(){dataLayer.push(arguments);}+ gtag('js', new Date());++ gtag('config', 'G-Z77ETCDJYL');+</script>+<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Ask questions about a GitHub repo without cloning it</title>diff --git a/landing/answers/audit-php-codebase-with-an-index.html b/landing/answers/audit-php-codebase-with-an-index.htmlindex db11a5d63..eefedd0fa 100644--- a/landing/answers/audit-php-codebase-with-an-index.html+++ b/landing/answers/audit-php-codebase-with-an-index.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I AUDIT A PHP CODEBASE WITH AN INDEX INSTEAD OF GREPPING 1,400 FILES?</div><div class="kicker"><span>ANSWERS · CODE SECURITY</span></div><h1>How do I audit a PHP codebase with an index instead of grepping 1,400 files?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The WordPress core audit covered 1,492 PHP files and about 619k lines, indexed as 11,990 functions. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/docs/case-studies/wordpress-security-audit/README.md">docs/case-studies/wordpress-security-audit/README.md</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Index the codebase as queryable facts, ask for the bug shape, and read only what comes back. The published WordPress core audit spent about 26,000 tokens. Reading the code once is estimated at about 5,200,000. The headline finding is that core is hardened.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -270,6 +275,9 @@<li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a></li><li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a></li><li><a href="/case-studies/wordpress-security-audit">WordPress security audit</a></li>+ <li><a href="/compare/xerj-vs-ripgrep-for-code-agents">Is ripgrep enough for a coding agent, or do I need a code index?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/compare/xerj-vs-ast-grep">ast-grep vs a code index for an agent?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/index-reference-library-for-coding-agent">How do I set up reference coding so the agent retrieves a mechanism before writing code?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/audit-php-codebase-with-an-index.md b/landing/answers/audit-php-codebase-with-an-index.mdindex 845cae372..77cc6e29c 100644--- a/landing/answers/audit-php-codebase-with-an-index.md+++ b/landing/answers/audit-php-codebase-with-an-index.md@@ -2,12 +2,16 @@---title: "Audit a PHP codebase with an index, not grep"canonical: "https://xerj.org/answers/audit-php-codebase-with-an-index"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/audit-php-codebase-with-an-index.md"---# How do I audit a PHP codebase with an index instead of grepping 1,400 files?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The WordPress core audit covered 1,492 PHP files and about 619k lines, indexed as 11,990 functions. (as of 2026-10-19; source: [docs/case-studies/wordpress-security-audit/README.md](https://github.com/xerj-org/xerj/blob/main/docs/case-studies/wordpress-security-audit/README.md))+**TL;DR** — Index the codebase as queryable facts, ask for the bug shape, and read only what comes back. The published WordPress core audit spent about 26,000 tokens. Reading the code once is estimated at about 5,200,000. The headline finding is that core is hardened.## Agent prompt@@ -191,3 +195,6 @@ On recall. Grep's literal recall is perfect and the model's is not: a source at- [I need my agent to find a passage and cite the file, not dump the whole tree. How?](/answers/code-search-mcp-for-claude-code)- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete)- [WordPress security audit](/case-studies/wordpress-security-audit)+- [Is ripgrep enough for a coding agent, or do I need a code index?](/compare/xerj-vs-ripgrep-for-code-agents) (same intent: code search for agents)+- [ast-grep vs a code index for an agent?](/compare/xerj-vs-ast-grep) (same intent: code search for agents)+- [How do I set up reference coding so the agent retrieves a mechanism before writing code?](/answers/index-reference-library-for-coding-agent) (same intent: code search for agents)diff --git a/landing/answers/autoindex-dataset-refused-by-server.html b/landing/answers/autoindex-dataset-refused-by-server.htmlindex a3e3d7041..b9aa50353 100644--- a/landing/answers/autoindex-dataset-refused-by-server.html+++ b/landing/answers/autoindex-dataset-refused-by-server.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>ONE DATASET WAS REFUSED BY THE SERVER. DID I LOSE THE WHOLE INDEX?</div><div class="kicker"><span>ANSWERS · OPERATIONS: EXIT CODES</span></div><h1>One dataset was REFUSED by the server. Did I lose the whole index?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> A forced refusal on a 3-file corpus recorded the CSV dataset's 2 files as junk and still indexed the other dataset. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/autoindex-resilience/refusal-e2e.run1.stderr.txt">benchmarks/autoindex-resilience/refusal-e2e.run1.stderr.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — No. When the server refuses one dataset's mapping, <code class="inline">xerj autoindex</code> records that dataset's files as junk, indexes every other dataset, and exits 3. The terminal line carries <code class="inline">datasets_refused</code> and <code class="inline">files_refused</code>. Only HTTP 400 counts as a refusal. Re-running does not fix it; rebuild under a new prefix after you fix the cause.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -256,6 +261,9 @@ autoindex: 1 of 2 dataset(s) refused, 2 of 3 file(s) not indexed — this run wi<li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a></li><li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a></li><li><a href="/answers/read-autoindex-progress">How do I read autoindex progress?</a></li>+ <li><a href="/answers/autoindex-server-back-pressure-429">The server pushed back with HTTP 429. Did xerj autoindex lose the run?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/autoindex-says-extract-the-archive-first">xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/reindex-taking-forever">Reindexing my files is taking forever. What usually causes that?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/autoindex-dataset-refused-by-server.md b/landing/answers/autoindex-dataset-refused-by-server.mdindex e7e58137d..18ef82a79 100644--- a/landing/answers/autoindex-dataset-refused-by-server.md+++ b/landing/answers/autoindex-dataset-refused-by-server.md@@ -2,12 +2,16 @@---title: "Why did xerj autoindex say a dataset was REFUSED?"canonical: "https://xerj.org/answers/autoindex-dataset-refused-by-server"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/autoindex-dataset-refused-by-server.md"---# One dataset was REFUSED by the server. Did I lose the whole index?+**Short answer** (updated 2026-10-19): 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.++**Key number:** A forced refusal on a 3-file corpus recorded the CSV dataset's 2 files as junk and still indexed the other dataset. (as of 2026-10-19; source: [benchmarks/autoindex-resilience/refusal-e2e.run1.stderr.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/autoindex-resilience/refusal-e2e.run1.stderr.txt))+**TL;DR** — No. When the server refuses one dataset's mapping, `xerj autoindex` records that dataset's files as junk, indexes every other dataset, and exits 3. The terminal line carries `datasets_refused` and `files_refused`. Only HTTP 400 counts as a refusal. Re-running does not fix it; rebuild under a new prefix after you fix the cause.## Agent prompt@@ -163,3 +167,6 @@ The create-index call can succeed before the mapping update is refused. `xerj au- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files)- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete)- [How do I read autoindex progress?](/answers/read-autoindex-progress)+- [The server pushed back with HTTP 429. Did xerj autoindex lose the run?](/answers/autoindex-server-back-pressure-429) (same intent: operating autoindex)+- [xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?](/answers/autoindex-says-extract-the-archive-first) (same intent: operating autoindex)+- [Reindexing my files is taking forever. What usually causes that?](/answers/reindex-taking-forever) (same intent: operating autoindex)diff --git a/landing/answers/autoindex-exit-codes.html b/landing/answers/autoindex-exit-codes.htmlindex 4bb77a177..f471c294a 100644--- a/landing/answers/autoindex-exit-codes.html+++ b/landing/answers/autoindex-exit-codes.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>THE INDEXER EXITED 3 (OR 4). DID IT FAIL?</div><div class="kicker"><span>ANSWERS · OPERATIONS: EXIT CODES</span></div><h1>The indexer exited 3 (or 4). Did it fail?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>What does indexer exit code 3 mean for xerj autoindex? It means success: the run completed and recorded some junk files. Exit 0 is a clean completion, 4 means the estimate exceeded --max-minutes and nothing was indexed, 2 is a usage error, and 1 is an endpoint or journal failure. Only exit 4 asks you a question.</p>+ <p class="key-fact"><strong>Key number:</strong> The decision gate that produces exit 4 defaults to 10 minutes of estimated work (<code class="inline">DEFAULT_MAX_MINUTES</code>). <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/gate.rs">engine/crates/xerj-autoindex/src/gate.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Exit 3 is a success. <code class="inline">xerj autoindex</code> exits 0 when the run completed, and 3 when it completed and recorded junk. Exit 4 means the estimate exceeded <code class="inline">--max-minutes</code> and nothing was indexed. Exit 2 is a usage error, and exit 1 is an endpoint or journal failure. Only 4 is a question.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -300,6 +305,9 @@ error: prepared bulk contained 1 rejected items: {"type":"engine_exception","rea<li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a></li><li><a href="/answers/autoindex-dataset-refused-by-server">One dataset was REFUSED by the server. Did I lose the whole index?</a></li><li><a href="/answers/autoindex-server-back-pressure-429">The server pushed back with HTTP 429. Did xerj autoindex lose the run?</a></li>+ <li><a href="/answers/autoindex-says-extract-the-archive-first">xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/keep-index-current-as-files-change">How do I keep a search index up to date as files change, without re-indexing everything?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/keep-s3-bucket-index-current">How do I keep an index current when the files live in an object store?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/autoindex-exit-codes.md b/landing/answers/autoindex-exit-codes.mdindex d99e9a995..6eeaeb0de 100644--- a/landing/answers/autoindex-exit-codes.md+++ b/landing/answers/autoindex-exit-codes.md@@ -2,12 +2,16 @@---title: "What do the xerj autoindex exit codes mean?"canonical: "https://xerj.org/answers/autoindex-exit-codes"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/autoindex-exit-codes.md"---# The indexer exited 3 (or 4). Did it fail?+**Short answer** (updated 2026-10-19): What does indexer exit code 3 mean for xerj autoindex? It means success: the run completed and recorded some junk files. Exit 0 is a clean completion, 4 means the estimate exceeded --max-minutes and nothing was indexed, 2 is a usage error, and 1 is an endpoint or journal failure. Only exit 4 asks you a question.++**Key number:** The decision gate that produces exit 4 defaults to 10 minutes of estimated work (`DEFAULT_MAX_MINUTES`). (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/gate.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/gate.rs))+**TL;DR** — Exit 3 is a success. `xerj autoindex` exits 0 when the run completed, and 3 when it completed and recorded junk. Exit 4 means the estimate exceeded `--max-minutes` and nothing was indexed. Exit 2 is a usage error, and exit 1 is an endpoint or journal failure. Only 4 is a question.## Agent prompt@@ -229,3 +233,6 @@ Retry nothing on 0 or 3. Re-run with `--approve` on 4. Fix the command line on 2- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files)- [One dataset was REFUSED by the server. Did I lose the whole index?](/answers/autoindex-dataset-refused-by-server)- [The server pushed back with HTTP 429. Did xerj autoindex lose the run?](/answers/autoindex-server-back-pressure-429)+- [xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?](/answers/autoindex-says-extract-the-archive-first) (same intent: operating autoindex)+- [How do I keep a search index up to date as files change, without re-indexing everything?](/answers/keep-index-current-as-files-change) (same intent: operating autoindex)+- [How do I keep an index current when the files live in an object store?](/answers/keep-s3-bucket-index-current) (same intent: operating autoindex)diff --git a/landing/answers/autoindex-says-extract-the-archive-first.html b/landing/answers/autoindex-says-extract-the-archive-first.htmlindex c29d21e7a..241073481 100644--- a/landing/answers/autoindex-says-extract-the-archive-first.html+++ b/landing/answers/autoindex-says-extract-the-archive-first.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>XERJ AUTOINDEX RECORDED MY TAKEOUT .ZIP AS JUNK AND SAID TO EXTRACT IT FIRST. WHY?</div><div class="kicker"><span>ANSWERS · OPERATIONS: EXIT CODES</span></div><h1 class="h1-long">xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> autoindex classifies a file from its first 8,192 bytes (<code class="inline">PREFIX</code> in the sniffer), which is how an archive is recognised by magic bytes rather than by its extension. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/sniff.rs">engine/crates/xerj-autoindex/src/sniff.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — autoindex does not open archives. When it meets a <code class="inline">.zip</code>, <code class="inline">.tgz</code>, <code class="inline">.7z</code>, <code class="inline">.rar</code> or <code class="inline">.xz</code>, it marks the file as junk with a reason that quotes the extraction command, and prints that under the run's summary. The run finishes with exit code 3 and the rest of the folder is indexed. Extract the archive and run the same command on the extracted folder.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -215,6 +220,9 @@ xerj autoindex ~/mail-export --url http://127.0.0.1:9200 --prefix mail --progres<li><a href="/answers/search-gmail-takeout-mbox-locally">I exported my Gmail with Google Takeout. How do I search that mbox file locally?</a></li><li><a href="/answers/autoindex-exit-codes">The indexer exited 3 (or 4). Did it fail?</a></li><li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a></li>+ <li><a href="/answers/autoindex-dataset-refused-by-server">One dataset was REFUSED by the server. Did I lose the whole index?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/autoindex-server-back-pressure-429">The server pushed back with HTTP 429. Did xerj autoindex lose the run?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/read-autoindex-progress">How do I read autoindex progress?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/autoindex-says-extract-the-archive-first.md b/landing/answers/autoindex-says-extract-the-archive-first.mdindex d64e93746..02dccc25d 100644--- a/landing/answers/autoindex-says-extract-the-archive-first.md+++ b/landing/answers/autoindex-says-extract-the-archive-first.md@@ -2,12 +2,16 @@---title: "Why autoindex refuses a .zip and asks you to extract it"canonical: "https://xerj.org/answers/autoindex-says-extract-the-archive-first"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/autoindex-says-extract-the-archive-first.md"---# xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?+**Short answer** (updated 2026-10-19): 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.++**Key number:** autoindex classifies a file from its first 8,192 bytes (`PREFIX` in the sniffer), which is how an archive is recognised by magic bytes rather than by its extension. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/sniff.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/sniff.rs))+**TL;DR** — autoindex does not open archives. When it meets a `.zip`, `.tgz`, `.7z`, `.rar` or `.xz`, it marks the file as junk with a reason that quotes the extraction command, and prints that under the run's summary. The run finishes with exit code 3 and the rest of the folder is indexed. Extract the archive and run the same command on the extracted folder.## Agent prompt@@ -98,3 +102,6 @@ A plain gzip-compressed file is streamed through decompression and sniffed like- [I exported my Gmail with Google Takeout. How do I search that mbox file locally?](/answers/search-gmail-takeout-mbox-locally)- [The indexer exited 3 (or 4). Did it fail?](/answers/autoindex-exit-codes)- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files)+- [One dataset was REFUSED by the server. Did I lose the whole index?](/answers/autoindex-dataset-refused-by-server) (same intent: operating autoindex)+- [The server pushed back with HTTP 429. Did xerj autoindex lose the run?](/answers/autoindex-server-back-pressure-429) (same intent: operating autoindex)+- [How do I read autoindex progress?](/answers/read-autoindex-progress) (same intent: operating autoindex)diff --git a/landing/answers/autoindex-server-back-pressure-429.html b/landing/answers/autoindex-server-back-pressure-429.htmlindex 360fd9546..172e471cb 100644--- a/landing/answers/autoindex-server-back-pressure-429.html+++ b/landing/answers/autoindex-server-back-pressure-429.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>THE SERVER PUSHED BACK WITH HTTP 429. DID XERJ AUTOINDEX LOSE THE RUN?</div><div class="kicker"><span>ANSWERS · OPERATIONS: EXIT CODES</span></div><h1>The server pushed back with HTTP 429. Did xerj autoindex lose the run?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> One bulk request carries at most 10,000 actions (<code class="inline">BULK_MAX_ACTIONS</code>), a fifth of the engine's default limit. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/esclient.rs">engine/crates/xerj-autoindex/src/esclient.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — No. A per-item HTTP 429 is the node shedding load for a moment. <code class="inline">xerj autoindex</code> lowers its bulk concurrency, re-sends only the items the node rejected, and continues. The terminal line then carries <code class="inline">bulk_retries=N</code>. The run exits 1 only after 600 seconds of re-sends that the node never takes, and the same command resumes it.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -260,6 +265,9 @@ error: the server kept rejecting …<li><a href="/answers/read-autoindex-progress">How do I read autoindex progress?</a></li><li><a href="/answers/resume-interrupted-autoindex-run">The indexer died overnight. Do I have to start over?</a></li><li><a href="/answers/autoindex-dataset-refused-by-server">One dataset was REFUSED by the server. Did I lose the whole index?</a></li>+ <li><a href="/answers/autoindex-says-extract-the-archive-first">xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/reindex-taking-forever">Reindexing my files is taking forever. What usually causes that?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/autoindex-server-back-pressure-429.md b/landing/answers/autoindex-server-back-pressure-429.mdindex c732c72fb..03ebee0b2 100644--- a/landing/answers/autoindex-server-back-pressure-429.md+++ b/landing/answers/autoindex-server-back-pressure-429.md@@ -2,12 +2,16 @@---title: "Why does xerj autoindex say the server pushed back (429)?"canonical: "https://xerj.org/answers/autoindex-server-back-pressure-429"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/answers/autoindex-server-back-pressure-429.md"---# The server pushed back with HTTP 429. Did xerj autoindex lose the run?+**Short answer** (updated 2026-10-19): 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.++**Key number:** One bulk request carries at most 10,000 actions (`BULK_MAX_ACTIONS`), a fifth of the engine's default limit. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/esclient.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/esclient.rs))+**TL;DR** — No. A per-item HTTP 429 is the node shedding load for a moment. `xerj autoindex` lowers its bulk concurrency, re-sends only the items the node rejected, and continues. The terminal line then carries `bulk_retries=N`. The run exits 1 only after 600 seconds of re-sends that the node never takes, and the same command resumes it.## Agent prompt@@ -173,3 +177,6 @@ No. A 429 on create-index or put-mapping is the endpoint saying it is busy, not- [How do I read autoindex progress?](/answers/read-autoindex-progress)- [The indexer died overnight. Do I have to start over?](/answers/resume-interrupted-autoindex-run)- [One dataset was REFUSED by the server. Did I lose the whole index?](/answers/autoindex-dataset-refused-by-server)+- [xerj autoindex recorded my Takeout .zip as junk and said to extract it first. Why?](/answers/autoindex-says-extract-the-archive-first) (same intent: operating autoindex)+- [Reindexing my files is taking forever. What usually causes that?](/answers/reindex-taking-forever) (same intent: operating autoindex)+- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files) (same intent: operating autoindex)diff --git a/landing/answers/batch-lookup-cve-ghsa-ids-offline.html b/landing/answers/batch-lookup-cve-ghsa-ids-offline.htmlindex c2edae407..d0d0dbeaf 100644--- a/landing/answers/batch-lookup-cve-ghsa-ids-offline.html+++ b/landing/answers/batch-lookup-cve-ghsa-ids-offline.html@@ -2,6 +2,17 @@<!DOCTYPE html><html lang="en" data-theme="day"><head>+<!-- ga4:begin — generated by scripts/seo/seo_head.py · do not hand-edit -->+<!-- Google tag (gtag.js) -->+<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z77ETCDJYL"></script>+<script>+ window.dataLayer = window.dataLayer || [];+ function gtag(){dataLayer.push(arguments);}+ gtag('js', new Date());++ gtag('config', 'G-Z77ETCDJYL');+</script>+<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Batch lookup of CVE and GHSA IDs offline, with sources</title>diff --git a/landing/answers/catalog-files-with-autoindex-map.html b/landing/answers/catalog-files-with-autoindex-map.htmlindex 08c96315d..246f431b4 100644--- a/landing/answers/catalog-files-with-autoindex-map.html+++ b/landing/answers/catalog-files-with-autoindex-map.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>How do I find out what is in a messy data folder?</title>+<title>Find out what is in a messy data folder before searching</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/catalog-files-with-autoindex-map"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="How do I find out what is in a messy data folder?">+<meta property="og:title" content="Find out what is in a messy data folder before searching"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/catalog-files-with-autoindex-map"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="How do I find out what is in a messy data folder?">+<meta name="twitter:title" content="Find out what is in a messy data folder before searching"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "How do I find out what is in a messy data folder?",+ "headline": "Find out what is in a messy data folder before searching","description": "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.","url": "https://xerj.org/answers/catalog-files-with-autoindex-map","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW SHOULD AN AGENT FIGURE OUT WHAT'S IN A MESSY DATA FOLDER BEFORE SEARCHING?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How should an agent figure out what's in a messy data folder before searching?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Type inference keeps at most 512 fields per dataset (<code class="inline">MAX_FIELDS_PER_DATASET</code>), so a map never lists more than that for one dataset. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/infer/mod.rs">engine/crates/xerj-autoindex/src/infer/mod.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex map</code> prints the catalog that the last run inferred. In our capture the map described 2 datasets from a 6-file folder. Each dataset carried every field with its type, its cardinality, its null share and a ready-to-send query.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -256,6 +261,9 @@<li><a href="/answers/index-multiple-csv-files">I have a directory of CSV exports. How do I query them without opening each one in Excel?</a></li><li><a href="/answers/read-autoindex-progress">How do I read autoindex progress?</a></li><li><a href="/docs/recipes/zero-config-autoindex">Zero-config autoindex</a></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/search-zendesk-ticket-json-export">I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/index-csv-with-many-columns">How do I index a CSV with many columns?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/catalog-files-with-autoindex-map.md b/landing/answers/catalog-files-with-autoindex-map.mdindex 437ed63a1..e48e4b809 100644--- a/landing/answers/catalog-files-with-autoindex-map.md+++ b/landing/answers/catalog-files-with-autoindex-map.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/catalog-files-with-autoindex-map.md instead -->----title: "How do I find out what is in a messy data folder?"+title: "Find out what is in a messy data folder before searching"canonical: "https://xerj.org/answers/catalog-files-with-autoindex-map"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/catalog-files-with-autoindex-map.md"---# How should an agent figure out what's in a messy data folder before searching?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Type inference keeps at most 512 fields per dataset (`MAX_FIELDS_PER_DATASET`), so a map never lists more than that for one dataset. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/infer/mod.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/infer/mod.rs))+**TL;DR** — `xerj autoindex map` prints the catalog that the last run inferred. In our capture the map described 2 datasets from a 6-file folder. Each dataset carried every field with its type, its cardinality, its null share and a ready-to-send query.## Agent prompt@@ -157,3 +161,6 @@ No. A text dataset maps 9 fields and none of them is a date, so no indexed file-- [I have a directory of CSV exports. How do I query them without opening each one in Excel?](/answers/index-multiple-csv-files)- [How do I read autoindex progress?](/answers/read-autoindex-progress)- [Zero-config autoindex](/docs/recipes/zero-config-autoindex)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)+- [I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?](/answers/search-zendesk-ticket-json-export) (same intent: JSONL and data files)+- [How do I index a CSV with many columns?](/answers/index-csv-with-many-columns) (same intent: JSONL and data files)diff --git a/landing/answers/cheap-low-volume-log-search.html b/landing/answers/cheap-low-volume-log-search.htmlindex c597afbdf..8bc637527 100644--- a/landing/answers/cheap-low-volume-log-search.html+++ b/landing/answers/cheap-low-volume-log-search.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>What can I use for low-volume log search?</title>+<title>Search logs locally without ELK: low-volume log search</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/cheap-low-volume-log-search"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="What can I use for low-volume log search?">+<meta property="og:title" content="Search logs locally without ELK: low-volume log search"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/cheap-low-volume-log-search"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="What can I use for low-volume log search?">+<meta name="twitter:title" content="Search logs locally without ELK: low-volume log search"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "What can I use for low-volume log search?",+ "headline": "Search logs locally without ELK: low-volume log search","description": "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.","url": "https://xerj.org/answers/cheap-low-volume-log-search","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHAT CAN I USE FOR LOW-VOLUME LOG SEARCH?</div><div class="kicker"><span>ANSWERS · OPERATIONS: LOW-VOLUME LOGS</span></div><h1>What can I use for low-volume log search?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The page's measured ladder stopped at a 16 MB log corpus, where peak resident memory was about 200 times the corpus size. <span class="mute">(as of 2026-08-23 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ indexes plain-text logs on one node, returns exact error counts, and answered a <code class="inline">level=ERROR</code> filter at p50 0.488 ms on a 16 MB corpus. Memory is the limit, not speed: peak resident memory grew to about 200× the corpus, and the measured ladder stopped at 16 MB.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -249,6 +254,9 @@ error: write catalog: bulk send (request timeout 300s): ... tcp connect error: C<li><a href="/answers/search-gzip-logs-without-zgrep">How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?</a></li><li><a href="/answers/search-kubernetes-pod-logs-on-disk">How do I search Kubernetes pod logs?</a></li><li><a href="/docs/recipes/log-analytics">Log analytics</a></li>+ <li><a href="/compare/xerj-vs-docfetcher">What's a free DocFetcher alternative that an agent can call?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-all-pdfs-in-a-folder">I downloaded a bunch of papers as PDFs. How do I search across them?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-confluence-html-export">How do I search a Confluence export?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/cheap-low-volume-log-search.md b/landing/answers/cheap-low-volume-log-search.mdindex 621eb8092..a8259343a 100644--- a/landing/answers/cheap-low-volume-log-search.md+++ b/landing/answers/cheap-low-volume-log-search.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/cheap-low-volume-log-search.md instead -->----title: "What can I use for low-volume log search?"+title: "Search logs locally without ELK: low-volume log search"canonical: "https://xerj.org/answers/cheap-low-volume-log-search"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/cheap-low-volume-log-search.md"---# What can I use for low-volume log search?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The page's measured ladder stopped at a 16 MB log corpus, where peak resident memory was about 200 times the corpus size. (as of 2026-08-23; source: the captured run documented on this page)+**TL;DR** — XERJ indexes plain-text logs on one node, returns exact error counts, and answered a `level=ERROR` filter at p50 0.488 ms on a 16 MB corpus. Memory is the limit, not speed: peak resident memory grew to about 200× the corpus, and the measured ladder stopped at 16 MB.## Agent prompt@@ -153,3 +157,6 @@ The 3 measured steps stored 1.045, 1.319 and 1.039 bytes per source byte. The ra- [How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?](/answers/search-gzip-logs-without-zgrep)- [How do I search Kubernetes pod logs?](/answers/search-kubernetes-pod-logs-on-disk)- [Log analytics](/docs/recipes/log-analytics)+- [What's a free DocFetcher alternative that an agent can call?](/compare/xerj-vs-docfetcher) (same intent: logs and docs)+- [I downloaded a bunch of papers as PDFs. How do I search across them?](/answers/search-all-pdfs-in-a-folder) (same intent: logs and docs)+- [How do I search a Confluence export?](/answers/search-confluence-html-export) (same intent: logs and docs)diff --git a/landing/answers/check-codebase-index-is-complete.html b/landing/answers/check-codebase-index-is-complete.htmlindex 297fd296f..0d71140e9 100644--- a/landing/answers/check-codebase-index-is-complete.html+++ b/landing/answers/check-codebase-index-is-complete.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>MY CODEBASE INDEXER SAYS INDEXED BUT I DON'T SEE MY CODE. HOW DO I CHECK IT ACTUALLY FINISHED?</div><div class="kicker"><span>ANSWERS · OPERATIONS: COMPLETENESS</span></div><h1 class="h1-long">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Source files above 2 MiB are not parsed for symbols (<code class="inline">CODE_CAP</code>), one of the documented reasons a file can be missing from the code fields. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs">engine/crates/xerj-autoindex/src/extract/code.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Reconcile 4 numbers before you trust an "indexed" status: files on disk, the <code class="inline">--dry-run</code> plan, <code class="inline">xerj autoindex status</code>, and the document count in <code class="inline">_cat/indices</code>. A captured XERJ run turned 64 non-hidden files into a 3-file plan, and every missing file had a named ignore rule.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -246,6 +251,9 @@ autoindex: ignore rules: .gitignore:coverage/ — 1 directory pruned (5 non-hi<li><a href="/answers/index-monorepo-for-agent">How do I stop my agent from reading the whole repo into context?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li><li><a href="/answers/read-autoindex-progress">How do I read autoindex progress?</a></li>+ <li><a href="/answers/audit-php-codebase-with-an-index">How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/index-reference-library-for-coding-agent">How do I set up reference coding so the agent retrieves a mechanism before writing code?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/check-codebase-index-is-complete.md b/landing/answers/check-codebase-index-is-complete.mdindex 230a27136..173050f0c 100644--- a/landing/answers/check-codebase-index-is-complete.md+++ b/landing/answers/check-codebase-index-is-complete.md@@ -2,12 +2,16 @@---title: "How do I check my code index actually finished?"canonical: "https://xerj.org/answers/check-codebase-index-is-complete"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/check-codebase-index-is-complete.md"---# My codebase indexer says indexed but I don't see my code. How do I check it actually finished?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Source files above 2 MiB are not parsed for symbols (`CODE_CAP`), one of the documented reasons a file can be missing from the code fields. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/code.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs))+**TL;DR** — Reconcile 4 numbers before you trust an "indexed" status: files on disk, the `--dry-run` plan, `xerj autoindex status`, and the document count in `_cat/indices`. A captured XERJ run turned 64 non-hidden files into a 3-file plan, and every missing file had a named ignore rule.## Agent prompt@@ -154,3 +158,6 @@ No. Even with bytes=b it returned human-formatted values such as 58.5kb, so read- [How do I stop my agent from reading the whole repo into context?](/answers/index-monorepo-for-agent)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)- [How do I read autoindex progress?](/answers/read-autoindex-progress)+- [How do I audit a PHP codebase with an index instead of grepping 1,400 files?](/answers/audit-php-codebase-with-an-index) (same intent: code search for agents)+- [I need my agent to find a passage and cite the file, not dump the whole tree. How?](/answers/code-search-mcp-for-claude-code) (same intent: code search for agents)+- [How do I set up reference coding so the agent retrieves a mechanism before writing code?](/answers/index-reference-library-for-coding-agent) (same intent: code search for agents)diff --git a/landing/answers/classify-text-from-labelled-history-without-llm.html b/landing/answers/classify-text-from-labelled-history-without-llm.htmlindex 10c1f15a1..6be593c78 100644--- a/landing/answers/classify-text-from-labelled-history-without-llm.html+++ b/landing/answers/classify-text-from-labelled-history-without-llm.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>CAN I ROUTE TICKETS OR FILTER SPAM FROM LABELLED HISTORY, WITHOUT AN LLM CALL?</div><div class="kicker"><span>ANSWERS · DECISIONS AS RETRIEVAL</span></div><h1>Can I route tickets or filter spam from labelled history, without an LLM call?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> SMS spam detection scored 0.983 accuracy with BM25 over 4,000 labelled examples and 1,000 held-out items, k = 10. <span class="mute">(as of 2026-09-18 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/decisions-as-retrieval/results/run-2026-09-18.txt">benchmarks/decisions-as-retrieval/results/run-2026-09-18.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — If you already have labelled examples, you can route and filter text with no LLM or API call. Index the examples, fetch the 10 nearest for each new item, and vote. Measured: 0.933 accuracy on 77-way intent routing and 0.983 on SMS spam. The 0.933 figure needs <code class="inline">--embed-mode neural</code>, which runs one local MiniLM embedding per item; the spam figure is plain BM25, with no model of any kind.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -248,6 +253,9 @@<li><a href="/answers/hybrid-search-quality-measured-ndcg">How much better is hybrid search than BM25? Measured nDCG numbers</a></li><li><a href="/answers/rerank-search-results-calibrated-judge">How do I rerank search results with a relevance judge?</a></li><li><a href="/answers/do-search-embeddings-help">When should I turn on neural embeddings, and when is the lexical default enough?</a></li>+ <li><a href="/answers/local-embeddings-without-openai-api">I want local search that works offline, no cloud embeddings. What are my options?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/vector-database-vs-full-text-search">What's the actual difference between a vector database and full-text search when I have a folder?</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/classify-text-from-labelled-history-without-llm.md b/landing/answers/classify-text-from-labelled-history-without-llm.mdindex 9f0d08404..39cd4f2fd 100644--- a/landing/answers/classify-text-from-labelled-history-without-llm.md+++ b/landing/answers/classify-text-from-labelled-history-without-llm.md@@ -2,12 +2,16 @@---title: "Can I route or spam-filter text without an LLM call?"canonical: "https://xerj.org/answers/classify-text-from-labelled-history-without-llm"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/classify-text-from-labelled-history-without-llm.md"---# Can I route tickets or filter spam from labelled history, without an LLM call?+**Short answer** (updated 2026-10-19): 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.++**Key number:** SMS spam detection scored 0.983 accuracy with BM25 over 4,000 labelled examples and 1,000 held-out items, k = 10. (as of 2026-09-18; source: [benchmarks/decisions-as-retrieval/results/run-2026-09-18.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/decisions-as-retrieval/results/run-2026-09-18.txt))+**TL;DR** — If you already have labelled examples, you can route and filter text with no LLM or API call. Index the examples, fetch the 10 nearest for each new item, and vote. Measured: 0.933 accuracy on 77-way intent routing and 0.983 on SMS spam. The 0.933 figure needs `--embed-mode neural`, which runs one local MiniLM embedding per item; the spam figure is plain BM25, with no model of any kind.## Agent prompt@@ -139,3 +143,6 @@ No. XERJ did not run any judge model on these datasets and claims nothing about- [How much better is hybrid search than BM25? Measured nDCG numbers](/answers/hybrid-search-quality-measured-ndcg)- [How do I rerank search results with a relevance judge?](/answers/rerank-search-results-calibrated-judge)- [When should I turn on neural embeddings, and when is the lexical default enough?](/answers/do-search-embeddings-help)+- [I want local search that works offline, no cloud embeddings. What are my options?](/answers/local-embeddings-without-openai-api) (same intent: retrieval research and eval)+- [Should an agent use API search or vector search?](/answers/mcp-api-search-or-vector-search) (same intent: retrieval research and eval)+- [What's the actual difference between a vector database and full-text search when I have a folder?](/answers/vector-database-vs-full-text-search) (same intent: retrieval research and eval)diff --git a/landing/answers/code-search-mcp-for-claude-code.html b/landing/answers/code-search-mcp-for-claude-code.htmlindex e3a5c4745..803ede33c 100644--- a/landing/answers/code-search-mcp-for-claude-code.html+++ b/landing/answers/code-search-mcp-for-claude-code.html@@ -15,8 +15,8 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>Make an agent cite a file instead of dumping it</title>-<meta name="description" content="Index the repository with xerj autoindex, then call xerj_search through xerj mcp. One captured call returned the file and line for 2 symbols without opening a file.">+<title>Code search MCP for Claude Code: cite file:line, not grep</title>+<meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">@@ -27,8 +27,8 @@<link rel="canonical" href="https://xerj.org/answers/code-search-mcp-for-claude-code"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="Make an agent cite a file instead of dumping it">-<meta property="og:description" content="Index the repository with xerj autoindex, then call xerj_search through xerj mcp. One captured call returned the file and line for 2 symbols without opening a file.">+<meta property="og:title" content="Code search MCP for Claude Code: cite file:line, not grep">+<meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/code-search-mcp-for-claude-code"><meta property="og:image" content="https://xerj.org/og/xerj-card.png"><meta property="og:image:width" content="1200">@@ -36,8 +36,8 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Make an agent cite a file instead of dumping it">-<meta name="twitter:description" content="Index the repository with xerj autoindex, then call xerj_search through xerj mcp. One captured call returned the file and line for 2 symbols without opening a file.">+<meta name="twitter:title" content="Code search MCP for Claude Code: cite file:line, not grep">+<meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">{@@ -70,8 +70,8 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "Make an agent cite a file instead of dumping it",- "description": "Index the repository with xerj autoindex, then call xerj_search through xerj mcp. One captured call returned the file and line for 2 symbols without opening a file.",+ "headline": "Code search MCP for Claude Code: cite file:line, not grep",+ "description": "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.","url": "https://xerj.org/answers/code-search-mcp-for-claude-code","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en",@@ -156,6 +156,11 @@<div class="kicker"><span>ANSWERS · AGENT ACCESS AND MEMORY</span></div><h1 class="h1-long">I need my agent to find a passage and cite the file, not dump the whole tree. How?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ's tree-sitter registry covers 36 languages, a count pinned by a unit test so the docs cannot drift. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs">engine/crates/xerj-autoindex/src/extract/code.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Index the repository with <code class="inline">xerj autoindex</code>, then register <code class="inline">xerj mcp</code> as an MCP server in the agent host. One captured <code class="inline">xerj_search</code> call on the <code class="inline">defs</code> field returned 2 documents. Each carried a <code class="inline">symbols</code> array with file and line, including <code class="inline">merge_segments</code> at <code class="inline">src/lib.rs</code> line 17.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -184,7 +189,7 @@<p>The MCP server holds no code of its own. Index the tree into a predictable prefix, and the agent queries that prefix forever after.</p><pre class="code"><code class="language-sh">xerj autoindex ./code --url http://127.0.0.1:9500 --prefix mcpcode --state-dir ./state-mcpcode --progress plain --disable-feedback</code></pre>- <p>XERJ parses 34 languages with tree-sitter and writes <code class="inline">language</code>, <code class="inline">defs</code>, <code class="inline">symbols[]</code>, <code class="inline">symbol_count</code> and <code class="inline">body</code> on every code document. The <code class="inline">defs</code> field is the retrieval hook for an agent.</p>+ <p>XERJ parses 36 languages with tree-sitter and writes <code class="inline">language</code>, <code class="inline">defs</code>, <code class="inline">symbols[]</code>, <code class="inline">symbol_count</code> and <code class="inline">body</code> on every code document. The <code class="inline">defs</code> field is the retrieval hook for an agent.</p><h2>Register the MCP server</h2><p>Every <code class="inline">mcpServers</code>-shaped host configuration takes the same three keys. Use the absolute path of the binary, because a host launched from a desktop icon does not inherit your shell PATH.</p><pre class="code"><code class="language-json">{@@ -237,7 +242,7 @@ none of postgres/qdrant/redis/weaviate/milvus/chroma/elasticsearch/opensearch/ol<p>Two caps bound the extractor: a 2 MB file cap and 5,000 symbols per file. A parse failure is never fatal, because XERJ still indexes the file body as plain text.</p><h2>One thing that will trip you up</h2><p>Install the latest XERJ before you write any host configuration, so that the <code class="inline">xerj mcp</code> subcommand is present.</p>- <p>The published <code class="inline">openai-tools.json</code> and <code class="inline">anthropic-tools.json</code> still list 6 tools while the binary serves 10. The 4 missing names are <code class="inline">xerj_brain_ego</code>, <code class="inline">xerj_brain_link</code>, <code class="inline">xerj_brain_overview</code> and <code class="inline">xerj_brain_unlink</code>. Read <code class="inline">tools/list</code> from a live server instead of copying either file.</p>+ <p>The published <code class="inline">openai-tools.json</code> and <code class="inline">anthropic-tools.json</code> still list 6 tools while the binary serves 17 (v1.0.0-rc.97, checked 2026-10-19). The 11 missing names include the 4 <code class="inline">xerj_brain_*</code> tools, <code class="inline">xerj_code_search</code> and the 3 <code class="inline">xerj_hub_*</code> tools. Read <code class="inline">tools/list</code> from a live server, or the generated <code class="inline">mcp-tools.json</code>, instead of copying either file.</p><h2>What the capture was</h2><p>One single-node XERJ process and a generated 2-file code tree in Rust and Python. This run measured no large repository, and the binary was a <code class="inline">ci-test</code> build, so no timing from it is a performance figure.</p><h2>FAQ</h2>@@ -254,7 +259,7 @@ none of postgres/qdrant/redis/weaviate/milvus/chroma/elasticsearch/opensearch/ol<h3>Can XERJ tell the agent who calls a function?</h3><p>No. Extraction is definitions only, with no call graph, no import graph and no cross-file reference resolution. A <code class="inline">defs</code> hit names the declaration site.</p><h3>Are the OpenAI and Anthropic tool schema files up to date?</h3>- <p>No. Both list 6 tools while the binary serves 10. Read <code class="inline">tools/list</code> from a live server rather than copying either file.</p>+ <p>No. Both list 6 tools while the binary serves 17 (checked 2026-10-19). Read <code class="inline">tools/list</code> from a live server, or the generated <code class="inline">mcp-tools.json</code>, rather than copying either file.</p><h2>Related</h2><ul><li><a href="/answers/index-monorepo-for-agent">How do I stop my agent from reading the whole repo into context?</a></li>@@ -263,6 +268,9 @@ none of postgres/qdrant/redis/weaviate/milvus/chroma/elasticsearch/opensearch/ol<li><a href="/compare/xerj-vs-ast-grep">ast-grep vs a code index for an agent?</a></li><li><a href="/answers/local-code-search-mcp-fewer-tokens-than-grep">Local code search MCP for Claude Code that uses fewer tokens than grep</a></li><li><a href="/answers/ask-questions-about-a-github-repo-without-cloning">Ask questions about a GitHub repo without cloning it</a></li>+ <li><a href="/answers/audit-php-codebase-with-an-index">How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/compare/xerj-vs-ripgrep-for-code-agents">Is ripgrep enough for a coding agent, or do I need a code index?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/code-search-mcp-for-claude-code.md b/landing/answers/code-search-mcp-for-claude-code.mdindex 15696deca..c10320049 100644--- a/landing/answers/code-search-mcp-for-claude-code.md+++ b/landing/answers/code-search-mcp-for-claude-code.md@@ -1,6 +1,6 @@<!-- generated by build_articles.py — edit content/answers/code-search-mcp-for-claude-code.md instead -->----title: "Make an agent cite a file instead of dumping it"+title: "Code search MCP for Claude Code: cite file:line, not grep"canonical: "https://xerj.org/answers/code-search-mcp-for-claude-code"updated: "2026-10-19"source: "content/answers/code-search-mcp-for-claude-code.md"@@ -8,6 +8,10 @@ source: "content/answers/code-search-mcp-for-claude-code.md"# I need my agent to find a passage and cite the file, not dump the whole tree. How?+**Short answer** (updated 2026-10-19): 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.++**Key number:** XERJ's tree-sitter registry covers 36 languages, a count pinned by a unit test so the docs cannot drift. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/code.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs))+**TL;DR** — Index the repository with `xerj autoindex`, then register `xerj mcp` as an MCP server in the agent host. One captured `xerj_search` call on the `defs` field returned 2 documents. Each carried a `symbols` array with file and line, including `merge_segments` at `src/lib.rs` line 17.## Agent prompt@@ -50,7 +54,7 @@ The MCP server holds no code of its own. Index the tree into a predictable prefixerj autoindex ./code --url http://127.0.0.1:9500 --prefix mcpcode --state-dir ./state-mcpcode --progress plain --disable-feedback```-XERJ parses 34 languages with tree-sitter and writes `language`, `defs`, `symbols[]`, `symbol_count` and `body` on every code document. The `defs` field is the retrieval hook for an agent.+XERJ parses 36 languages with tree-sitter and writes `language`, `defs`, `symbols[]`, `symbol_count` and `body` on every code document. The `defs` field is the retrieval hook for an agent.## Register the MCP server@@ -134,7 +138,7 @@ Two caps bound the extractor: a 2 MB file cap and 5,000 symbols per file. A parsInstall the latest XERJ before you write any host configuration, so that the `xerj mcp` subcommand is present.-The published `openai-tools.json` and `anthropic-tools.json` still list 6 tools while the binary serves 10. The 4 missing names are `xerj_brain_ego`, `xerj_brain_link`, `xerj_brain_overview` and `xerj_brain_unlink`. Read `tools/list` from a live server instead of copying either file.+The published `openai-tools.json` and `anthropic-tools.json` still list 6 tools while the binary serves 17 (v1.0.0-rc.97, checked 2026-10-19). The 11 missing names include the 4 `xerj_brain_*` tools, `xerj_code_search` and the 3 `xerj_hub_*` tools. Read `tools/list` from a live server, or the generated `mcp-tools.json`, instead of copying either file.## What the capture was@@ -168,7 +172,7 @@ No. Extraction is definitions only, with no call graph, no import graph and no c### Are the OpenAI and Anthropic tool schema files up to date?-No. Both list 6 tools while the binary serves 10. Read `tools/list` from a live server rather than copying either file.+No. Both list 6 tools while the binary serves 17 (checked 2026-10-19). Read `tools/list` from a live server, or the generated `mcp-tools.json`, rather than copying either file.## Related@@ -178,3 +182,6 @@ No. Both list 6 tools while the binary serves 10. Read `tools/list` from a live- [ast-grep vs a code index for an agent?](/compare/xerj-vs-ast-grep)- [Local code search MCP for Claude Code that uses fewer tokens than grep](/answers/local-code-search-mcp-fewer-tokens-than-grep)- [Ask questions about a GitHub repo without cloning it](/answers/ask-questions-about-a-github-repo-without-cloning)+- [How do I audit a PHP codebase with an index instead of grepping 1,400 files?](/answers/audit-php-codebase-with-an-index) (same intent: code search for agents)+- [Is ripgrep enough for a coding agent, or do I need a code index?](/compare/xerj-vs-ripgrep-for-code-agents) (same intent: code search for agents)+- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete) (same intent: code search for agents)diff --git a/landing/answers/coding-agent-memory-across-sessions.html b/landing/answers/coding-agent-memory-across-sessions.htmlindex a6b2a1aeb..2cea764fb 100644--- a/landing/answers/coding-agent-memory-across-sessions.html+++ b/landing/answers/coding-agent-memory-across-sessions.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-09-13",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO PEOPLE STORE USER PREFERENCES SO AN AGENT CAN RECALL THEM NEXT WEEK?</div><div class="kicker"><span>ANSWERS · AGENT MEMORY: SETUP</span></div><h1>How do people store user preferences so an agent can recall them next week?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-09-13</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> A memory store call deduplicates at a default cosine similarity of 0.95 when <code class="inline">dedup</code> is on. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/memory_api.rs">engine/crates/xerj-api/src/memory_api.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ stores each memory as an ordinary document in a reserved index named <code class="inline">.xerj-memory-{namespace}</code>. Our capture stored two memories, stopped the node, started it again against the same data directory, and recalled both by id. One forget call by id removed exactly that memory.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -238,6 +243,9 @@<li><a href="/answers/set-mcp-memory-storage-path">How do I set the MCP memory storage path?</a></li><li><a href="/answers/private-agent-memory-namespaces">How do I give two agents private memory on one laptop?</a></li><li><a href="/docs/recipes/agentic-memory">Agent memory</a></li>+ <li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/evidence-for-agent-memory-links">How can agent-memory links retain evidence?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/knowledge-graphs-for-agent-memory">Should agent memory use a knowledge graph?</a> <span class="mute">· same intent: agent memory</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/coding-agent-memory-across-sessions.md b/landing/answers/coding-agent-memory-across-sessions.mdindex 19c6bdb1e..177c830d4 100644--- a/landing/answers/coding-agent-memory-across-sessions.md+++ b/landing/answers/coding-agent-memory-across-sessions.md@@ -2,12 +2,16 @@---title: "Store user preferences an agent can recall later"canonical: "https://xerj.org/answers/coding-agent-memory-across-sessions"-updated: "2026-09-13"+updated: "2026-10-19"source: "content/answers/coding-agent-memory-across-sessions.md"---# How do people store user preferences so an agent can recall them next week?+**Short answer** (updated 2026-10-19): 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.++**Key number:** A memory store call deduplicates at a default cosine similarity of 0.95 when `dedup` is on. (as of 2026-10-19; source: [engine/crates/xerj-api/src/memory_api.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/memory_api.rs))+**TL;DR** — XERJ stores each memory as an ordinary document in a reserved index named `.xerj-memory-{namespace}`. Our capture stored two memories, stopped the node, started it again against the same data directory, and recalled both by id. One forget call by id removed exactly that memory.## Agent prompt@@ -141,3 +145,6 @@ Only if you ask. Plain `query` runs BM25, `semantic: true` embeds server-side, a- [How do I set the MCP memory storage path?](/answers/set-mcp-memory-storage-path)- [How do I give two agents private memory on one laptop?](/answers/private-agent-memory-namespaces)- [Agent memory](/docs/recipes/agentic-memory)+- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database) (same intent: agent memory)+- [How can agent-memory links retain evidence?](/answers/evidence-for-agent-memory-links) (same intent: agent memory)+- [Should agent memory use a knowledge graph?](/answers/knowledge-graphs-for-agent-memory) (same intent: agent memory)diff --git a/landing/answers/do-search-embeddings-help.html b/landing/answers/do-search-embeddings-help.htmlindex a0075f181..78305ef99 100644--- a/landing/answers/do-search-embeddings-help.html+++ b/landing/answers/do-search-embeddings-help.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHEN SHOULD I TURN ON NEURAL EMBEDDINGS, AND WHEN IS THE LEXICAL DEFAULT ENOUGH?</div><div class="kicker"><span>ANSWERS · EMBEDDINGS: SELECTION</span></div><h1>When should I turn on neural embeddings, and when is the lexical default enough?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> On BEIR SciFact, hybrid RRF with the neural embedder scored nDCG@10 0.6993 against 0.6572 for BM25 alone. <span class="mute">(as of 2026-09-18 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/scifact.txt">benchmarks/beir-hybrid/results/scifact.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Embeddings help only when you opt into XERJ's neural embedder. The default embedder is lexical feature hashing, and on 8 judged queries it scored 0.4167 precision at 3 against BM25's 0.375. The opt-in flag <code class="inline">--embed-mode neural</code> moved the same measurement to 0.6667 and recall to 1.0.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -258,6 +263,9 @@<li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a></li><li><a href="/answers/vector-database-vs-full-text-search">What's the actual difference between a vector database and full-text search when I have a folder?</a></li><li><a href="/answers/reduce-embedding-api-cost">How do I reduce embedding API cost?</a></li>+ <li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/how-xerj-combines-search">How does XERJ combine BM25 and kNN?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/hybrid-search-quality-measured-ndcg">How much better is hybrid search than BM25? Measured nDCG numbers</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/do-search-embeddings-help.md b/landing/answers/do-search-embeddings-help.mdindex f66009b79..c0f038d97 100644--- a/landing/answers/do-search-embeddings-help.md+++ b/landing/answers/do-search-embeddings-help.md@@ -2,12 +2,16 @@---title: "When are neural embeddings worth turning on?"canonical: "https://xerj.org/answers/do-search-embeddings-help"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/do-search-embeddings-help.md"---# When should I turn on neural embeddings, and when is the lexical default enough?+**Short answer** (updated 2026-10-19): 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.++**Key number:** On BEIR SciFact, hybrid RRF with the neural embedder scored nDCG@10 0.6993 against 0.6572 for BM25 alone. (as of 2026-09-18; source: [benchmarks/beir-hybrid/results/scifact.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/scifact.txt))+**TL;DR** — Embeddings help only when you opt into XERJ's neural embedder. The default embedder is lexical feature hashing, and on 8 judged queries it scored 0.4167 precision at 3 against BM25's 0.375. The opt-in flag `--embed-mode neural` moved the same measurement to 0.6667 and recall to 1.0.## Agent prompt@@ -154,3 +158,6 @@ BM25 alone scored 0.375 precision at 3 and 0.6875 recall on our set. It found ev- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database)- [What's the actual difference between a vector database and full-text search when I have a folder?](/answers/vector-database-vs-full-text-search)- [How do I reduce embedding API cost?](/answers/reduce-embedding-api-cost)+- [Should an agent use API search or vector search?](/answers/mcp-api-search-or-vector-search) (same intent: retrieval research and eval)+- [How does XERJ combine BM25 and kNN?](/answers/how-xerj-combines-search) (same intent: retrieval research and eval)+- [How much better is hybrid search than BM25? Measured nDCG numbers](/answers/hybrid-search-quality-measured-ndcg) (same intent: retrieval research and eval)diff --git a/landing/answers/does-xerj-support-s3-alerting-plugins.html b/landing/answers/does-xerj-support-s3-alerting-plugins.htmlindex c4b7911f8..de9872de7 100644--- a/landing/answers/does-xerj-support-s3-alerting-plugins.html+++ b/landing/answers/does-xerj-support-s3-alerting-plugins.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-30",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>DOES XERJ SUPPORT S3 STORAGE, ALERTING OR CUSTOM PLUGINS YET?</div><div class="kicker"><span>ANSWERS · CAPABILITIES AND LIMITS</span></div><h1>Does XERJ support S3 storage, alerting or custom plugins yet?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-30</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ passes 1366 of 1369 Elasticsearch YAML conformance cases; the remaining gaps are listed in the suite. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/README.md">README.md</a>)</span></p>+ </div><p><strong>TL;DR</strong> — The scoreboard moved twice since this page was written: an index can live in an S3-compatible bucket since v1.0.0-rc.77, record corpus packs shipped in rc.78, and alerting became PARTIAL in rc.80 (<code class="inline">_watcher</code> evaluates exactly one watch shape and refuses every other loudly). User-supplied ingest plugins remain built-in-only. This page says exactly what exists, with the file that proves it. The authoritative list is <a href="https://github.com/xerj-org/xerj/blob/main/ROADMAP.md"><code class="inline">ROADMAP.md</code></a>.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -259,6 +264,9 @@<li><a href="/answers/filter-knn-exact-scan-caveat">Why did my filtered vector search get slower when I added a filter?</a></li><li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a></li><li><a href="/answers/local-embeddings-without-openai-api">I want local search that works offline, no cloud embeddings. What are my options?</a></li>+ <li><a href="/compare/xerj-vs-elasticsearch-local">Is there an Elasticsearch-compatible engine that isn't Elasticsearch?</a> <span class="mute">· same intent: search engine alternatives</span></li>+ <li><a href="/answers/search-engine-without-docker">Is there a single-binary local search engine I can just run?</a> <span class="mute">· same intent: search engine alternatives</span></li>+ <li><a href="/compare/xerj-vs-meilisearch">What's a local alternative to Meilisearch that indexes a folder by itself?</a> <span class="mute">· same intent: search engine alternatives</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/does-xerj-support-s3-alerting-plugins.md b/landing/answers/does-xerj-support-s3-alerting-plugins.mdindex 34eae1784..5bb05e973 100644--- a/landing/answers/does-xerj-support-s3-alerting-plugins.md+++ b/landing/answers/does-xerj-support-s3-alerting-plugins.md@@ -2,12 +2,16 @@---title: "Does XERJ support S3, alerting or custom plugins?"canonical: "https://xerj.org/answers/does-xerj-support-s3-alerting-plugins"-updated: "2026-09-30"+updated: "2026-10-19"source: "content/answers/does-xerj-support-s3-alerting-plugins.md"---# Does XERJ support S3 storage, alerting or custom plugins yet?+**Short answer** (updated 2026-10-19): 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.++**Key number:** XERJ passes 1366 of 1369 Elasticsearch YAML conformance cases; the remaining gaps are listed in the suite. (as of 2026-10-19; source: [README.md](https://github.com/xerj-org/xerj/blob/main/README.md))+**TL;DR** — The scoreboard moved twice since this page was written: an index can live in an S3-compatible bucket since v1.0.0-rc.77, record corpus packs shipped in rc.78, and alerting became PARTIAL in rc.80 (`_watcher` evaluates exactly one watch shape and refuses every other loudly). User-supplied ingest plugins remain built-in-only. This page says exactly what exists, with the file that proves it. The authoritative list is [`ROADMAP.md`](https://github.com/xerj-org/xerj/blob/main/ROADMAP.md).## Agent prompt@@ -161,3 +165,6 @@ Record packs, yes, since v1.0.0-rc.78: `xerj corpus build` turns a recipe into a- [Why did my filtered vector search get slower when I added a filter?](/answers/filter-knn-exact-scan-caveat)- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search)- [I want local search that works offline, no cloud embeddings. What are my options?](/answers/local-embeddings-without-openai-api)+- [Is there an Elasticsearch-compatible engine that isn't Elasticsearch?](/compare/xerj-vs-elasticsearch-local) (same intent: search engine alternatives)+- [Is there a single-binary local search engine I can just run?](/answers/search-engine-without-docker) (same intent: search engine alternatives)+- [What's a local alternative to Meilisearch that indexes a folder by itself?](/compare/xerj-vs-meilisearch) (same intent: search engine alternatives)diff --git a/landing/answers/estimate-autoindex-time-before-running.html b/landing/answers/estimate-autoindex-time-before-running.htmlindex 7af8afe07..18b438d82 100644--- a/landing/answers/estimate-autoindex-time-before-running.html+++ b/landing/answers/estimate-autoindex-time-before-running.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I ESTIMATE FOLDER-INDEXING TIME?</div><div class="kicker"><span>ANSWERS · OPERATIONS: ESTIMATION</span></div><h1>How do I estimate folder-indexing time?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Without --max-minutes, the gate asks before any run estimated at more than 10 minutes (<code class="inline">DEFAULT_MAX_MINUTES</code>). <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/gate.rs">engine/crates/xerj-autoindex/src/gate.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex --dry-run</code> prints a measured extraction floor for your own machine, and it writes nothing. Add <code class="inline">--max-minutes</code> and <code class="inline">--quiet</code>, and the decision gate exits 4 with a JSON decision request. On 2,500 PDFs the floor was 2.2 min and the finished run took 157.7 s.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -245,6 +250,9 @@<li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li><li><a href="/answers/resume-interrupted-autoindex-run">The indexer died overnight. Do I have to start over?</a></li><li><a href="/answers/read-autoindex-progress">How do I read autoindex progress?</a></li>+ <li><a href="/answers/keep-index-current-as-files-change">How do I keep a search index up to date as files change, without re-indexing everything?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/keep-s3-bucket-index-current">How do I keep an index current when the files live in an object store?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/estimate-autoindex-time-before-running.md b/landing/answers/estimate-autoindex-time-before-running.mdindex 7a8f7e8ab..223170f35 100644--- a/landing/answers/estimate-autoindex-time-before-running.md+++ b/landing/answers/estimate-autoindex-time-before-running.md@@ -2,12 +2,16 @@---title: "How do I estimate folder-indexing time?"canonical: "https://xerj.org/answers/estimate-autoindex-time-before-running"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/estimate-autoindex-time-before-running.md"---# How do I estimate folder-indexing time?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Without --max-minutes, the gate asks before any run estimated at more than 10 minutes (`DEFAULT_MAX_MINUTES`). (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/gate.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/gate.rs))+**TL;DR** — `xerj autoindex --dry-run` prints a measured extraction floor for your own machine, and it writes nothing. Add `--max-minutes` and `--quiet`, and the decision gate exits 4 with a JSON decision request. On 2,500 PDFs the floor was 2.2 min and the finished run took 157.7 s.## Agent prompt@@ -147,3 +151,6 @@ Because the measured extraction floor for 6 small files rounds to zero. The gate- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)- [The indexer died overnight. Do I have to start over?](/answers/resume-interrupted-autoindex-run)- [How do I read autoindex progress?](/answers/read-autoindex-progress)+- [How do I keep a search index up to date as files change, without re-indexing everything?](/answers/keep-index-current-as-files-change) (same intent: operating autoindex)+- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files) (same intent: operating autoindex)+- [How do I keep an index current when the files live in an object store?](/answers/keep-s3-bucket-index-current) (same intent: operating autoindex)diff --git a/landing/answers/evidence-for-agent-memory-links.html b/landing/answers/evidence-for-agent-memory-links.htmlindex b1b9e0d50..4d7b93551 100644--- a/landing/answers/evidence-for-agent-memory-links.html+++ b/landing/answers/evidence-for-agent-memory-links.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW CAN AGENT-MEMORY LINKS RETAIN EVIDENCE?</div><div class="kicker"><span>ANSWERS · AGENT MEMORY: PROVENANCE</span></div><h1>How can agent-memory links retain evidence?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The shared-term link detector keeps at most 5 edges per document (<code class="inline">MAX_EDGES_PER_DOC</code>), which bounds the link index. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/detect/sharedterm.rs">engine/crates/xerj-autoindex/src/detect/sharedterm.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ stores the line that taught each link. All 7 detected edges in our capture carried an <code class="inline">evidence</code> object with a quote, a filename and an offset. A hand-asserted link carried none, and retiring a link wrote a tombstone instead of deleting the edge.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -234,6 +239,9 @@<li><a href="/answers/knowledge-graphs-for-agent-memory">Should agent memory use a knowledge graph?</a></li><li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a></li><li><a href="/use-cases/second-brain">Second brain</a></li>+ <li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/private-agent-memory-namespaces">How do I give two agents private memory on one laptop?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/store-agent-memory-without-llm-call">How do I stop an agent memory store from filling with near-duplicate notes?</a> <span class="mute">· same intent: agent memory</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/evidence-for-agent-memory-links.md b/landing/answers/evidence-for-agent-memory-links.mdindex 9880b2082..41016ba6c 100644--- a/landing/answers/evidence-for-agent-memory-links.md+++ b/landing/answers/evidence-for-agent-memory-links.md@@ -2,12 +2,16 @@---title: "Evidence behind agent-memory links"canonical: "https://xerj.org/answers/evidence-for-agent-memory-links"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/evidence-for-agent-memory-links.md"---# How can agent-memory links retain evidence?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The shared-term link detector keeps at most 5 edges per document (`MAX_EDGES_PER_DOC`), which bounds the link index. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/detect/sharedterm.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/detect/sharedterm.rs))+**TL;DR** — 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. A hand-asserted link carried none, and retiring a link wrote a tombstone instead of deleting the edge.## Agent prompt@@ -139,3 +143,6 @@ In the index named `.xerj-memory-{brain}-edges`. Filter on `{"exists":{"field":"- [Should agent memory use a knowledge graph?](/answers/knowledge-graphs-for-agent-memory)- [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions)- [Second brain](/use-cases/second-brain)+- [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant) (same intent: agent memory)+- [How do I give two agents private memory on one laptop?](/answers/private-agent-memory-namespaces) (same intent: agent memory)+- [How do I stop an agent memory store from filling with near-duplicate notes?](/answers/store-agent-memory-without-llm-call) (same intent: agent memory)diff --git a/landing/answers/filter-knn-exact-scan-caveat.html b/landing/answers/filter-knn-exact-scan-caveat.htmlindex ded4ad69c..97540cc20 100644--- a/landing/answers/filter-knn-exact-scan-caveat.html+++ b/landing/answers/filter-knn-exact-scan-caveat.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHY DID MY FILTERED VECTOR SEARCH GET SLOWER WHEN I ADDED A FILTER?</div><div class="kicker"><span>ANSWERS · RETRIEVAL BEHAVIOUR</span></div><h1>Why did my filtered vector search get slower when I added a filter?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The HNSW beam width (<code class="inline">num_candidates</code>) is floored at 800, and indexes under 1,024 documents always use the exact scan. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/landing/llms.txt">landing/llms.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — The filter changed the retrieval path. An unfiltered cosine <code class="inline">knn</code> over a large enough full-precision field is served by a beam search over a persisted HNSW graph. A filtered one runs an exact scan, and its cost grows with the vectors it reads. This page publishes no latency measurement.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -270,6 +275,9 @@<li><a href="/answers/vector-database-vs-full-text-search">What's the actual difference between a vector database and full-text search when I have a folder?</a></li><li><a href="/answers/rag-without-vector-database">How do I build RAG without a vector database?</a></li><li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a></li>+ <li><a href="/answers/hybrid-search-quality-measured-ndcg">How much better is hybrid search than BM25? Measured nDCG numbers</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/reciprocal-rank-fusion-when-to-use">What is Reciprocal Rank Fusion?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/classify-text-from-labelled-history-without-llm">Can I route tickets or filter spam from labelled history, without an LLM call?</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/filter-knn-exact-scan-caveat.md b/landing/answers/filter-knn-exact-scan-caveat.mdindex 08c551387..2b84422c7 100644--- a/landing/answers/filter-knn-exact-scan-caveat.md+++ b/landing/answers/filter-knn-exact-scan-caveat.md@@ -2,12 +2,16 @@---title: "When does XERJ kNN use an exact scan instead of HNSW?"canonical: "https://xerj.org/answers/filter-knn-exact-scan-caveat"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/filter-knn-exact-scan-caveat.md"---# Why did my filtered vector search get slower when I added a filter?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The HNSW beam width (`num_candidates`) is floored at 800, and indexes under 1,024 documents always use the exact scan. (as of 2026-10-19; source: [landing/llms.txt](https://github.com/xerj-org/xerj/blob/main/landing/llms.txt))+**TL;DR** — The filter changed the retrieval path. An unfiltered cosine `knn` over a large enough full-precision field is served by a beam search over a persisted HNSW graph. A filtered one runs an exact scan, and its cost grows with the vectors it reads. This page publishes no latency measurement.## Agent prompt@@ -181,3 +185,6 @@ No, the opposite. The exact scan has recall 1.00 by construction. The graph path- [What's the actual difference between a vector database and full-text search when I have a folder?](/answers/vector-database-vs-full-text-search)- [How do I build RAG without a vector database?](/answers/rag-without-vector-database)- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database)+- [How much better is hybrid search than BM25? Measured nDCG numbers](/answers/hybrid-search-quality-measured-ndcg) (same intent: retrieval research and eval)+- [What is Reciprocal Rank Fusion?](/answers/reciprocal-rank-fusion-when-to-use) (same intent: retrieval research and eval)+- [Can I route tickets or filter spam from labelled history, without an LLM call?](/answers/classify-text-from-labelled-history-without-llm) (same intent: retrieval research and eval)diff --git a/landing/answers/full-text-search-browser-history.html b/landing/answers/full-text-search-browser-history.htmlindex 86b318293..54b5d4925 100644--- a/landing/answers/full-text-search-browser-history.html+++ b/landing/answers/full-text-search-browser-history.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>IS THERE A WAY TO FULL-TEXT SEARCH MY BROWSER HISTORY FILE ITSELF?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>Is there a way to full-text search my browser history file itself?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Each record keeps at most 512 fields (<code class="inline">MAX_FIELDS_PER_RECORD</code>), so even a wide SQLite table maps without schema work. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs">engine/crates/xerj-autoindex/src/extract/mod.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Copy the Chrome <code class="inline">History</code> SQLite file, then run <code class="inline">xerj autoindex</code> on the folder. A captured run returned 60 hits for a title phrase and 1 hit for an exact URL. All 3 source checksums were unchanged, and <code class="inline">body</code> returned 0 documents because Chrome stores no page text.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -244,6 +249,9 @@<li><a href="/answers/full-text-search-sqlite-database">How do I full-text search a SQLite database I just copied onto disk?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li><li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a></li>+ <li><a href="/answers/index-csv-with-many-columns">How do I index a CSV with many columns?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/search-json-and-jsonl-logs">What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/full-text-search-browser-history.md b/landing/answers/full-text-search-browser-history.mdindex 9fac317e1..af8ae0a44 100644--- a/landing/answers/full-text-search-browser-history.md+++ b/landing/answers/full-text-search-browser-history.md@@ -2,12 +2,16 @@---title: "Can I full-text search my browser history file?"canonical: "https://xerj.org/answers/full-text-search-browser-history"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/full-text-search-browser-history.md"---# Is there a way to full-text search my browser history file itself?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Each record keeps at most 512 fields (`MAX_FIELDS_PER_RECORD`), so even a wide SQLite table maps without schema work. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/mod.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs))+**TL;DR** — Copy the Chrome `History` SQLite file, then run `xerj autoindex` on the folder. A captured run returned 60 hits for a title phrase and 1 hit for an exact URL. All 3 source checksums were unchanged, and `body` returned 0 documents because Chrome stores no page text.## Agent prompt@@ -148,3 +152,6 @@ XERJ typed `url` as `keyword`, so it matches whole values only. An exact `term`- [How do I full-text search a SQLite database I just copied onto disk?](/answers/full-text-search-sqlite-database)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files)+- [How do I index a CSV with many columns?](/answers/index-csv-with-many-columns) (same intent: JSONL and data files)+- [What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?](/answers/search-json-and-jsonl-logs) (same intent: JSONL and data files)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)diff --git a/landing/answers/full-text-search-over-jsonl-files-cli.html b/landing/answers/full-text-search-over-jsonl-files-cli.htmlindex 9cbcafa48..b4c697295 100644--- a/landing/answers/full-text-search-over-jsonl-files-cli.html+++ b/landing/answers/full-text-search-over-jsonl-files-cli.html@@ -2,6 +2,17 @@<!DOCTYPE html><html lang="en" data-theme="day"><head>+<!-- ga4:begin — generated by scripts/seo/seo_head.py · do not hand-edit -->+<!-- Google tag (gtag.js) -->+<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z77ETCDJYL"></script>+<script>+ window.dataLayer = window.dataLayer || [];+ function gtag(){dataLayer.push(arguments);}+ gtag('js', new Date());++ gtag('config', 'G-Z77ETCDJYL');+</script>+<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Full-text search over JSONL and CSV files from the CLI</title>diff --git a/landing/answers/full-text-search-sqlite-database.html b/landing/answers/full-text-search-sqlite-database.htmlindex 11826e63d..5fd358b97 100644--- a/landing/answers/full-text-search-sqlite-database.html+++ b/landing/answers/full-text-search-sqlite-database.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>How do I full-text search a SQLite database?</title>+<title>Full-text search a SQLite database (FTS5 alternative)</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/full-text-search-sqlite-database"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="How do I full-text search a SQLite database?">+<meta property="og:title" content="Full-text search a SQLite database (FTS5 alternative)"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/full-text-search-sqlite-database"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="How do I full-text search a SQLite database?">+<meta name="twitter:title" content="Full-text search a SQLite database (FTS5 alternative)"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "How do I full-text search a SQLite database?",+ "headline": "Full-text search a SQLite database (FTS5 alternative)","description": "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.","url": "https://xerj.org/answers/full-text-search-sqlite-database","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I FULL-TEXT SEARCH A SQLITE DATABASE I JUST COPIED ONTO DISK?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I full-text search a SQLite database I just copied onto disk?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ maps each existing SQLite table without an FTS5 virtual table, keeping up to 512 fields per record (<code class="inline">MAX_FIELDS_PER_RECORD</code>). <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs">engine/crates/xerj-autoindex/src/extract/mod.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex</code> reads a SQLite file read-only and turns each table into an index. In a captured WAL-mode run, XERJ created <code class="inline">sq-tickets</code> with 400 documents and <code class="inline">sq-agents</code> with 13, and left all 3 source files byte-identical. Rows still resident in the write-ahead log were absent.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -268,6 +273,9 @@ eba5aedf41bb37c1d3660b9a0ab38abed21474154a129b17e99b27a3499fb861 support.db-wal<li><a href="/answers/search-sql-dump-file">I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?</a></li><li><a href="/answers/full-text-search-browser-history">Is there a way to full-text search my browser history file itself?</a></li><li><a href="/compare/xerj-vs-ripgrep-all">How do I grep PDFs and Word docs from the command line?</a></li>+ <li><a href="/answers/search-gzipped-csv-or-json">How do I search a .csv.gz or .json.gz without unzipping it first?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/index-multiple-csv-files">I have a directory of CSV exports. How do I query them without opening each one in Excel?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/full-text-search-sqlite-database.md b/landing/answers/full-text-search-sqlite-database.mdindex b16037117..9d2d26dd1 100644--- a/landing/answers/full-text-search-sqlite-database.md+++ b/landing/answers/full-text-search-sqlite-database.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/full-text-search-sqlite-database.md instead -->----title: "How do I full-text search a SQLite database?"+title: "Full-text search a SQLite database (FTS5 alternative)"canonical: "https://xerj.org/answers/full-text-search-sqlite-database"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/full-text-search-sqlite-database.md"---# How do I full-text search a SQLite database I just copied onto disk?+**Short answer** (updated 2026-10-19): 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.++**Key number:** XERJ maps each existing SQLite table without an FTS5 virtual table, keeping up to 512 fields per record (`MAX_FIELDS_PER_RECORD`). (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/mod.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs))+**TL;DR** — `xerj autoindex` reads a SQLite file read-only and turns each table into an index. In a captured WAL-mode run, XERJ created `sq-tickets` with 400 documents and `sq-agents` with 13, and left all 3 source files byte-identical. Rows still resident in the write-ahead log were absent.## Agent prompt@@ -174,3 +178,6 @@ Run `PRAGMA wal_checkpoint(TRUNCATE)` on the database before you index it, or in- [I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?](/answers/search-sql-dump-file)- [Is there a way to full-text search my browser history file itself?](/answers/full-text-search-browser-history)- [How do I grep PDFs and Word docs from the command line?](/compare/xerj-vs-ripgrep-all)+- [How do I search a .csv.gz or .json.gz without unzipping it first?](/answers/search-gzipped-csv-or-json) (same intent: JSONL and data files)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)+- [I have a directory of CSV exports. How do I query them without opening each one in Excel?](/answers/index-multiple-csv-files) (same intent: JSONL and data files)diff --git a/landing/answers/give-chatgpt-claude-local-file-access.html b/landing/answers/give-chatgpt-claude-local-file-access.htmlindex 2db3d2737..9a629ab78 100644--- a/landing/answers/give-chatgpt-claude-local-file-access.html+++ b/landing/answers/give-chatgpt-claude-local-file-access.html@@ -15,8 +15,8 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>Can ChatGPT search a folder on my laptop?</title>-<meta name="description" content="xerj mcp is a stdio MCP server that proxies 10 tools to a running XERJ node, so an agent reads an indexed local folder instead of opening files itself.">+<title>MCP server to search local files from ChatGPT or Claude</title>+<meta name="description" content="xerj mcp is a stdio MCP server that proxies 17 tools to a running XERJ node, so ChatGPT, Claude or Cursor search an indexed local folder instead of opening files."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">@@ -27,8 +27,8 @@<link rel="canonical" href="https://xerj.org/answers/give-chatgpt-claude-local-file-access"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="Can ChatGPT search a folder on my laptop?">-<meta property="og:description" content="xerj mcp is a stdio MCP server that proxies 10 tools to a running XERJ node, so an agent reads an indexed local folder instead of opening files itself.">+<meta property="og:title" content="MCP server to search local files from ChatGPT or Claude">+<meta property="og:description" content="xerj mcp is a stdio MCP server that proxies 17 tools to a running XERJ node, so ChatGPT, Claude or Cursor search an indexed local folder instead of opening files."><meta property="og:url" content="https://xerj.org/answers/give-chatgpt-claude-local-file-access"><meta property="og:image" content="https://xerj.org/og/xerj-card.png"><meta property="og:image:width" content="1200">@@ -36,8 +36,8 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Can ChatGPT search a folder on my laptop?">-<meta name="twitter:description" content="xerj mcp is a stdio MCP server that proxies 10 tools to a running XERJ node, so an agent reads an indexed local folder instead of opening files itself.">+<meta name="twitter:title" content="MCP server to search local files from ChatGPT or Claude">+<meta name="twitter:description" content="xerj mcp is a stdio MCP server that proxies 17 tools to a running XERJ node, so ChatGPT, Claude or Cursor search an indexed local folder instead of opening files."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">{@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "Can ChatGPT search a folder on my laptop?",- "description": "xerj mcp is a stdio MCP server that proxies 10 tools to a running XERJ node, so an agent reads an indexed local folder instead of opening files itself.",+ "headline": "MCP server to search local files from ChatGPT or Claude",+ "description": "xerj mcp is a stdio MCP server that proxies 17 tools to a running XERJ node, so ChatGPT, Claude or Cursor search an indexed local folder instead of opening files.","url": "https://xerj.org/answers/give-chatgpt-claude-local-file-access","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,8 +155,13 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>CAN CHATGPT SEARCH A FOLDER ON MY LAPTOP, OR DO I NEED SOMETHING ELSE?</div><div class="kicker"><span>ANSWERS · AGENT ACCESS AND MEMORY</span></div><h1>Can ChatGPT search a folder on my laptop, or do I need something else?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>- <p><strong>TL;DR</strong> — XERJ ships an MCP server as <code class="inline">xerj mcp</code>. Install the latest XERJ, start a node, index a folder with <code class="inline">xerj autoindex</code>, then point the agent host at the binary with an absolute path. Our captured <code class="inline">tools/list</code> returned 10 tools, and one <code class="inline">xerj_search</code> call read an indexed local file.</p>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> A live <code class="inline">tools/list</code> from xerj v1.0.0-rc.97 returned 17 tools, each with an inputSchema. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json">landing/docs/agents/schemas/mcp-tools.json</a>)</span></p>+ </div>+ <p><strong>TL;DR</strong> — XERJ ships an MCP server as <code class="inline">xerj mcp</code>. Install the latest XERJ, start a node, index a folder with <code class="inline">xerj autoindex</code>, then point the agent host at the binary with an absolute path. A live <code class="inline">tools/list</code> from v1.0.0-rc.97 returned 17 tools on 2026-10-19, and one <code class="inline">xerj_search</code> call read an indexed local file.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span><code>Act as a coding agent. Read https://xerj.org/llms.txt, start a XERJ node with --insecure, index a local folder with xerj autoindex --prefix mcpdocs, add xerj mcp to your MCP host config with the absolute binary path and XERJ_URL, then call tools/list and one xerj_search over mcpdocs-* and report the ax_path of every hit instead of opening a file.</code>@@ -184,8 +189,10 @@<p><code class="inline">xerj mcp</code> is a Model Context Protocol server that speaks newline-delimited JSON-RPC 2.0 over stdio and proxies its tools to a XERJ node over HTTP. The agent host launches the binary; the binary talks to the node you started.</p><p>The command does not start a node. Start one first, otherwise every tool call fails at the HTTP hop.</p><pre class="code"><code class="language-text">Speaks MCP over stdio (newline-delimited JSON-RPC 2.0 on stdin/stdout) and-proxies ten tools ... to a XERJ node that is ALREADY RUNNING. This command-does not start a node; start one first with `xerj --data-dir ./data`.+proxies 17 tools — xerj_search, xerj_semantic_search, ... xerj_hub_ask — to a+XERJ node that+is ALREADY RUNNING. This command does not start a node; start one first with+`xerj --insecure --data-dir ~/xerj-data`.</code></pre><h2>Index the folder before you wire the agent</h2><p>An agent can only read what the node holds. Index the folder first, and give the run a prefix so the index name is predictable.</p>@@ -218,12 +225,12 @@ does not start a node; start one first with `xerj --data-dir ./data`."serverInfo":{"name":"xerj-mcp","version":"<your build>"}}}</code></pre><p>The server also returns an <code class="inline">instructions</code> string that tells the agent which tool to reach for. Diagnostics go to stderr, so stdout carries only the JSON-RPC stream.</p>- <h2>Ten tools, with their required arguments</h2>- <p><code class="inline">tools/list</code> returned 10 tools in our capture, and all 10 carried an <code class="inline">inputSchema</code>.</p>+ <h2>Seventeen tools, with their required arguments</h2>+ <p>A live <code class="inline">tools/list</code> from v1.0.0-rc.97 (2026-10-19) returned 17 tools, and all 17 carried an <code class="inline">inputSchema</code>. The first capture for this page, in August 2026, returned 10.</p><table><thead><tr><th>tool</th><th>required arguments</th></tr></thead><tbody>- <tr><td><code class="inline">xerj_search</code></td><td><code class="inline">index</code></td></tr>+ <tr><td><code class="inline">xerj_search</code></td><td>none (<code class="inline">index</code> defaults to every index)</td></tr><tr><td><code class="inline">xerj_semantic_search</code></td><td><code class="inline">index</code>, <code class="inline">field</code>, <code class="inline">query</code></td></tr><tr><td><code class="inline">xerj_vector_search</code></td><td><code class="inline">index</code>, <code class="inline">field</code>, <code class="inline">query_vector</code></td></tr><tr><td><code class="inline">xerj_hybrid_search</code></td><td><code class="inline">index</code>, <code class="inline">queries</code></td></tr>@@ -233,6 +240,13 @@ does not start a node; start one first with `xerj --data-dir ./data`.<tr><td><code class="inline">xerj_brain_link</code></td><td><code class="inline">brain</code>, <code class="inline">src</code>, <code class="inline">dst</code>, <code class="inline">type</code></td></tr><tr><td><code class="inline">xerj_brain_unlink</code></td><td><code class="inline">brain</code>, <code class="inline">edge_id</code></td></tr><tr><td><code class="inline">xerj_brain_overview</code></td><td><code class="inline">brain</code></td></tr>+ <tr><td><code class="inline">xerj_map</code></td><td>none</td></tr>+ <tr><td><code class="inline">xerj_code_search</code></td><td><code class="inline">corpus</code>, <code class="inline">query</code></td></tr>+ <tr><td><code class="inline">xerj_plan</code></td><td><code class="inline">prompt</code></td></tr>+ <tr><td><code class="inline">xerj_field_report</code></td><td><code class="inline">agent</code>, <code class="inline">used_for</code>, <code class="inline">verdict</code></td></tr>+ <tr><td><code class="inline">xerj_hub_find</code></td><td><code class="inline">question</code></td></tr>+ <tr><td><code class="inline">xerj_hub_def</code></td><td><code class="inline">slug</code>, <code class="inline">symbol</code></td></tr>+ <tr><td><code class="inline">xerj_hub_ask</code></td><td><code class="inline">question</code></td></tr></tbody></table><h2>One real call against an indexed local file</h2>@@ -258,8 +272,8 @@ does not start a node; start one first with `xerj --data-dir ./data`.</code></pre><p>A call against a missing index passes the node's own 404 <code class="inline">index_not_found_exception</code> body through verbatim. The hint beside it lists index names close to the one you asked for. A <code class="inline">ping</code> returns <code class="inline">{}</code>.</p><h2>The published tool schemas are stale</h2>- <p>The binary serves 10 tools. The published <code class="inline">openai-tools.json</code> and <code class="inline">anthropic-tools.json</code> still list 6, and the 4 missing names are <code class="inline">xerj_brain_ego</code>, <code class="inline">xerj_brain_link</code>, <code class="inline">xerj_brain_overview</code> and <code class="inline">xerj_brain_unlink</code>.</p>- <p>That is a documentation defect, confirmed against the source that generates the tool list. If you wire either vendor schema into an agent by hand, add the 4 brain tools yourself or read <code class="inline">tools/list</code> from a live server instead.</p>+ <p>The binary serves 17 tools. The published <code class="inline">openai-tools.json</code> and <code class="inline">anthropic-tools.json</code> still list 6 (checked 2026-10-19), so 11 are missing: the 4 <code class="inline">xerj_brain_*</code> tools, <code class="inline">xerj_map</code>, <code class="inline">xerj_code_search</code>, <code class="inline">xerj_plan</code>, <code class="inline">xerj_field_report</code> and the 3 <code class="inline">xerj_hub_*</code> tools. The MCP schema at <code class="inline">/docs/agents/schemas/mcp-tools.json</code> is generated from a live <code class="inline">tools/list</code> and lists all 17.</p>+ <p>That is a documentation defect, confirmed against the source that generates the tool list. If you wire either vendor schema into an agent by hand, add the missing tools yourself or read <code class="inline">tools/list</code> from a live server instead.</p><h2>What this setup does not give you</h2><p>XERJ is single-node. The MCP server has no replication, no failover and no multi-region mode behind it. The agent depends on the one node you started.</p><p>Access control is coarse. XERJ has no RBAC and no SSO. <code class="inline">GET /_security/roles</code> reports <code class="inline">"enforced": false</code>, so every authenticated caller reaches every index. A scoped API key is the only way to narrow what the agent can read.</p>@@ -275,7 +289,7 @@ does not start a node; start one first with `xerj --data-dir ./data`.<h3>Does xerj mcp start a XERJ node?</h3><p>No. <code class="inline">xerj mcp</code> proxies to a node that is already running. Start the node first with <code class="inline">xerj --data-dir ./data</code>, then point the MCP server at its URL.</p><h3>How many tools does the XERJ MCP server expose?</h3>- <p>10, and every one carries an <code class="inline">inputSchema</code>. Our captured <code class="inline">tools/list</code> returned <code class="inline">xerj_search</code>, 3 retrieval tools, 2 memory tools and 4 brain tools.</p>+ <p>17 on v1.0.0-rc.97 (live <code class="inline">tools/list</code>, 2026-10-19), and every one carries an <code class="inline">inputSchema</code>: <code class="inline">xerj_search</code>, 3 more retrieval tools, 2 memory tools, 4 brain tools, <code class="inline">xerj_map</code>, <code class="inline">xerj_code_search</code>, <code class="inline">xerj_plan</code>, <code class="inline">xerj_field_report</code> and 3 Corpus Hub tools. The first capture for this page, in August 2026, returned 10.</p><h3>Why does my MCP host fail to launch xerj?</h3><p>Use an absolute path in the <code class="inline">command</code> field. An MCP host launched from a desktop icon does not inherit your shell PATH, so a bare <code class="inline">xerj</code> fails there.</p><h3>Can I restrict which indices the agent can read?</h3>@@ -287,6 +301,7 @@ does not start a node; start one first with `xerj --data-dir ./data`.<li><a href="/docs/agents/quickstart">Agent quickstart</a></li><li><a href="/compare/xerj-vs-web-agent-search">How do I let an agent search a folder on my laptop instead of crawling the web?</a></li><li><a href="/compare/xerj-vs-localsynapse">What's a local MCP search engine for Claude?</a></li>+ <li><a href="/answers/what-is-xerj">What is XERJ?</a> <span class="mute">· same intent: Find the right tool</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/give-chatgpt-claude-local-file-access.md b/landing/answers/give-chatgpt-claude-local-file-access.mdindex 3f66d1c49..31aa1b6ab 100644--- a/landing/answers/give-chatgpt-claude-local-file-access.md+++ b/landing/answers/give-chatgpt-claude-local-file-access.md@@ -1,14 +1,18 @@<!-- generated by build_articles.py — edit content/answers/give-chatgpt-claude-local-file-access.md instead -->----title: "Can ChatGPT search a folder on my laptop?"+title: "MCP server to search local files from ChatGPT or Claude"canonical: "https://xerj.org/answers/give-chatgpt-claude-local-file-access"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/give-chatgpt-claude-local-file-access.md"---# Can ChatGPT search a folder on my laptop, or do I need something else?-**TL;DR** — XERJ ships an MCP server as `xerj mcp`. Install the latest XERJ, start a node, index a folder with `xerj autoindex`, then point the agent host at the binary with an absolute path. Our captured `tools/list` returned 10 tools, and one `xerj_search` call read an indexed local file.+**Short answer** (updated 2026-10-19): 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.++**Key number:** A live `tools/list` from xerj v1.0.0-rc.97 returned 17 tools, each with an inputSchema. (as of 2026-10-19; source: [landing/docs/agents/schemas/mcp-tools.json](https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json))++**TL;DR** — XERJ ships an MCP server as `xerj mcp`. Install the latest XERJ, start a node, index a folder with `xerj autoindex`, then point the agent host at the binary with an absolute path. A live `tools/list` from v1.0.0-rc.97 returned 17 tools on 2026-10-19, and one `xerj_search` call read an indexed local file.## Agent prompt@@ -50,8 +54,10 @@ The command does not start a node. Start one first, otherwise every tool call fa```textSpeaks MCP over stdio (newline-delimited JSON-RPC 2.0 on stdin/stdout) and-proxies ten tools ... to a XERJ node that is ALREADY RUNNING. This command-does not start a node; start one first with `xerj --data-dir ./data`.+proxies 17 tools — xerj_search, xerj_semantic_search, ... xerj_hub_ask — to a+XERJ node that+is ALREADY RUNNING. This command does not start a node; start one first with+`xerj --insecure --data-dir ~/xerj-data`.```## Index the folder before you wire the agent@@ -102,13 +108,13 @@ The agent host opens with `initialize`. XERJ echoes the protocol version, namesThe server also returns an `instructions` string that tells the agent which tool to reach for. Diagnostics go to stderr, so stdout carries only the JSON-RPC stream.-## Ten tools, with their required arguments+## Seventeen tools, with their required arguments-`tools/list` returned 10 tools in our capture, and all 10 carried an `inputSchema`.+A live `tools/list` from v1.0.0-rc.97 (2026-10-19) returned 17 tools, and all 17 carried an `inputSchema`. The first capture for this page, in August 2026, returned 10.| tool | required arguments || --- | --- |-| `xerj_search` | `index` |+| `xerj_search` | none (`index` defaults to every index) || `xerj_semantic_search` | `index`, `field`, `query` || `xerj_vector_search` | `index`, `field`, `query_vector` || `xerj_hybrid_search` | `index`, `queries` |@@ -118,6 +124,13 @@ The server also returns an `instructions` string that tells the agent which tool| `xerj_brain_link` | `brain`, `src`, `dst`, `type` || `xerj_brain_unlink` | `brain`, `edge_id` || `xerj_brain_overview` | `brain` |+| `xerj_map` | none |+| `xerj_code_search` | `corpus`, `query` |+| `xerj_plan` | `prompt` |+| `xerj_field_report` | `agent`, `used_for`, `verdict` |+| `xerj_hub_find` | `question` |+| `xerj_hub_def` | `slug`, `symbol` |+| `xerj_hub_ask` | `question` |## One real call against an indexed local file@@ -158,9 +171,9 @@ A call against a missing index passes the node's own 404 `index_not_found_except## The published tool schemas are stale-The binary serves 10 tools. The published `openai-tools.json` and `anthropic-tools.json` still list 6, and the 4 missing names are `xerj_brain_ego`, `xerj_brain_link`, `xerj_brain_overview` and `xerj_brain_unlink`.+The binary serves 17 tools. The published `openai-tools.json` and `anthropic-tools.json` still list 6 (checked 2026-10-19), so 11 are missing: the 4 `xerj_brain_*` tools, `xerj_map`, `xerj_code_search`, `xerj_plan`, `xerj_field_report` and the 3 `xerj_hub_*` tools. The MCP schema at `/docs/agents/schemas/mcp-tools.json` is generated from a live `tools/list` and lists all 17.-That is a documentation defect, confirmed against the source that generates the tool list. If you wire either vendor schema into an agent by hand, add the 4 brain tools yourself or read `tools/list` from a live server instead.+That is a documentation defect, confirmed against the source that generates the tool list. If you wire either vendor schema into an agent by hand, add the missing tools yourself or read `tools/list` from a live server instead.## What this setup does not give you@@ -192,7 +205,7 @@ No. `xerj mcp` proxies to a node that is already running. Start the node first w### How many tools does the XERJ MCP server expose?-10, and every one carries an `inputSchema`. Our captured `tools/list` returned `xerj_search`, 3 retrieval tools, 2 memory tools and 4 brain tools.+17 on v1.0.0-rc.97 (live `tools/list`, 2026-10-19), and every one carries an `inputSchema`: `xerj_search`, 3 more retrieval tools, 2 memory tools, 4 brain tools, `xerj_map`, `xerj_code_search`, `xerj_plan`, `xerj_field_report` and 3 Corpus Hub tools. The first capture for this page, in August 2026, returned 10.### Why does my MCP host fail to launch xerj?@@ -209,3 +222,4 @@ Only with a scoped API key. XERJ has no RBAC and no SSO, and `GET /_security/rol- [Agent quickstart](/docs/agents/quickstart)- [How do I let an agent search a folder on my laptop instead of crawling the web?](/compare/xerj-vs-web-agent-search)- [What's a local MCP search engine for Claude?](/compare/xerj-vs-localsynapse)+- [What is XERJ?](/answers/what-is-xerj) (same intent: Find the right tool)diff --git a/landing/answers/how-xerj-autoindexes-a-folder.html b/landing/answers/how-xerj-autoindexes-a-folder.htmlindex 8edde13a0..650977053 100644--- a/landing/answers/how-xerj-autoindexes-a-folder.html+++ b/landing/answers/how-xerj-autoindexes-a-folder.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>Point a tool at a folder and ask about the files</title>+<title>Point a tool at a folder and ask questions about the files</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/how-xerj-autoindexes-a-folder"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="Point a tool at a folder and ask about the files">+<meta property="og:title" content="Point a tool at a folder and ask questions about the files"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/how-xerj-autoindexes-a-folder"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Point a tool at a folder and ask about the files">+<meta name="twitter:title" content="Point a tool at a folder and ask questions about the files"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "Article",- "headline": "Point a tool at a folder and ask about the files",+ "headline": "Point a tool at a folder and ask questions about the files","description": "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.","url": "https://xerj.org/answers/how-xerj-autoindexes-a-folder","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>I WANT TO POINT SOMETHING AT A FOLDER AND THEN ASK QUESTIONS ABOUT WHAT'S IN IT. WHAT SHOULD I USE?</div><div class="kicker"><span>ANSWERS · FOLDER INDEXING</span></div><h1 class="h1-long">I want to point something at a folder and then ask questions about what's in it. What should I use?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The README's sample run indexed 25,329 files into 593 datasets and 83,103 records in 158.1 s with 8 workers. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/README.md">README.md</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Run <code class="inline">xerj autoindex <folder></code> against a local node. It detects the file types itself, builds typed indices, and needs no configuration file. Then run <code class="inline">xerj autoindex map</code> to see which index and field to query. Ask the folder a question over HTTP or through <code class="inline">xerj mcp</code>.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -209,7 +214,7 @@ xerj autoindex ./notes --url http://127.0.0.1:9200 --prefix notes --progress pla</code></pre><p>An agent answers from the returned passage and cites <code class="inline">ax_path</code>, rather than reading whole files into its context to find the paragraph.</p><h2>Hand the indexed folder to an agent</h2>- <p><code class="inline">xerj mcp</code> exposes the indexed folder to an agent host as a stdio tool server, serving 10 tools against a node that is already running. The agent sends a query and reads hits with file paths, instead of opening files one by one.</p>+ <p><code class="inline">xerj mcp</code> exposes the indexed folder to an agent host as a stdio tool server, serving 17 tools against a node that is already running. The agent sends a query and reads hits with file paths, instead of opening files one by one.</p><p>The node and the MCP server both run on your machine. No file content is uploaded, because the agent host calls a local process rather than a hosted API.</p><h2>Why a web search API cannot do this</h2><p>A web search API reads pages that are on the public web, and its documented input is a query string or a URL. A folder on your own disk has no URL, so no web API can reach it.</p>@@ -241,6 +246,9 @@ xerj autoindex ./notes --url http://127.0.0.1:9200 --prefix notes --progress pla<li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li><li><a href="/compare/xerj-vs-web-agent-search">How do I let an agent search a folder on my laptop instead of crawling the web?</a></li>+ <li><a href="/answers/index-multiple-csv-files">I have a directory of CSV exports. How do I query them without opening each one in Excel?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/search-json-and-jsonl-logs">What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/index-csv-with-many-columns">How do I index a CSV with many columns?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/how-xerj-autoindexes-a-folder.md b/landing/answers/how-xerj-autoindexes-a-folder.mdindex b81c0b17b..43da7963b 100644--- a/landing/answers/how-xerj-autoindexes-a-folder.md+++ b/landing/answers/how-xerj-autoindexes-a-folder.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/how-xerj-autoindexes-a-folder.md instead -->----title: "Point a tool at a folder and ask about the files"+title: "Point a tool at a folder and ask questions about the files"canonical: "https://xerj.org/answers/how-xerj-autoindexes-a-folder"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/answers/how-xerj-autoindexes-a-folder.md"---# I want to point something at a folder and then ask questions about what's in it. What should I use?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The README's sample run indexed 25,329 files into 593 datasets and 83,103 records in 158.1 s with 8 workers. (as of 2026-10-19; source: [README.md](https://github.com/xerj-org/xerj/blob/main/README.md))+**TL;DR** — Run `xerj autoindex <folder>` against a local node. It detects the file types itself, builds typed indices, and needs no configuration file. Then run `xerj autoindex map` to see which index and field to query. Ask the folder a question over HTTP or through `xerj mcp`.## Agent prompt@@ -89,7 +93,7 @@ An agent answers from the returned passage and cites `ax_path`, rather than read## Hand the indexed folder to an agent-`xerj mcp` exposes the indexed folder to an agent host as a stdio tool server, serving 10 tools against a node that is already running. The agent sends a query and reads hits with file paths, instead of opening files one by one.+`xerj mcp` exposes the indexed folder to an agent host as a stdio tool server, serving 17 tools against a node that is already running. The agent sends a query and reads hits with file paths, instead of opening files one by one.The node and the MCP server both run on your machine. No file content is uploaded, because the agent host calls a local process rather than a hosted API.@@ -144,3 +148,6 @@ Every run prints what it dropped and by which ignore rule, and files it opened b- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)- [How do I let an agent search a folder on my laptop instead of crawling the web?](/compare/xerj-vs-web-agent-search)+- [I have a directory of CSV exports. How do I query them without opening each one in Excel?](/answers/index-multiple-csv-files) (same intent: JSONL and data files)+- [What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?](/answers/search-json-and-jsonl-logs) (same intent: JSONL and data files)+- [How do I index a CSV with many columns?](/answers/index-csv-with-many-columns) (same intent: JSONL and data files)diff --git a/landing/answers/how-xerj-combines-search.html b/landing/answers/how-xerj-combines-search.htmlindex d03139386..110514976 100644--- a/landing/answers/how-xerj-combines-search.html+++ b/landing/answers/how-xerj-combines-search.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DOES XERJ COMBINE BM25 AND KNN?</div><div class="kicker"><span>ANSWERS · HYBRID SEARCH</span></div><h1>How does XERJ combine BM25 and kNN?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ's RRF uses a default k of 60, so a document ranked first in both lists scores 1/61 + 1/61 = 0.032787. <span class="mute">(as of 2026-08-23 · source: <a href="/answers/reciprocal-rank-fusion-when-to-use">/answers/reciprocal-rank-fusion-when-to-use</a>)</span></p>+ </div><p><strong>TL;DR</strong> — One <code class="inline">hybrid</code> request carries a BM25 sub-query and a kNN sub-query against a single index, and Reciprocal Rank Fusion merges their two ranked lists into one. Fusion reads rank position rather than score, so the BM25 and cosine scales never have to be normalized.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -232,6 +237,9 @@<li><a href="/answers/what-is-xerj">What is XERJ?</a></li><li><a href="/docs/recipes/hybrid-search">Hybrid search</a></li><li><a href="/docs/playbooks/vector-search">Playbook · Vector & RAG</a></li>+ <li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/do-search-embeddings-help">When should I turn on neural embeddings, and when is the lexical default enough?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/hybrid-search-quality-measured-ndcg">How much better is hybrid search than BM25? Measured nDCG numbers</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/how-xerj-combines-search.md b/landing/answers/how-xerj-combines-search.mdindex 1e1f91309..2cbd56594 100644--- a/landing/answers/how-xerj-combines-search.md+++ b/landing/answers/how-xerj-combines-search.md@@ -2,12 +2,16 @@---title: "How does XERJ combine BM25 and kNN?"canonical: "https://xerj.org/answers/how-xerj-combines-search"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/how-xerj-combines-search.md"---# How does XERJ combine BM25 and kNN?+**Short answer** (updated 2026-10-19): 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.++**Key number:** XERJ's RRF uses a default k of 60, so a document ranked first in both lists scores 1/61 + 1/61 = 0.032787. (as of 2026-08-23; source: [/answers/reciprocal-rank-fusion-when-to-use](/answers/reciprocal-rank-fusion-when-to-use))+**TL;DR** — One `hybrid` request carries a BM25 sub-query and a kNN sub-query against a single index, and Reciprocal Rank Fusion merges their two ranked lists into one. Fusion reads rank position rather than score, so the BM25 and cosine scales never have to be normalized.## Agent prompt@@ -132,3 +136,6 @@ Not on a default node. The default embedder is lexical feature hashing, so fusin- [What is XERJ?](/answers/what-is-xerj)- [Hybrid search](/docs/recipes/hybrid-search)- [Playbook · Vector & RAG](/docs/playbooks/vector-search)+- [Should an agent use API search or vector search?](/answers/mcp-api-search-or-vector-search) (same intent: retrieval research and eval)+- [When should I turn on neural embeddings, and when is the lexical default enough?](/answers/do-search-embeddings-help) (same intent: retrieval research and eval)+- [How much better is hybrid search than BM25? Measured nDCG numbers](/answers/hybrid-search-quality-measured-ndcg) (same intent: retrieval research and eval)diff --git a/landing/answers/hybrid-search-quality-measured-ndcg.html b/landing/answers/hybrid-search-quality-measured-ndcg.htmlindex abaa90ae3..63156bbf8 100644--- a/landing/answers/hybrid-search-quality-measured-ndcg.html+++ b/landing/answers/hybrid-search-quality-measured-ndcg.html@@ -156,6 +156,11 @@<div class="kicker"><span>ANSWERS · HYBRID RETRIEVAL: QUALITY</span></div><h1>How much better is hybrid search than BM25? Measured nDCG numbers</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> On BEIR NFCorpus (323 test queries, 3,633 documents), hybrid RRF scored nDCG@10 0.3448 against 0.3016 for BM25. <span class="mute">(as of 2026-09-18 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/nfcorpus.txt">benchmarks/beir-hybrid/results/nfcorpus.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — On two public BEIR datasets, XERJ's hybrid RRF beat BM25 alone and beat vectors alone: nDCG@10 0.6993 against 0.6572 on SciFact, and 0.3448 against 0.3016 on NFCorpus. These runs used <code class="inline">--embed-mode neural</code> with all-MiniLM-L6-v2. The default embedder is lexical feature hashing, and these vector figures do not apply to it.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -259,6 +264,9 @@<li><a href="/answers/rerank-search-results-calibrated-judge">How do I rerank search results with a relevance judge?</a></li><li><a href="/answers/local-embeddings-without-openai-api">I want local search that works offline, no cloud embeddings. What are my options?</a></li><li><a href="/answers/retrieval-that-says-not-found-with-file-line-citations">Retrieval that says not found, and cites file and line when it does answer</a></li>+ <li><a href="/answers/rag-without-vector-database">How do I build RAG without a vector database?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/how-xerj-combines-search">How does XERJ combine BM25 and kNN?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/hybrid-search-quality-measured-ndcg.md b/landing/answers/hybrid-search-quality-measured-ndcg.mdindex 7031f54c2..e1689524a 100644--- a/landing/answers/hybrid-search-quality-measured-ndcg.md+++ b/landing/answers/hybrid-search-quality-measured-ndcg.md@@ -8,6 +8,10 @@ source: "content/answers/hybrid-search-quality-measured-ndcg.md"# How much better is hybrid search than BM25? Measured nDCG numbers+**Short answer** (updated 2026-10-19): 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.++**Key number:** On BEIR NFCorpus (323 test queries, 3,633 documents), hybrid RRF scored nDCG@10 0.3448 against 0.3016 for BM25. (as of 2026-09-18; source: [benchmarks/beir-hybrid/results/nfcorpus.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/nfcorpus.txt))+**TL;DR** — On two public BEIR datasets, XERJ's hybrid RRF beat BM25 alone and beat vectors alone: nDCG@10 0.6993 against 0.6572 on SciFact, and 0.3448 against 0.3016 on NFCorpus. These runs used `--embed-mode neural` with all-MiniLM-L6-v2. The default embedder is lexical feature hashing, and these vector figures do not apply to it.## Agent prompt@@ -152,3 +156,6 @@ About 3 to 7 documents per second on CPU in this run. SciFact's 5,183 short abst- [How do I rerank search results with a relevance judge?](/answers/rerank-search-results-calibrated-judge)- [I want local search that works offline, no cloud embeddings. What are my options?](/answers/local-embeddings-without-openai-api)- [Retrieval that says not found, and cites file and line when it does answer](/answers/retrieval-that-says-not-found-with-file-line-citations)+- [How do I build RAG without a vector database?](/answers/rag-without-vector-database) (same intent: retrieval research and eval)+- [How does XERJ combine BM25 and kNN?](/answers/how-xerj-combines-search) (same intent: retrieval research and eval)+- [Should an agent use API search or vector search?](/answers/mcp-api-search-or-vector-search) (same intent: retrieval research and eval)diff --git a/landing/answers/improve-basic-faiss-rag-pipeline.html b/landing/answers/improve-basic-faiss-rag-pipeline.htmlindex 310425b0c..4d9441a2a 100644--- a/landing/answers/improve-basic-faiss-rag-pipeline.html+++ b/landing/answers/improve-basic-faiss-rag-pipeline.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I IMPROVE A BASIC FAISS RAG PIPELINE?</div><div class="kicker"><span>ANSWERS · RAG: TROUBLESHOOTING</span></div><h1>How do I improve a basic FAISS RAG pipeline?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> With the neural embedder, hybrid RRF beat vectors alone on BEIR SciFact: nDCG@10 0.6993 against 0.6764. <span class="mute">(as of 2026-09-18 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/scifact.txt">benchmarks/beir-hybrid/results/scifact.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Load the chunk store into one XERJ index with a <code class="inline">semantic_text</code> field. Retrieve with the <code class="inline">hybrid</code> clause instead of vectors alone. Our 20-chunk migration indexed cleanly, and the two request shapes a FAISS user writes first both returned HTTP 400.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -245,6 +250,9 @@<li><a href="/answers/rag-without-vector-database">How do I build RAG without a vector database?</a></li><li><a href="/answers/reciprocal-rank-fusion-when-to-use">What is Reciprocal Rank Fusion?</a></li><li><a href="/answers/vector-database-vs-full-text-search">What's the actual difference between a vector database and full-text search when I have a folder?</a></li>+ <li><a href="/answers/how-xerj-combines-search">How does XERJ combine BM25 and kNN?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/rerank-search-results-calibrated-judge">How do I rerank search results with a relevance judge?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/classify-text-from-labelled-history-without-llm">Can I route tickets or filter spam from labelled history, without an LLM call?</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/improve-basic-faiss-rag-pipeline.md b/landing/answers/improve-basic-faiss-rag-pipeline.mdindex 1e15183ba..8607d0471 100644--- a/landing/answers/improve-basic-faiss-rag-pipeline.md+++ b/landing/answers/improve-basic-faiss-rag-pipeline.md@@ -2,12 +2,16 @@---title: "Improve a basic FAISS RAG pipeline"canonical: "https://xerj.org/answers/improve-basic-faiss-rag-pipeline"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/improve-basic-faiss-rag-pipeline.md"---# How do I improve a basic FAISS RAG pipeline?+**Short answer** (updated 2026-10-19): 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.++**Key number:** With the neural embedder, hybrid RRF beat vectors alone on BEIR SciFact: nDCG@10 0.6993 against 0.6764. (as of 2026-09-18; source: [benchmarks/beir-hybrid/results/scifact.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/scifact.txt))+**TL;DR** — Load the chunk store into one XERJ index with a `semantic_text` field. Retrieve with the `hybrid` clause instead of vectors alone. Our 20-chunk migration indexed cleanly, and the two request shapes a FAISS user writes first both returned HTTP 400.## Agent prompt@@ -149,3 +153,6 @@ Partly. Weighted `linear` fusion reached 0.4583 precision at 3 on the lexical de- [How do I build RAG without a vector database?](/answers/rag-without-vector-database)- [What is Reciprocal Rank Fusion?](/answers/reciprocal-rank-fusion-when-to-use)- [What's the actual difference between a vector database and full-text search when I have a folder?](/answers/vector-database-vs-full-text-search)+- [How does XERJ combine BM25 and kNN?](/answers/how-xerj-combines-search) (same intent: retrieval research and eval)+- [How do I rerank search results with a relevance judge?](/answers/rerank-search-results-calibrated-judge) (same intent: retrieval research and eval)+- [Can I route tickets or filter spam from labelled history, without an LLM call?](/answers/classify-text-from-labelled-history-without-llm) (same intent: retrieval research and eval)diff --git a/landing/answers/index-csv-with-many-columns.html b/landing/answers/index-csv-with-many-columns.htmlindex 962656f87..598d6b42c 100644--- a/landing/answers/index-csv-with-many-columns.html+++ b/landing/answers/index-csv-with-many-columns.html@@ -156,6 +156,11 @@<div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I index a CSV with many columns?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Type inference keeps up to 512 fields per dataset (<code class="inline">MAX_FIELDS_PER_DATASET</code>), the ceiling for a very wide CSV. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/infer/mod.rs">engine/crates/xerj-autoindex/src/infer/mod.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex</code> infers a mapping for a wide CSV with no schema work. In a captured run a 120-column file became 128 mapped fields, 121 from the file and 7 provenance fields, across 501 documents. A terms aggregation on an inferred <code class="inline">keyword</code> column returned 4 exact buckets of 125.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -243,6 +248,9 @@<li><a href="/answers/full-text-search-sqlite-database">How do I full-text search a SQLite database I just copied onto disk?</a></li><li><a href="/docs/aggregations">Aggregations</a></li><li><a href="/answers/full-text-search-over-jsonl-files-cli">Full-text search over JSONL files from the CLI: index a folder and query it with BM25</a></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/search-zendesk-ticket-json-export">I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/index-csv-with-many-columns.md b/landing/answers/index-csv-with-many-columns.mdindex f05aa356d..a11b70c1d 100644--- a/landing/answers/index-csv-with-many-columns.md+++ b/landing/answers/index-csv-with-many-columns.md@@ -8,6 +8,10 @@ source: "content/answers/index-csv-with-many-columns.md"# How do I index a CSV with many columns?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Type inference keeps up to 512 fields per dataset (`MAX_FIELDS_PER_DATASET`), the ceiling for a very wide CSV. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/infer/mod.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/infer/mod.rs))+**TL;DR** — `xerj autoindex` infers a mapping for a wide CSV with no schema work. In a captured run a 120-column file became 128 mapped fields, 121 from the file and 7 provenance fields, across 501 documents. A terms aggregation on an inferred `keyword` column returned 4 exact buckets of 125.## Agent prompt@@ -142,3 +146,6 @@ XERJ falls back to a string type when fewer than 95% of the non-null values pars- [How do I full-text search a SQLite database I just copied onto disk?](/answers/full-text-search-sqlite-database)- [Aggregations](/docs/aggregations)- [Full-text search over JSONL files from the CLI: index a folder and query it with BM25](/answers/full-text-search-over-jsonl-files-cli)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)+- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map) (same intent: JSONL and data files)+- [I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?](/answers/search-zendesk-ticket-json-export) (same intent: JSONL and data files)diff --git a/landing/answers/index-markdown-into-elasticsearch-api.html b/landing/answers/index-markdown-into-elasticsearch-api.htmlindex d48eac18a..bd2ef14dd 100644--- a/landing/answers/index-markdown-into-elasticsearch-api.html+++ b/landing/answers/index-markdown-into-elasticsearch-api.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I INDEX MARKDOWN INTO THE ELASTICSEARCH API?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I index Markdown into the Elasticsearch API?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ passes 1366 of 1369 Elasticsearch YAML conformance cases, so ES clients query the Markdown index unchanged. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/README.md">README.md</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ indexes a Markdown folder with <code class="inline">xerj autoindex</code> and serves it on the Elasticsearch REST API. Markdown lands in the <code class="inline">txt-prose</code> family, not in a Markdown family. In our capture XERJ mapped 9 fields, extracted the title as the literal <code class="inline"># Runbook</code>, and produced no <code class="inline">headings</code> array.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -236,6 +241,9 @@<li><a href="/answers/search-obsidian-pdf-docx-attachments">What's the best way to search markdown notes and PDFs in the same vault?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li><li><a href="/docs/api-es-compat">ES-compatible API</a></li>+ <li><a href="/answers/notion-export-duplicate-search-results">Why does my Notion export duplicate titles?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-obsidian-omnisearch">How do I search an Obsidian vault from outside Obsidian?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-recoll">What's the best local desktop search for a folder of PDFs and docs?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/index-markdown-into-elasticsearch-api.md b/landing/answers/index-markdown-into-elasticsearch-api.mdindex 030de9c09..54a3d49d2 100644--- a/landing/answers/index-markdown-into-elasticsearch-api.md+++ b/landing/answers/index-markdown-into-elasticsearch-api.md@@ -2,12 +2,16 @@---title: "How do I index Markdown into Elasticsearch?"canonical: "https://xerj.org/answers/index-markdown-into-elasticsearch-api"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/index-markdown-into-elasticsearch-api.md"---# How do I index Markdown into the Elasticsearch API?+**Short answer** (updated 2026-10-19): 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.++**Key number:** XERJ passes 1366 of 1369 Elasticsearch YAML conformance cases, so ES clients query the Markdown index unchanged. (as of 2026-10-19; source: [README.md](https://github.com/xerj-org/xerj/blob/main/README.md))+**TL;DR** — XERJ indexes a Markdown folder with `xerj autoindex` and serves it on the Elasticsearch REST API. Markdown lands in the `txt-prose` family, not in a Markdown family. In our capture XERJ mapped 9 fields, extracted the title as the literal `# Runbook`, and produced no `headings` array.## Agent prompt@@ -136,3 +140,6 @@ Send a `match_phrase` query on `body` for the heading text. No `headings` field- [What's the best way to search markdown notes and PDFs in the same vault?](/answers/search-obsidian-pdf-docx-attachments)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)- [ES-compatible API](/docs/api-es-compat)+- [Why does my Notion export duplicate titles?](/answers/notion-export-duplicate-search-results) (same intent: logs and docs)+- [How do I search an Obsidian vault from outside Obsidian?](/compare/xerj-vs-obsidian-omnisearch) (same intent: logs and docs)+- [What's the best local desktop search for a folder of PDFs and docs?](/compare/xerj-vs-recoll) (same intent: logs and docs)diff --git a/landing/answers/index-monorepo-for-agent.html b/landing/answers/index-monorepo-for-agent.htmlindex 0780589dd..b8f63053b 100644--- a/landing/answers/index-monorepo-for-agent.html+++ b/landing/answers/index-monorepo-for-agent.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>How do I stop my agent reading the whole repo?</title>+<title>Index a monorepo so your agent stops reading the whole repo</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/index-monorepo-for-agent"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="How do I stop my agent reading the whole repo?">+<meta property="og:title" content="Index a monorepo so your agent stops reading the whole repo"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/index-monorepo-for-agent"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="How do I stop my agent reading the whole repo?">+<meta name="twitter:title" content="Index a monorepo so your agent stops reading the whole repo"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "How do I stop my agent reading the whole repo?",+ "headline": "Index a monorepo so your agent stops reading the whole repo","description": "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.","url": "https://xerj.org/answers/index-monorepo-for-agent","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I STOP MY AGENT FROM READING THE WHOLE REPO INTO CONTEXT?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I stop my agent from reading the whole repo into context?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> A reference-coding study measured 9,982 output tokens for the indexed agent against 26,477 for grep-driven Claude Code, 2.7 times fewer, both solving 16/16. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/docs/case-studies/reference-coding/data/results-multilang-final.json">docs/case-studies/reference-coding/data/results-multilang-final.json</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Run <code class="inline">xerj autoindex --dry-run</code> on the repository first. In our capture the dry run reported <code class="inline">files=3</code>, <code class="inline">ignored_files=2</code> and <code class="inline">ignored_dirs=3</code>, with 60 non-hidden files inside the pruned directories. The indexed tree then gave an agent 3 languages and 11 symbols to query.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -200,7 +205,7 @@ autoindex: ignore rules: .gitignore:coverage/ — 1 directory pruned (5 non-hi<pre class="code"><code class="language-sh">curl -s -XPOST 'http://127.0.0.1:9410/code-*/_search' -H 'content-type: application/json' -d '{"size":0,"aggs":{"by_language":{"terms":{"field":"language","size":40}},"total_symbols":{"sum":{"field":"symbol_count"}}}}'</code></pre><p>The <code class="inline">by_language</code> aggregation returned one bucket per language: <code class="inline">go</code>, <code class="inline">python</code> and <code class="inline">rust</code>. Do not carry a captured bucket size over to your own tree. Every per-declaration document carries the <code class="inline">language</code> of the file it came from, so a bucket counts declarations as well as files and moves with the code, not with the file count.</p>- <p>XERJ recognizes 34 languages through tree-sitter. This capture exercised 3 of them, so read the answer as the shape of the aggregation and not as a language-coverage test.</p>+ <p>XERJ recognizes 36 languages through tree-sitter. This capture exercised 3 of them, so read the answer as the shape of the aggregation and not as a language-coverage test.</p><h2>One definition hit an agent can use</h2><p>A <code class="inline">match</code> query on the <code class="inline">defs</code> field returns the file, the language and a <code class="inline">symbols</code> array. Each entry in that array carries a kind, a name and a line number. An agent reads the hit rather than the source file.</p><pre class="code"><code class="language-sh">curl -s -XPOST 'http://127.0.0.1:9410/code-*/_search' -H 'content-type: application/json' -d '{"query":{"match":{"defs":"merge_segments"}},"size":10,"_source":["ax_path","language","title","defs","symbols"],"track_total_hits":true}'@@ -224,7 +229,7 @@ autoindex: ignore rules: .gitignore:coverage/ — 1 directory pruned (5 non-hi<h3>My agent keeps opening every file in the repo. How do I let it search the folder instead?</h3><p>Run <code class="inline">xerj autoindex</code> on the tree and register <code class="inline">xerj mcp</code> with the agent host. The agent then calls a search tool and gets hits with paths, so the file-by-file walk stops.</p><h3>How do I give a coding agent the whole codebase as searchable context?</h3>- <p>Index the tree with <code class="inline">xerj autoindex</code>, which extracts definitions through tree-sitter for 34 languages, and expose the index over MCP. The agent queries it rather than loading the repository.</p>+ <p>Index the tree with <code class="inline">xerj autoindex</code>, which extracts definitions through tree-sitter for 36 languages, and expose the index over MCP. The agent queries it rather than loading the repository.</p><h3>How do I index a monorepo so my coding agent stops reading files one by one?</h3><p>Point <code class="inline">xerj autoindex</code> at the monorepo root. Built-in rules prune <code class="inline">node_modules/</code>, <code class="inline">vendor/</code>, <code class="inline">target/</code>, <code class="inline">dist/</code>, <code class="inline">build/</code>, <code class="inline">.venv/</code> and <code class="inline">__pycache__/</code>, and <code class="inline">--dry-run</code> prints the plan before anything is written.</p><h3>Which ignore file wins?</h3>@@ -238,6 +243,9 @@ autoindex: ignore rules: .gitignore:coverage/ — 1 directory pruned (5 non-hi<li><a href="/answers/syntax-aware-code-search-refactoring">How do I run syntax-aware code search?</a></li><li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a></li><li><a href="/compare/xerj-vs-ripgrep-for-code-agents">Is ripgrep enough for a coding agent, or do I need a code index?</a></li>+ <li><a href="/answers/search-yaml-xml-config-repository">How do I find every place a config key is set across YAML and XML in a repo?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/audit-php-codebase-with-an-index">How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/index-reference-library-for-coding-agent">How do I set up reference coding so the agent retrieves a mechanism before writing code?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/index-monorepo-for-agent.md b/landing/answers/index-monorepo-for-agent.mdindex d7d3c4303..24b9a90af 100644--- a/landing/answers/index-monorepo-for-agent.md+++ b/landing/answers/index-monorepo-for-agent.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/index-monorepo-for-agent.md instead -->----title: "How do I stop my agent reading the whole repo?"+title: "Index a monorepo so your agent stops reading the whole repo"canonical: "https://xerj.org/answers/index-monorepo-for-agent"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/index-monorepo-for-agent.md"---# How do I stop my agent from reading the whole repo into context?+**Short answer** (updated 2026-10-19): 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.++**Key number:** A reference-coding study measured 9,982 output tokens for the indexed agent against 26,477 for grep-driven Claude Code, 2.7 times fewer, both solving 16/16. (as of 2026-10-19; source: [docs/case-studies/reference-coding/data/results-multilang-final.json](https://github.com/xerj-org/xerj/blob/main/docs/case-studies/reference-coding/data/results-multilang-final.json))+**TL;DR** — Run `xerj autoindex --dry-run` on the repository first. In our capture the dry run reported `files=3`, `ignored_files=2` and `ignored_dirs=3`, with 60 non-hidden files inside the pruned directories. The indexed tree then gave an agent 3 languages and 11 symbols to query.## Agent prompt@@ -79,7 +83,7 @@ curl -s -XPOST 'http://127.0.0.1:9410/code-*/_search' -H 'content-type: applicatThe `by_language` aggregation returned one bucket per language: `go`, `python` and `rust`. Do not carry a captured bucket size over to your own tree. Every per-declaration document carries the `language` of the file it came from, so a bucket counts declarations as well as files and moves with the code, not with the file count.-XERJ recognizes 34 languages through tree-sitter. This capture exercised 3 of them, so read the answer as the shape of the aggregation and not as a language-coverage test.+XERJ recognizes 36 languages through tree-sitter. This capture exercised 3 of them, so read the answer as the shape of the aggregation and not as a language-coverage test.## One definition hit an agent can use@@ -123,7 +127,7 @@ Run `xerj autoindex` on the tree and register `xerj mcp` with the agent host. Th### How do I give a coding agent the whole codebase as searchable context?-Index the tree with `xerj autoindex`, which extracts definitions through tree-sitter for 34 languages, and expose the index over MCP. The agent queries it rather than loading the repository.+Index the tree with `xerj autoindex`, which extracts definitions through tree-sitter for 36 languages, and expose the index over MCP. The agent queries it rather than loading the repository.### How do I index a monorepo so my coding agent stops reading files one by one?@@ -146,3 +150,6 @@ No. Extraction is definitions only, with no call graph and no cross-file referen- [How do I run syntax-aware code search?](/answers/syntax-aware-code-search-refactoring)- [I need my agent to find a passage and cite the file, not dump the whole tree. How?](/answers/code-search-mcp-for-claude-code)- [Is ripgrep enough for a coding agent, or do I need a code index?](/compare/xerj-vs-ripgrep-for-code-agents)+- [How do I find every place a config key is set across YAML and XML in a repo?](/answers/search-yaml-xml-config-repository) (same intent: code search for agents)+- [How do I audit a PHP codebase with an index instead of grepping 1,400 files?](/answers/audit-php-codebase-with-an-index) (same intent: code search for agents)+- [How do I set up reference coding so the agent retrieves a mechanism before writing code?](/answers/index-reference-library-for-coding-agent) (same intent: code search for agents)diff --git a/landing/answers/index-multiple-csv-files.html b/landing/answers/index-multiple-csv-files.htmlindex 820841650..e8c940901 100644--- a/landing/answers/index-multiple-csv-files.html+++ b/landing/answers/index-multiple-csv-files.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>How do I search a folder of CSV exports?</title>+<title>Search a folder of CSV files with BM25, without a database</title><meta name="description" content="Point xerj autoindex at the folder once. A captured run split 3 CSV files across 2 schemas into 2 indices and answered one query across both of them."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/index-multiple-csv-files"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="How do I search a folder of CSV exports?">+<meta property="og:title" content="Search a folder of CSV files with BM25, without a database"><meta property="og:description" content="Point xerj autoindex at the folder once. A captured run split 3 CSV files across 2 schemas into 2 indices and answered one query across both of them."><meta property="og:url" content="https://xerj.org/answers/index-multiple-csv-files"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="How do I search a folder of CSV exports?">+<meta name="twitter:title" content="Search a folder of CSV files with BM25, without a database"><meta name="twitter:description" content="Point xerj autoindex at the folder once. A captured run split 3 CSV files across 2 schemas into 2 indices and answered one query across both of them."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,7 +70,7 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "How do I search a folder of CSV exports?",+ "headline": "Search a folder of CSV files with BM25, without a database","description": "Point xerj autoindex at the folder once. A captured run split 3 CSV files across 2 schemas into 2 indices and answered one query across both of them.","url": "https://xerj.org/answers/index-multiple-csv-files","image": "https://xerj.org/og/xerj-card.png",@@ -156,6 +156,11 @@<div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">I have a directory of CSV exports. How do I query them without opening each one in Excel?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> One CSV file yields at most 4,096 records per extraction window (<code class="inline">MAX_RECORDS_PER_FILE</code>) before the next window starts. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs">engine/crates/xerj-autoindex/src/extract/mod.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Give <code class="inline">xerj autoindex</code> the folder rather than each file. In a captured run, 3 CSV files across 2 different headers became 2 indices holding 402 and 151 documents. One <code class="inline">query_string</code> request across <code class="inline">multi-*</code> then returned 171 hits and split them by dataset.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -241,6 +246,9 @@<li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li><li><a href="/compare/xerj-vs-typesense">Do I need Typesense for an agent to search my docs?</a></li><li><a href="/answers/full-text-search-over-jsonl-files-cli">Full-text search over JSONL files from the CLI: index a folder and query it with BM25</a></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/search-gzipped-csv-or-json">How do I search a .csv.gz or .json.gz without unzipping it first?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/search-sql-dump-file">I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/index-multiple-csv-files.md b/landing/answers/index-multiple-csv-files.mdindex abe245cbc..9e639aa61 100644--- a/landing/answers/index-multiple-csv-files.md+++ b/landing/answers/index-multiple-csv-files.md@@ -1,6 +1,6 @@<!-- generated by build_articles.py — edit content/answers/index-multiple-csv-files.md instead -->----title: "How do I search a folder of CSV exports?"+title: "Search a folder of CSV files with BM25, without a database"canonical: "https://xerj.org/answers/index-multiple-csv-files"updated: "2026-10-19"source: "content/answers/index-multiple-csv-files.md"@@ -8,6 +8,10 @@ source: "content/answers/index-multiple-csv-files.md"# I have a directory of CSV exports. How do I query them without opening each one in Excel?+**Short answer** (updated 2026-10-19): 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.++**Key number:** One CSV file yields at most 4,096 records per extraction window (`MAX_RECORDS_PER_FILE`) before the next window starts. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/mod.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs))+**TL;DR** — Give `xerj autoindex` the folder rather than each file. In a captured run, 3 CSV files across 2 different headers became 2 indices holding 402 and 151 documents. One `query_string` request across `multi-*` then returned 171 hits and split them by dataset.## Agent prompt@@ -142,3 +146,6 @@ Run `xerj autoindex` on the folder again. Document ids are content-derived and t- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)- [Do I need Typesense for an agent to search my docs?](/compare/xerj-vs-typesense)- [Full-text search over JSONL files from the CLI: index a folder and query it with BM25](/answers/full-text-search-over-jsonl-files-cli)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)+- [How do I search a .csv.gz or .json.gz without unzipping it first?](/answers/search-gzipped-csv-or-json) (same intent: JSONL and data files)+- [I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?](/answers/search-sql-dump-file) (same intent: JSONL and data files)diff --git a/landing/answers/index-reference-library-for-coding-agent.html b/landing/answers/index-reference-library-for-coding-agent.htmlindex d91873795..bdb7bb881 100644--- a/landing/answers/index-reference-library-for-coding-agent.html+++ b/landing/answers/index-reference-library-for-coding-agent.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SET UP REFERENCE CODING SO THE AGENT RETRIEVES A MECHANISM BEFORE WRITING CODE?</div><div class="kicker"><span>ANSWERS · CODING AGENTS: REFERENCE RETRIEVAL</span></div><h1 class="h1-long">How do I set up reference coding so the agent retrieves a mechanism before writing code?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Across 16 runs in four languages, the xerj arm solved 16/16 with 9,982 output tokens at $1.58. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/docs/case-studies/reference-coding/data/results-multilang-final.json">docs/case-studies/reference-coding/data/results-multilang-final.json</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Clone the library you are about to write against. Index it with <code class="inline">xerj autoindex</code>. Let the agent retrieve the passage before it writes code. A published study measured a gain on code the model cannot recall, and a loss on code it knows.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -216,7 +221,7 @@ xerj autoindex ./ref --url http://127.0.0.1:9200 --prefix ref --state-dir ./stat</tbody></table><p>The verdict was objective: the generated code had to compile and pass a hidden test the model never saw.</p>- <p><strong>Across five languages, 16 runs.</strong> The native and xerj arms both solved 16/16. The xerj arm spent 9,982 output tokens at $1.58; the native arm spent 26,477 output tokens at $3.27. The bare arm solved 11/16 at $11.18.</p>+ <p><strong>Across four languages (Python, JavaScript, C and Java), 16 runs.</strong> The native and xerj arms both solved 16/16. The xerj arm spent 9,982 output tokens at $1.58; the native arm spent 26,477 output tokens at $3.27. The bare arm solved 11/16 at $11.18.</p><p><strong>On seven domains carrying a runtime contract the compiler cannot warn about, 21 runs.</strong> The bare arm solved 1/21 while burning $21.90. The native arm solved 21/21 at $4.26 and the xerj arm solved 21/21 at $3.38.</p><p>Both tracks carry the same caveat: <strong>the reference libraries were written for the study</strong>, so no model could have memorized them. That is what makes the contrast measurable, and it is also the reason the result does not automatically transfer to your repository.</p><h2>Where retrieval loses</h2>@@ -259,7 +264,7 @@ xerj autoindex ./ref --url http://127.0.0.1:9200 --prefix ref --state-dir ./stat<p>No. The 13 reference libraries were written for the study so they could not be in a training set. A real private codebase is the untested end state, and the page says so rather than assuming it transfers.</p><h2>Evidence</h2><ul>- <li>Across five languages, 16 runs: the xerj arm solved 16/16 with 9,982 output tokens at $1.58, the native arm solved 16/16 with 26,477 output tokens at $3.27, and the bare arm solved 11/16 at $11.18. — <code>docs/case-studies/reference-coding/data/results-multilang-final.json</code></li>+ <li>Across four languages (Python, JavaScript, C and Java), 16 runs: the xerj arm solved 16/16 with 9,982 output tokens at $1.58, the native arm solved 16/16 with 26,477 output tokens at $3.27, and the bare arm solved 11/16 at $11.18. — <code>docs/case-studies/reference-coding/data/results-multilang-final.json</code></li><li>On the seven domains with an unrecallable runtime contract, 21 runs: the bare arm solved 1/21 at $21.90, the native arm 21/21 at $4.26, and the xerj arm 21/21 at $3.38. — <code>docs/case-studies/reference-coding/CASE_STUDY.md:569</code></li><li>On memorized logic, 6 runs: the bare arm solved 6/6 at $1.49, the native arm 6/6 at $9.14, and the xerj arm 5/6 at $4.40. Retrieval lost that track. — <code>docs/case-studies/reference-coding/data/results-realism.json</code></li><li>On memorized bulk data, 3 runs: every arm solved 3/3, the native arm at $0.60 and the xerj arm at $1.43. Retrieval was overhead. — <code>docs/case-studies/reference-coding/data/results-search.json</code></li>@@ -272,6 +277,9 @@ xerj autoindex ./ref --url http://127.0.0.1:9200 --prefix ref --state-dir ./stat<li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a></li><li><a href="/answers/syntax-aware-code-search-refactoring">How do I run syntax-aware code search?</a></li><li><a href="/compare/xerj-vs-ripgrep-for-code-agents">Is ripgrep enough for a coding agent, or do I need a code index?</a></li>+ <li><a href="/answers/rebuild-reference-corpus-index">xerj corpus index --fresh failed. How do I rebuild a corpus index?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/compare/xerj-vs-ast-grep">ast-grep vs a code index for an agent?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/index-reference-library-for-coding-agent.md b/landing/answers/index-reference-library-for-coding-agent.mdindex 5856f1ab3..352b7cad1 100644--- a/landing/answers/index-reference-library-for-coding-agent.md+++ b/landing/answers/index-reference-library-for-coding-agent.md@@ -2,12 +2,16 @@---title: "Index a reference library for a coding agent"canonical: "https://xerj.org/answers/index-reference-library-for-coding-agent"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/index-reference-library-for-coding-agent.md"---# How do I set up reference coding so the agent retrieves a mechanism before writing code?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Across 16 runs in four languages, the xerj arm solved 16/16 with 9,982 output tokens at $1.58. (as of 2026-10-19; source: [docs/case-studies/reference-coding/data/results-multilang-final.json](https://github.com/xerj-org/xerj/blob/main/docs/case-studies/reference-coding/data/results-multilang-final.json))+**TL;DR** — Clone the library you are about to write against. Index it with `xerj autoindex`. Let the agent retrieve the passage before it writes code. A published study measured a gain on code the model cannot recall, and a loss on code it knows.## Agent prompt@@ -92,7 +96,7 @@ The study ran the same Claude Code three ways against 13 reference libraries inThe verdict was objective: the generated code had to compile and pass a hidden test the model never saw.-**Across five languages, 16 runs.** The native and xerj arms both solved 16/16. The xerj arm spent 9,982 output tokens at $1.58; the native arm spent 26,477 output tokens at $3.27. The bare arm solved 11/16 at $11.18.+**Across four languages (Python, JavaScript, C and Java), 16 runs.** The native and xerj arms both solved 16/16. The xerj arm spent 9,982 output tokens at $1.58; the native arm spent 26,477 output tokens at $3.27. The bare arm solved 11/16 at $11.18.**On seven domains carrying a runtime contract the compiler cannot warn about, 21 runs.** The bare arm solved 1/21 while burning $21.90. The native arm solved 21/21 at $4.26 and the xerj arm solved 21/21 at $3.38.@@ -167,7 +171,7 @@ No. The 13 reference libraries were written for the study so they could not be i## Evidence-- Across five languages, 16 runs: the xerj arm solved 16/16 with 9,982 output tokens at $1.58, the native arm solved 16/16 with 26,477 output tokens at $3.27, and the bare arm solved 11/16 at $11.18. — `docs/case-studies/reference-coding/data/results-multilang-final.json`+- Across four languages (Python, JavaScript, C and Java), 16 runs: the xerj arm solved 16/16 with 9,982 output tokens at $1.58, the native arm solved 16/16 with 26,477 output tokens at $3.27, and the bare arm solved 11/16 at $11.18. — `docs/case-studies/reference-coding/data/results-multilang-final.json`- On the seven domains with an unrecallable runtime contract, 21 runs: the bare arm solved 1/21 at $21.90, the native arm 21/21 at $4.26, and the xerj arm 21/21 at $3.38. — `docs/case-studies/reference-coding/CASE_STUDY.md:569`- On memorized logic, 6 runs: the bare arm solved 6/6 at $1.49, the native arm 6/6 at $9.14, and the xerj arm 5/6 at $4.40. Retrieval lost that track. — `docs/case-studies/reference-coding/data/results-realism.json`- On memorized bulk data, 3 runs: every arm solved 3/3, the native arm at $0.60 and the xerj arm at $1.43. Retrieval was overhead. — `docs/case-studies/reference-coding/data/results-search.json`@@ -180,3 +184,6 @@ No. The 13 reference libraries were written for the study so they could not be i- [I need my agent to find a passage and cite the file, not dump the whole tree. How?](/answers/code-search-mcp-for-claude-code)- [How do I run syntax-aware code search?](/answers/syntax-aware-code-search-refactoring)- [Is ripgrep enough for a coding agent, or do I need a code index?](/compare/xerj-vs-ripgrep-for-code-agents)+- [xerj corpus index --fresh failed. How do I rebuild a corpus index?](/answers/rebuild-reference-corpus-index) (same intent: code search for agents)+- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete) (same intent: code search for agents)+- [ast-grep vs a code index for an agent?](/compare/xerj-vs-ast-grep) (same intent: code search for agents)diff --git a/landing/answers/index.html b/landing/answers/index.htmlindex 59163cc24..495937107 100644--- a/landing/answers/index.html+++ b/landing/answers/index.html@@ -139,8 +139,8 @@<p>Direct answers about XERJ search, indexing and agent workflows, with evidence links and practical guidance for AI builders.</p><h2>Agent access and memory</h2><ul>- <li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a> — xerj mcp is a stdio MCP server that proxies 10 tools to a running XERJ node, so an agent reads an indexed local folder instead of opening files itself.</li>- <li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a> — Index the repository with xerj autoindex, then call xerj_search through xerj mcp. One captured call returned the file and line for 2 symbols without opening a file.</li>+ <li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a> — xerj mcp is a stdio MCP server that proxies 17 tools to a running XERJ node, so ChatGPT, Claude or Cursor search an indexed local folder instead of opening files.</li>+ <li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a> — 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.</li><li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> — 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.</li></ul><h2>Agent memory: link retrieval</h2>diff --git a/landing/answers/index.json b/landing/answers/index.jsonindex 72da17756..a2b77235e 100644--- a/landing/answers/index.json+++ b/landing/answers/index.json@@ -8,26 +8,47 @@"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-08-21",- "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."- },- {- "title": "Can ChatGPT search a folder on my laptop?",- "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-08-21",- "summary": "xerj mcp is a stdio MCP server that proxies 10 tools to a running XERJ node, so an agent reads an indexed local folder instead of opening files itself."+ "updated": "2026-10-19",+ "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": "Make an agent cite a file instead of dumping it",+ "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-19",- "summary": "Index the repository with xerj autoindex, then call xerj_search through xerj mcp. One captured call returned the file and line for 2 symbols without opening a file."+ "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-19",+ "summary": "xerj mcp is a stdio MCP server that proxies 17 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": "Should agent memory use a graph?",@@ -35,8 +56,14 @@"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-08-23",- "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."+ "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",@@ -44,8 +71,13 @@"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-09-13",- "summary": "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call."+ "updated": "2026-10-19",+ "summary": "Send dedup true on the store call and XERJ returns the existing id instead of a second document. The write path runs no model and made no outbound call.",+ "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. No model or summarization runs on the write path.",+ "queries": [+ "agent memory deduplication"+ ]},{"title": "Evidence behind agent-memory links",@@ -53,8 +85,14 @@"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-08-23",- "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."+ "updated": "2026-10-19",+ "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",@@ -62,8 +100,13 @@"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-08-23",- "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."+ "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": "Store user preferences an agent can recall later",@@ -71,8 +114,14 @@"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-09-13",- "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."+ "updated": "2026-10-19",+ "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",@@ -80,17 +129,28 @@"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-08-23",- "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."+ "updated": "2026-10-19",+ "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 on a laptop, no extra database",+ "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-08-23",- "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."+ "updated": "2026-10-19",+ "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",@@ -163,8 +223,14 @@"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-09-30",- "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."+ "updated": "2026-10-19",+ "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": "Audit a PHP codebase with an index, not grep",@@ -172,8 +238,14 @@"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-08-23",- "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."+ "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 from scratch?",@@ -181,8 +253,13 @@"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-09-21",- "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."+ "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",@@ -190,8 +267,14 @@"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-08-23",- "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."+ "updated": "2026-10-19",+ "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": "Can I route or spam-filter text without an LLM call?",@@ -199,8 +282,14 @@"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-09-20",- "summary": "Index labelled examples and classify new text by its nearest neighbours. Measured: 0.933 accuracy on 77-way intent routing, 0.983 on SMS spam, no LLM or API call."+ "updated": "2026-10-19",+ "summary": "Index labelled examples and classify new text by its nearest neighbours. Measured: 0.933 accuracy on 77-way intent routing, 0.983 on SMS spam, no LLM or API call.",+ "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": "How do I reduce embedding API cost?",@@ -208,17 +297,28 @@"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-08-23",- "summary": "XERJ embeds documents inside the node by default, so a captured lexical run made 0 outbound calls. Proxy mode sent exactly 2 calls for the same 100 documents."+ "updated": "2026-10-19",+ "summary": "XERJ embeds documents inside the node by default, so a captured lexical run made 0 outbound calls. Proxy mode sent exactly 2 calls for the same 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": "Local search offline with no cloud embeddings",+ "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-08-23",- "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."+ "updated": "2026-10-19",+ "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?",@@ -226,8 +326,14 @@"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-08-23",- "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."+ "updated": "2026-10-19",+ "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?",@@ -235,8 +341,13 @@"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-08-21",- "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."+ "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": "Find every place a config key is set in a repo",@@ -244,26 +355,43 @@"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-08-21",- "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."+ "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": "How do I find out what is in a messy data folder?",+ "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-08-21",- "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."+ "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": "How do I full-text search a SQLite database?",+ "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-08-21",- "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."+ "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?",@@ -272,7 +400,13 @@"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."+ "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?",@@ -280,8 +414,14 @@"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-08-21",- "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."+ "updated": "2026-10-19",+ "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?",@@ -289,8 +429,13 @@"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-09-20",- "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."+ "updated": "2026-10-19",+ "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?",@@ -298,8 +443,14 @@"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-08-21",- "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."+ "updated": "2026-10-19",+ "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?",@@ -307,35 +458,13 @@"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-08-21",- "summary": "Point xerj autoindex at an unzipped Confluence HTML space export. A captured run kept page titles, nested page bodies, and the attachment tree."- },- {- "title": "How do I search a folder of CSV exports?",- "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-19",- "summary": "Point xerj autoindex at the folder once. A captured run split 3 CSV files across 2 schemas into 2 indices and answered one query across both of them."- },- {- "title": "How do I search a folder of mixed documents?",- "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-08-21",- "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."- },- {- "title": "How do I search a folder of PDF papers?",- "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-08-21",- "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."+ "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 folder of Word contracts?",@@ -343,8 +472,13 @@"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-08-21",- "summary": "Index a folder of DOCX contracts with one xerj autoindex command and search their paragraphs. A captured run also shows the decompression guard refusing a file."+ "updated": "2026-10-19",+ "summary": "Index a folder of DOCX contracts with one xerj autoindex command and search their paragraphs. A captured run also shows the decompression guard refusing a file.",+ "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": "How do I search a Slack JSON export?",@@ -352,8 +486,13 @@"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-08-21",- "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."+ "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": "How do I search Kubernetes pod logs?",@@ -361,17 +500,29 @@"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-08-21",- "summary": "Collect the pod logs to disk first, then index the folder. A captured run answered 1 phrase query across 3 pods and returned 18 hits, 6 per pod."+ "updated": "2026-10-20",+ "summary": "Collect the pod logs to disk first, then index the folder. A captured run answered 1 phrase query across 3 pods 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": "How do I stop my agent reading the whole repo?",+ "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-08-21",- "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."+ "updated": "2026-10-19",+ "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?",@@ -379,8 +530,13 @@"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-08-21",- "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."+ "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": "Let an agent look up endpoints in an API spec",@@ -388,8 +544,13 @@"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-08-21",- "summary": "Index the spec file itself. A captured run found route names, operation descriptions and operationIds in both the JSON and the YAML serialization."+ "updated": "2026-10-19",+ "summary": "Index the spec file itself. A captured run found route names, operation descriptions and operationIds in both the JSON and the YAML 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 .ipynb notebooks and the .py files beside them",@@ -397,8 +558,13 @@"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-05",- "summary": "A captured run indexed 2 notebooks by heading section, with the heading path and starting cell, and the .py beside them, all in one index."+ "updated": "2026-10-19",+ "summary": "A captured run indexed 2 notebooks by heading section, with the heading path and starting cell, and the .py beside them, all in one index.",+ "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 a .csv.gz or .json.gz without unzipping it",@@ -406,8 +572,44 @@"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-09-26",- "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."+ "updated": "2026-10-19",+ "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. Gzip is a wrapper, not a family: autoindex strips it during the run and sniffs the bytes underneath, so a .csv.gz becomes typed columns and a .json.gz becomes documents with fields. No query re-reads the archive.",+ "queries": [+ "search large csv files fast without database"+ ]+ },+ {+ "title": "Search a folder of CSV files with BM25, 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-19",+ "summary": "Point xerj autoindex at the folder once. A captured run split 3 CSV files across 2 schemas into 2 indices and answered one query across both of them.",+ "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 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",@@ -416,7 +618,9 @@"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."+ "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",@@ -424,8 +628,13 @@"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-08-21",- "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."+ "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",@@ -433,8 +642,13 @@"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-08-21",- "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."+ "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 BVH motion-capture files",@@ -442,8 +656,10 @@"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-08-21",- "summary": "xerj autoindex detects the bvh family and extracts frames, frame_time_s, duration_s, joint_count and a joints keyword array. The family produces no body field."+ "updated": "2026-10-19",+ "summary": "xerj autoindex detects the bvh family and extracts frames, frame_time_s, duration_s, joint_count and a joints keyword array. The family produces no body field.",+ "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 gzipped logs without decompressing them",@@ -451,17 +667,43 @@"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-08-21",- "summary": "XERJ autoindex decompresses a .gz log once at index time. In our capture the plain and gzip copies returned identical counts, identical hits and one date field."+ "updated": "2026-10-19",+ "summary": "XERJ autoindex decompresses a .gz log once at index time. In our capture the plain and gzip copies returned identical counts, identical hits and one date field.",+ "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 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 JSON logs and gzip logs in one 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."+ "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 markdown notes and PDFs in one vault",@@ -469,8 +711,13 @@"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-08-21",- "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."+ "updated": "2026-10-19",+ "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 Unity scenes and the C# beside them",@@ -478,8 +725,10 @@"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-08-21",- "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."+ "updated": "2026-10-19",+ "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?",@@ -487,17 +736,29 @@"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-08-21",- "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."+ "updated": "2026-10-19",+ "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": "Point a tool at a folder and ask about the 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-09-26",- "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."+ "updated": "2026-10-19",+ "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",@@ -505,17 +766,25 @@"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-09-26",- "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."+ "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": "RAG without a vector database",+ "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-19",- "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."+ "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.",@@ -524,7 +793,13 @@"markdown_url": "https://xerj.org/answers/hybrid-search-quality-measured-ndcg.md","cluster": "Hybrid retrieval: quality","updated": "2026-10-19",- "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."+ "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?",@@ -532,8 +807,14 @@"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-09-26",- "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."+ "updated": "2026-10-19",+ "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": "What is Reciprocal Rank Fusion?",@@ -541,8 +822,13 @@"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-08-23",- "summary": "Reciprocal Rank Fusion scores a document by 1 divided by k plus its rank in each list. XERJ uses k 60, and this page checks the arithmetic by hand."+ "updated": "2026-10-19",+ "summary": "Reciprocal Rank Fusion scores a document by 1 divided by k plus its rank in each list. XERJ uses k 60, and this page checks the arithmetic by hand.",+ "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?",@@ -550,8 +836,14 @@"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-08-23",- "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."+ "updated": "2026-10-19",+ "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?",@@ -559,8 +851,10 @@"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-09-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."+ "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 the files live in a bucket?",@@ -568,8 +862,10 @@"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-09-20",- "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."+ "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?",@@ -577,8 +873,13 @@"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-08-23",- "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."+ "updated": "2026-10-19",+ "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?",@@ -586,8 +887,10 @@"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-08-23",- "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."+ "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?",@@ -595,8 +898,10 @@"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-05",- "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."+ "updated": "2026-10-19",+ "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?",@@ -604,8 +909,10 @@"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-09-20",- "summary": "xerj autoindex exits 0 complete, 3 completed-with-junk, 4 needs-a-decision, 2 usage and 1 on an endpoint or journal failure. Only 4 is asking you a question."+ "updated": "2026-10-19",+ "summary": "xerj autoindex exits 0 complete, 3 completed-with-junk, 4 needs-a-decision, 2 usage and 1 on an endpoint or journal failure. Only 4 is asking you a question.",+ "intent_group": "operating autoindex",+ "answer": "What does indexer exit code 3 mean for xerj autoindex? It means success: the run completed and recorded some junk files. Exit 0 is a clean completion, 4 means the estimate exceeded --max-minutes and nothing was indexed, 2 is a usage error, and 1 is an endpoint or journal failure. Only exit 4 asks you a question."},{"title": "Why autoindex refuses a .zip and asks you to extract it",@@ -613,8 +920,10 @@"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-09-20",- "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."+ "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?",@@ -622,8 +931,10 @@"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-09-20",- "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."+ "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": "Why does xerj autoindex say the server pushed back (429)?",@@ -631,8 +942,10 @@"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-09-26",- "summary": "When the node answers a bulk, or items inside one, with HTTP 429 (its memory circuit breaker), xerj autoindex re-sends the rejected items, waits out the moment, and reports bulk_retries on the terminal line. Only 600 s of re-sends that never clear is fatal."+ "updated": "2026-10-19",+ "summary": "When the node answers a bulk, or items inside one, with HTTP 429 (its memory circuit breaker), xerj autoindex re-sends the rejected items, waits out the moment, and reports bulk_retries on the terminal line. Only 600 s of re-sends that never clear is fatal.",+ "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?",@@ -640,26 +953,44 @@"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-09-20",- "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."+ "updated": "2026-10-19",+ "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": "Is there a single-binary local search engine?",+ "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-08-23",- "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."+ "updated": "2026-10-19",+ "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": "What can I use for low-volume log search?",+ "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-08-23",- "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."+ "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?",@@ -667,8 +998,10 @@"canonical_url": "https://xerj.org/answers/read-autoindex-progress","markdown_url": "https://xerj.org/answers/read-autoindex-progress.md","cluster": "Operations: progress",- "updated": "2026-09-20",- "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."+ "updated": "2026-10-19",+ "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": "The indexer died overnight. Do I start over?",@@ -676,8 +1009,13 @@"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-08-23",- "summary": "XERJ keeps a resume journal in the state directory, so re-running autoindex is idempotent. A capture reached 82,231 documents and matched a clean control run."+ "updated": "2026-10-19",+ "summary": "XERJ keeps a resume journal in the state directory, so re-running autoindex is idempotent. A capture reached 82,231 documents and matched a clean control 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?",@@ -685,8 +1023,10 @@"canonical_url": "https://xerj.org/answers/reindex-taking-forever","markdown_url": "https://xerj.org/answers/reindex-taking-forever.md","cluster": "Operations: reindex",- "updated": "2026-08-23",- "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."+ "updated": "2026-10-19",+ "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?",@@ -695,7 +1035,13 @@"markdown_url": "https://xerj.org/answers/what-is-xerj.md","cluster": "Product identity","updated": "2026-10-19",- "summary": "XERJ is an Apache-2.0 single Rust binary that indexes a local folder with one command and answers search, agent memory and MCP calls from the same process."+ "summary": "XERJ is an Apache-2.0 single Rust binary that indexes a local folder with one command and answers search, agent memory and MCP calls from the same process.",+ "intent_group": "Find the right tool",+ "answer": "What is XERJ? It is an open-source local search engine for AI agents: a single Apache-2.0 Rust binary. Point xerj autoindex at a folder of code, documents or data files and query it over the Elasticsearch REST API, or let an agent call it through xerj mcp, which also stores agent memory.",+ "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",@@ -703,8 +1049,14 @@"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-08-23",- "summary": "Move the chunk store into one XERJ index and fuse BM25 with kNN. Two request shapes that a FAISS user reaches for first both return HTTP 400."+ "updated": "2026-10-19",+ "summary": "Move the chunk store into one XERJ index and fuse BM25 with kNN. Two request shapes that a FAISS user reaches for first both 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?",@@ -712,8 +1064,10 @@"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-08-23",- "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."+ "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?",@@ -721,8 +1075,14 @@"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-08-23",- "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."+ "updated": "2026-10-19",+ "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": "Read-only search over a folder, without uploading it",@@ -730,8 +1090,10 @@"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-09-20",- "summary": "Index the folder on your own machine, then run xerj share: the other person gets a link, a passcode and a read-only search page. The folder is not uploaded."+ "updated": "2026-10-19",+ "summary": "Index the folder on your own machine, then run xerj share: the other person gets a link, a passcode and a read-only search page. The folder is not uploaded.",+ "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": "Share a local search index through a tunnel",@@ -739,8 +1101,10 @@"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-09-20",- "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."+ "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": "What a XERJ share-link guest can and cannot reach",@@ -748,8 +1112,10 @@"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-09-20",- "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."+ "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."}]}diff --git a/landing/answers/is-pdf-indexing-efficient.html b/landing/answers/is-pdf-indexing-efficient.htmlindex b17383baf..cfe547858 100644--- a/landing/answers/is-pdf-indexing-efficient.html+++ b/landing/answers/is-pdf-indexing-efficient.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>IS IT EFFICIENT TO INDEX PDF FILES?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>Is it efficient to index PDF files?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ runs at most 4 concurrent PDF worker processes (<code class="inline">MAX_PDF_WORKERS</code>) and reads at most 100,000 pages per file (<code class="inline">MAX_PAGES</code>). <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/resources.rs">engine/crates/xerj-autoindex/src/resources.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Yes, when the alternative is opening every file by hand, and PDF is still the slowest family XERJ parses. XERJ isolates extraction in a worker process, caps it 5 ways, and parses each file once. In our capture 3 born-digital PDFs produced 9 documents, and the 4th file failed with a reason string.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -254,6 +259,9 @@ autoindex: memory safe zone 966 MiB allows 1 PDF worker(s) at 1536 MiB each, not<li><a href="/answers/search-all-pdfs-in-a-folder">I downloaded a bunch of papers as PDFs. How do I search across them?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li><li><a href="/answers/estimate-autoindex-time-before-running">How do I estimate folder-indexing time?</a></li>+ <li><a href="/answers/read-indexed-email-and-pdf-folder">I indexed a folder of email and PDFs. How do I actually read what it found?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-recoll">What's the best local desktop search for a folder of PDFs and docs?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-spotlight">XERJ vs macOS Spotlight for folder content an agent can query</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/is-pdf-indexing-efficient.md b/landing/answers/is-pdf-indexing-efficient.mdindex 623f33611..82c96e07d 100644--- a/landing/answers/is-pdf-indexing-efficient.md+++ b/landing/answers/is-pdf-indexing-efficient.md@@ -2,12 +2,16 @@---title: "Is it efficient to index PDF files?"canonical: "https://xerj.org/answers/is-pdf-indexing-efficient"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/is-pdf-indexing-efficient.md"---# Is it efficient to index PDF files?+**Short answer** (updated 2026-10-19): 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.++**Key number:** XERJ runs at most 4 concurrent PDF worker processes (`MAX_PDF_WORKERS`) and reads at most 100,000 pages per file (`MAX_PAGES`). (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/resources.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/resources.rs))+**TL;DR** — Yes, when the alternative is opening every file by hand, and PDF is still the slowest family XERJ parses. XERJ isolates extraction in a worker process, caps it 5 ways, and parses each file once. In our capture 3 born-digital PDFs produced 9 documents, and the 4th file failed with a reason string.## Agent prompt@@ -157,3 +161,6 @@ Yes. The decision gate measures an extraction floor first. On 2,500 PDFs with `-- [I downloaded a bunch of papers as PDFs. How do I search across them?](/answers/search-all-pdfs-in-a-folder)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)- [How do I estimate folder-indexing time?](/answers/estimate-autoindex-time-before-running)+- [I indexed a folder of email and PDFs. How do I actually read what it found?](/answers/read-indexed-email-and-pdf-folder) (same intent: logs and docs)+- [What's the best local desktop search for a folder of PDFs and docs?](/compare/xerj-vs-recoll) (same intent: logs and docs)+- [XERJ vs macOS Spotlight for folder content an agent can query](/compare/xerj-vs-spotlight) (same intent: logs and docs)diff --git a/landing/answers/keep-index-current-as-files-change.html b/landing/answers/keep-index-current-as-files-change.htmlindex 2e0493f18..f8cb8d6b4 100644--- a/landing/answers/keep-index-current-as-files-change.html+++ b/landing/answers/keep-index-current-as-files-change.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-19",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I KEEP A SEARCH INDEX UP TO DATE AS FILES CHANGE, WITHOUT RE-INDEXING EVERYTHING?</div><div class="kicker"><span>ANSWERS · OPERATIONS: FRESHNESS</span></div><h1 class="h1-long">How do I keep a search index up to date as files change, without re-indexing everything?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-19 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-19 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The --debounce quiet period accepts at most 60,000 ms (<code class="inline">MAX_DEBOUNCE_MS</code>); longer than a minute is a timer, not a debounce. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/cli.rs">engine/crates/xerj-autoindex/src/cli.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex ./folder --watch --no-graph</code> indexes once, then reindexes what changed. At idle it costs nothing; a re-run on a timer costs a full walk and a full re-hash of the corpus on every tick.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -259,6 +264,9 @@ xerj autoindex ./notes --url http://127.0.0.1:9200 \<li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a></li><li><a href="/answers/autoindex-exit-codes">The indexer exited 3 (or 4). Did it fail?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li>+ <li><a href="/answers/keep-s3-bucket-index-current">How do I keep an index current when the files live in an object store?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/estimate-autoindex-time-before-running">How do I estimate folder-indexing time?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/read-autoindex-progress">How do I read autoindex progress?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/keep-index-current-as-files-change.md b/landing/answers/keep-index-current-as-files-change.mdindex e51db7a5a..8235e744c 100644--- a/landing/answers/keep-index-current-as-files-change.md+++ b/landing/answers/keep-index-current-as-files-change.md@@ -2,12 +2,16 @@---title: "How do I keep a XERJ index up to date as files change?"canonical: "https://xerj.org/answers/keep-index-current-as-files-change"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/keep-index-current-as-files-change.md"---# How do I keep a search index up to date as files change, without re-indexing everything?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The --debounce quiet period accepts at most 60,000 ms (`MAX_DEBOUNCE_MS`); longer than a minute is a timer, not a debounce. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/cli.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/cli.rs))+**TL;DR** — `xerj autoindex ./folder --watch --no-graph` indexes once, thenreindexes what changed. At idle it costs nothing; a re-run on a timer costs afull walk and a full re-hash of the corpus on every tick.@@ -233,3 +237,6 @@ A write that produces no filesystem event and leaves size, mtime and inode ident- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete)- [The indexer exited 3 (or 4). Did it fail?](/answers/autoindex-exit-codes)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)+- [How do I keep an index current when the files live in an object store?](/answers/keep-s3-bucket-index-current) (same intent: operating autoindex)+- [How do I estimate folder-indexing time?](/answers/estimate-autoindex-time-before-running) (same intent: operating autoindex)+- [How do I read autoindex progress?](/answers/read-autoindex-progress) (same intent: operating autoindex)diff --git a/landing/answers/keep-s3-bucket-index-current.html b/landing/answers/keep-s3-bucket-index-current.htmlindex 5f1051a99..44ce2cedd 100644--- a/landing/answers/keep-s3-bucket-index-current.html+++ b/landing/answers/keep-s3-bucket-index-current.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-19",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I KEEP AN INDEX CURRENT WHEN THE FILES LIVE IN AN OBJECT STORE?</div><div class="kicker"><span>ANSWERS · OBJECT STORAGE</span></div><h1>How do I keep an index current when the files live in an object store?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-19 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-19 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The default poll interval is 300 seconds and the default budget is 200,000 Class A operations a month. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/objwatch/cost.rs">engine/crates/xerj-autoindex/src/objwatch/cost.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Poll the prefix with <code class="inline">xerj autoindex s3://bucket/prefix --watch</code>. Decide the interval from the operation count, not from the latency you want. <code class="inline">ListObjectsV2</code> is a Class A operation at one call per 1,000 keys, <strong>every cycle</strong>. Cloudflare R2's free tier is 1,000,000 Class A operations a month. A 5-second poll spends half of that to watch an empty bucket. Full detail in <a href="https://github.com/xerj-org/xerj/blob/main/docs/WATCHING_OBJECT_STORAGE.md">docs/WATCHING_OBJECT_STORAGE.md</a>.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -299,6 +304,9 @@<li><a href="/answers/does-xerj-support-s3-alerting-plugins">Does XERJ support S3 storage, alerting or custom plugins yet?</a></li><li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a></li><li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a></li>+ <li><a href="/answers/keep-index-current-as-files-change">How do I keep a search index up to date as files change, without re-indexing everything?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/search-files-in-an-s3-bucket">How do I search files that live in an S3 bucket?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/estimate-autoindex-time-before-running">How do I estimate folder-indexing time?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/keep-s3-bucket-index-current.md b/landing/answers/keep-s3-bucket-index-current.mdindex 564fc8aca..eb0428a81 100644--- a/landing/answers/keep-s3-bucket-index-current.md+++ b/landing/answers/keep-s3-bucket-index-current.md@@ -2,12 +2,16 @@---title: "How do I keep an index current when the files live in a bucket?"canonical: "https://xerj.org/answers/keep-s3-bucket-index-current"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/keep-s3-bucket-index-current.md"---# How do I keep an index current when the files live in an object store?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The default poll interval is 300 seconds and the default budget is 200,000 Class A operations a month. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/objwatch/cost.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/objwatch/cost.rs))+**TL;DR** — Poll the prefix with `xerj autoindex s3://bucket/prefix --watch`. Decide the interval from the operation count, not from the latency you want. `ListObjectsV2` is a Class A operation at one call per 1,000 keys, **every cycle**. Cloudflare R2's free tier is 1,000,000 Class A operations a month. A 5-second poll spends half of that to watch an empty bucket. Full detail in [docs/WATCHING_OBJECT_STORAGE.md](https://github.com/xerj-org/xerj/blob/main/docs/WATCHING_OBJECT_STORAGE.md).## Agent prompt@@ -211,3 +215,6 @@ Not yet. The docs page writes down exactly what it would take, including the pie- [Does XERJ support S3 storage, alerting or custom plugins yet?](/answers/does-xerj-support-s3-alerting-plugins)- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search)- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete)+- [How do I keep a search index up to date as files change, without re-indexing everything?](/answers/keep-index-current-as-files-change) (same intent: operating autoindex)+- [How do I search files that live in an S3 bucket?](/answers/search-files-in-an-s3-bucket) (same intent: operating autoindex)+- [How do I estimate folder-indexing time?](/answers/estimate-autoindex-time-before-running) (same intent: operating autoindex)diff --git a/landing/answers/knowledge-graphs-for-agent-memory.html b/landing/answers/knowledge-graphs-for-agent-memory.htmlindex 0e0088fd5..1f9de690e 100644--- a/landing/answers/knowledge-graphs-for-agent-memory.html+++ b/landing/answers/knowledge-graphs-for-agent-memory.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>SHOULD AGENT MEMORY USE A KNOWLEDGE GRAPH?</div><div class="kicker"><span>ANSWERS · AGENT MEMORY: LINK RETRIEVAL</span></div><h1>Should agent memory use a knowledge graph?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The shared-term detector links a document to at most 5 others (<code class="inline">MAX_EDGES_PER_DOC</code>). <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/detect/sharedterm.rs">engine/crates/xerj-autoindex/src/detect/sharedterm.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Links help, and XERJ is not a graph database. XERJ builds a bounded, graph-shaped link index over the 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.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -248,6 +253,9 @@ Iterate: expand again from this response's 'reachable' ids.<li><a href="/answers/evidence-for-agent-memory-links">How can agent-memory links retain evidence?</a></li><li><a href="/answers/private-agent-memory-namespaces">How do I give two agents private memory on one laptop?</a></li><li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a></li>+ <li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/store-agent-memory-without-llm-call">How do I stop an agent memory store from filling with near-duplicate notes?</a> <span class="mute">· same intent: agent memory</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/knowledge-graphs-for-agent-memory.md b/landing/answers/knowledge-graphs-for-agent-memory.mdindex ffdfbdc32..ff9fe6943 100644--- a/landing/answers/knowledge-graphs-for-agent-memory.md+++ b/landing/answers/knowledge-graphs-for-agent-memory.md@@ -2,12 +2,16 @@---title: "Should agent memory use a graph?"canonical: "https://xerj.org/answers/knowledge-graphs-for-agent-memory"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/knowledge-graphs-for-agent-memory.md"---# Should agent memory use a knowledge graph?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The shared-term detector links a document to at most 5 others (`MAX_EDGES_PER_DOC`). (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/detect/sharedterm.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/detect/sharedterm.rs))+**TL;DR** — Links help, and XERJ is not a graph database. XERJ builds a bounded, graph-shaped link index over the 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.## Agent prompt@@ -147,3 +151,6 @@ In an index named `.xerj-memory-{brain}-edges`. `autoindex` creates one per inde- [How can agent-memory links retain evidence?](/answers/evidence-for-agent-memory-links)- [How do I give two agents private memory on one laptop?](/answers/private-agent-memory-namespaces)- [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions)+- [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant) (same intent: agent memory)+- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database) (same intent: agent memory)+- [How do I stop an agent memory store from filling with near-duplicate notes?](/answers/store-agent-memory-without-llm-call) (same intent: agent memory)diff --git a/landing/answers/local-code-search-mcp-fewer-tokens-than-grep.html b/landing/answers/local-code-search-mcp-fewer-tokens-than-grep.htmlindex 86d1f6c4a..20195a85e 100644--- a/landing/answers/local-code-search-mcp-fewer-tokens-than-grep.html+++ b/landing/answers/local-code-search-mcp-fewer-tokens-than-grep.html@@ -2,6 +2,17 @@<!DOCTYPE html><html lang="en" data-theme="day"><head>+<!-- ga4:begin — generated by scripts/seo/seo_head.py · do not hand-edit -->+<!-- Google tag (gtag.js) -->+<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z77ETCDJYL"></script>+<script>+ window.dataLayer = window.dataLayer || [];+ function gtag(){dataLayer.push(arguments);}+ gtag('js', new Date());++ gtag('config', 'G-Z77ETCDJYL');+</script>+<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Local code search MCP that uses fewer tokens than grep</title>diff --git a/landing/answers/local-embeddings-without-openai-api.html b/landing/answers/local-embeddings-without-openai-api.htmlindex 1cf46a632..8d8ec8cd7 100644--- a/landing/answers/local-embeddings-without-openai-api.html+++ b/landing/answers/local-embeddings-without-openai-api.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>Local search offline with no cloud embeddings</title>+<title>Offline local search with no cloud embeddings or OpenAI API</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/local-embeddings-without-openai-api"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="Local search offline with no cloud embeddings">+<meta property="og:title" content="Offline local search with no cloud embeddings or OpenAI API"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/local-embeddings-without-openai-api"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Local search offline with no cloud embeddings">+<meta name="twitter:title" content="Offline local search with no cloud embeddings or OpenAI API"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "Local search offline with no cloud embeddings",+ "headline": "Offline local search with no cloud embeddings or OpenAI API","description": "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.","url": "https://xerj.org/answers/local-embeddings-without-openai-api","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>I WANT LOCAL SEARCH THAT WORKS OFFLINE, NO CLOUD EMBEDDINGS. WHAT ARE MY OPTIONS?</div><div class="kicker"><span>ANSWERS · EMBEDDINGS: LOCAL EXECUTION</span></div><h1 class="h1-long">I want local search that works offline, no cloud embeddings. What are my options?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The opt-in neural embedder downloads about 90 MB of model files once; the default lexical embedder downloads nothing. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/README.md">README.md</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ embeds locally in two ways. The default embedder is lexical feature hashing inside the binary, which needs no model and made 0 outbound connections in our capture. The flag <code class="inline">--embed-mode neural</code> loads <code class="inline">all-MiniLM-L6-v2</code> from a local cache and runs it on the CPU.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -231,6 +236,9 @@<li><a href="/answers/store-agent-memory-without-llm-call">How do I stop an agent memory store from filling with near-duplicate notes?</a></li><li><a href="/answers/rag-without-vector-database">How do I build RAG without a vector database?</a></li><li><a href="/compare/xerj-vs-khoj">What's a simpler alternative to Khoj if I only need search and memory?</a></li>+ <li><a href="/answers/reduce-embedding-api-cost">How do I reduce embedding API cost?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/classify-text-from-labelled-history-without-llm">Can I route tickets or filter spam from labelled history, without an LLM call?</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/local-embeddings-without-openai-api.md b/landing/answers/local-embeddings-without-openai-api.mdindex 5516b94de..e50f92de0 100644--- a/landing/answers/local-embeddings-without-openai-api.md+++ b/landing/answers/local-embeddings-without-openai-api.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/local-embeddings-without-openai-api.md instead -->----title: "Local search offline with no cloud embeddings"+title: "Offline local search with no cloud embeddings or OpenAI API"canonical: "https://xerj.org/answers/local-embeddings-without-openai-api"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/local-embeddings-without-openai-api.md"---# I want local search that works offline, no cloud embeddings. What are my options?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The opt-in neural embedder downloads about 90 MB of model files once; the default lexical embedder downloads nothing. (as of 2026-10-19; source: [README.md](https://github.com/xerj-org/xerj/blob/main/README.md))+**TL;DR** — XERJ embeds locally in two ways. The default embedder is lexical feature hashing inside the binary, which needs no model and made 0 outbound connections in our capture. The flag `--embed-mode neural` loads `all-MiniLM-L6-v2` from a local cache and runs it on the CPU.## Agent prompt@@ -135,3 +139,6 @@ No. XERJ refuses a backend swap on a populated semantic index rather than mixing- [How do I stop an agent memory store from filling with near-duplicate notes?](/answers/store-agent-memory-without-llm-call)- [How do I build RAG without a vector database?](/answers/rag-without-vector-database)- [What's a simpler alternative to Khoj if I only need search and memory?](/compare/xerj-vs-khoj)+- [How do I reduce embedding API cost?](/answers/reduce-embedding-api-cost) (same intent: retrieval research and eval)+- [Should an agent use API search or vector search?](/answers/mcp-api-search-or-vector-search) (same intent: retrieval research and eval)+- [Can I route tickets or filter spam from labelled history, without an LLM call?](/answers/classify-text-from-labelled-history-without-llm) (same intent: retrieval research and eval)diff --git a/landing/answers/mcp-api-search-or-vector-search.html b/landing/answers/mcp-api-search-or-vector-search.htmlindex 970c4dd72..20c14c14b 100644--- a/landing/answers/mcp-api-search-or-vector-search.html+++ b/landing/answers/mcp-api-search-or-vector-search.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>SHOULD AN AGENT USE API SEARCH OR VECTOR SEARCH?</div><div class="kicker"><span>ANSWERS · AGENT ACCESS AND MEMORY</span></div><h1>Should an agent use API search or vector search?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Four of the 17 XERJ MCP tools retrieve: <code class="inline">xerj_search</code>, <code class="inline">xerj_semantic_search</code>, <code class="inline">xerj_vector_search</code> and <code class="inline">xerj_hybrid_search</code>. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json">landing/docs/agents/schemas/mcp-tools.json</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Start with <code class="inline">xerj_search</code>, 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. The fused <code class="inline">xerj_hybrid_search</code> call returned 6 documents against 4, 3 and 3 for the single-signal tools.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -262,6 +267,9 @@<li><a href="/answers/vector-database-vs-full-text-search">What's the actual difference between a vector database and full-text search when I have a folder?</a></li><li><a href="/answers/do-search-embeddings-help">When should I turn on neural embeddings, and when is the lexical default enough?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li>+ <li><a href="/answers/rag-without-vector-database">How do I build RAG without a vector database?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/reciprocal-rank-fusion-when-to-use">What is Reciprocal Rank Fusion?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/how-xerj-combines-search">How does XERJ combine BM25 and kNN?</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/mcp-api-search-or-vector-search.md b/landing/answers/mcp-api-search-or-vector-search.mdindex f3b2a25f3..9c0ace210 100644--- a/landing/answers/mcp-api-search-or-vector-search.md+++ b/landing/answers/mcp-api-search-or-vector-search.md@@ -2,12 +2,16 @@---title: "API search or vector search for an agent"canonical: "https://xerj.org/answers/mcp-api-search-or-vector-search"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/mcp-api-search-or-vector-search.md"---# Should an agent use API search or vector search?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Four of the 17 XERJ MCP tools retrieve: `xerj_search`, `xerj_semantic_search`, `xerj_vector_search` and `xerj_hybrid_search`. (as of 2026-10-19; source: [landing/docs/agents/schemas/mcp-tools.json](https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json))+**TL;DR** — 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. The fused `xerj_hybrid_search` call returned 6 documents against 4, 3 and 3 for the single-signal tools.## Agent prompt@@ -170,3 +174,6 @@ No. It is 20 documents and 1 question through 4 tools. Read the ids as a shape,- [What's the actual difference between a vector database and full-text search when I have a folder?](/answers/vector-database-vs-full-text-search)- [When should I turn on neural embeddings, and when is the lexical default enough?](/answers/do-search-embeddings-help)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)+- [How do I build RAG without a vector database?](/answers/rag-without-vector-database) (same intent: retrieval research and eval)+- [What is Reciprocal Rank Fusion?](/answers/reciprocal-rank-fusion-when-to-use) (same intent: retrieval research and eval)+- [How does XERJ combine BM25 and kNN?](/answers/how-xerj-combines-search) (same intent: retrieval research and eval)diff --git a/landing/answers/notion-export-duplicate-search-results.html b/landing/answers/notion-export-duplicate-search-results.htmlindex c6daa5767..0c6deb34b 100644--- a/landing/answers/notion-export-duplicate-search-results.html+++ b/landing/answers/notion-export-duplicate-search-results.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHY DOES MY NOTION EXPORT DUPLICATE TITLES?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>Why does my Notion export duplicate titles?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Re-indexing the same 4-file Notion export a second time returned the same 8 documents, with byte-identical ids. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — The duplicate titles come from the export layout and from the 2 documents XERJ writes per Markdown file. Re-indexing is not the cause. A captured run indexed the same export twice and returned 8 documents both times, with byte-identical ids.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -245,6 +250,9 @@<li><a href="/answers/index-markdown-into-elasticsearch-api">How do I index Markdown into the Elasticsearch API?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li><li><a href="/answers/resume-interrupted-autoindex-run">The indexer died overnight. Do I have to start over?</a></li>+ <li><a href="/answers/search-obsidian-pdf-docx-attachments">What's the best way to search markdown notes and PDFs in the same vault?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-obsidian-omnisearch">How do I search an Obsidian vault from outside Obsidian?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-confluence-html-export">How do I search a Confluence export?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/notion-export-duplicate-search-results.md b/landing/answers/notion-export-duplicate-search-results.mdindex c957ccef5..fd404160a 100644--- a/landing/answers/notion-export-duplicate-search-results.md+++ b/landing/answers/notion-export-duplicate-search-results.md@@ -2,12 +2,16 @@---title: "Why does my Notion export duplicate titles?"canonical: "https://xerj.org/answers/notion-export-duplicate-search-results"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/notion-export-duplicate-search-results.md"---# Why does my Notion export duplicate titles?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Re-indexing the same 4-file Notion export a second time returned the same 8 documents, with byte-identical ids. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — The duplicate titles come from the export layout and from the 2 documents XERJ writes per Markdown file. Re-indexing is not the cause. A captured run indexed the same export twice and returned 8 documents both times, with byte-identical ids.## Agent prompt@@ -148,3 +152,6 @@ All results come from run RUN-B, captured on 2026-08-21 on a 16-core AMD EPYC 96- [How do I index Markdown into the Elasticsearch API?](/answers/index-markdown-into-elasticsearch-api)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)- [The indexer died overnight. Do I have to start over?](/answers/resume-interrupted-autoindex-run)+- [What's the best way to search markdown notes and PDFs in the same vault?](/answers/search-obsidian-pdf-docx-attachments) (same intent: logs and docs)+- [How do I search an Obsidian vault from outside Obsidian?](/compare/xerj-vs-obsidian-omnisearch) (same intent: logs and docs)+- [How do I search a Confluence export?](/answers/search-confluence-html-export) (same intent: logs and docs)diff --git a/landing/answers/private-agent-memory-namespaces.html b/landing/answers/private-agent-memory-namespaces.htmlindex 6d5a96def..40355b915 100644--- a/landing/answers/private-agent-memory-namespaces.html+++ b/landing/answers/private-agent-memory-namespaces.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I GIVE TWO AGENTS PRIVATE MEMORY ON ONE LAPTOP?</div><div class="kicker"><span>ANSWERS · AGENT MEMORY: SECURITY</span></div><h1>How do I give two agents private memory on one laptop?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Our capture recorded 0 non-loopback connections while storing and recalling memory. <span class="mute">(as of 2026-08-23 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — Agent memory stays on local disk, and our capture recorded 0 non-loopback connections during store and recall. Privacy from other callers is a different question. XERJ stores roles but does not enforce them, so a namespace is only as private as the scoped API key that reaches it.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -236,6 +241,9 @@ access regardless of any role assignment. Full RBAC enforcement is deferred.<li><a href="/answers/knowledge-graphs-for-agent-memory">Should agent memory use a knowledge graph?</a></li><li><a href="/docs/security">Auth & TLS</a></li><li><a href="/answers/set-mcp-memory-storage-path">How do I set the MCP memory storage path?</a></li>+ <li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/evidence-for-agent-memory-links">How can agent-memory links retain evidence?</a> <span class="mute">· same intent: agent memory</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/private-agent-memory-namespaces.md b/landing/answers/private-agent-memory-namespaces.mdindex 8973eea36..b9ca0ccb1 100644--- a/landing/answers/private-agent-memory-namespaces.md+++ b/landing/answers/private-agent-memory-namespaces.md@@ -2,12 +2,16 @@---title: "Give two agents private memory on one laptop"canonical: "https://xerj.org/answers/private-agent-memory-namespaces"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/private-agent-memory-namespaces.md"---# How do I give two agents private memory on one laptop?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Our capture recorded 0 non-loopback connections while storing and recalling memory. (as of 2026-08-23; source: the captured run documented on this page)+**TL;DR** — Agent memory stays on local disk, and our capture recorded 0 non-loopback connections during store and recall. Privacy from other callers is a different question. XERJ stores roles but does not enforce them, so a namespace is only as private as the scoped API key that reaches it.## Agent prompt@@ -139,3 +143,6 @@ TLS and API-key authentication. Any client that reaches the port can then read a- [Should agent memory use a knowledge graph?](/answers/knowledge-graphs-for-agent-memory)- [Auth & TLS](/docs/security)- [How do I set the MCP memory storage path?](/answers/set-mcp-memory-storage-path)+- [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant) (same intent: agent memory)+- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database) (same intent: agent memory)+- [How can agent-memory links retain evidence?](/answers/evidence-for-agent-memory-links) (same intent: agent memory)diff --git a/landing/answers/rag-without-vector-database.html b/landing/answers/rag-without-vector-database.htmlindex 332bfe830..b58f80933 100644--- a/landing/answers/rag-without-vector-database.html+++ b/landing/answers/rag-without-vector-database.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>RAG without a vector database</title>+<title>RAG without a vector database: one hybrid index</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/rag-without-vector-database"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="RAG without a vector database">+<meta property="og:title" content="RAG without a vector database: one hybrid index"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/rag-without-vector-database"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="RAG without a vector database">+<meta name="twitter:title" content="RAG without a vector database: one hybrid index"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,7 +70,7 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "RAG without a vector database",+ "headline": "RAG without a vector database: one hybrid index","description": "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.","url": "https://xerj.org/answers/rag-without-vector-database","image": "https://xerj.org/og/xerj-card.png",@@ -156,6 +156,11 @@<div class="kicker"><span>ANSWERS · HYBRID RETRIEVAL: ARCHITECTURE</span></div><h1>How do I build RAG without a vector database?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> On BEIR SciFact, hybrid RRF with the opt-in neural embedder scored nDCG@10 0.6993, above both BM25 (0.6572) and vectors alone (0.6764). <span class="mute">(as of 2026-09-18 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/scifact.txt">benchmarks/beir-hybrid/results/scifact.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ holds the inverted index and the dense vector in one index, so a RAG retrieval layer needs no second service. One <code class="inline">hybrid</code> request fuses a BM25 sub-query and a kNN sub-query with Reciprocal Rank Fusion. Our 20-document capture returned <code class="inline">d08</code>, <code class="inline">d04</code> and <code class="inline">d10</code>.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -255,6 +260,9 @@<li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a></li><li><a href="/docs/recipes/hybrid-search">Hybrid search</a></li><li><a href="/answers/retrieval-that-says-not-found-with-file-line-citations">Retrieval that says not found, and cites file and line when it does answer</a></li>+ <li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/how-xerj-combines-search">How does XERJ combine BM25 and kNN?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/hybrid-search-quality-measured-ndcg">How much better is hybrid search than BM25? Measured nDCG numbers</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/rag-without-vector-database.md b/landing/answers/rag-without-vector-database.mdindex 4a778c962..26f2a257c 100644--- a/landing/answers/rag-without-vector-database.md+++ b/landing/answers/rag-without-vector-database.md@@ -1,6 +1,6 @@<!-- generated by build_articles.py — edit content/answers/rag-without-vector-database.md instead -->----title: "RAG without a vector database"+title: "RAG without a vector database: one hybrid index"canonical: "https://xerj.org/answers/rag-without-vector-database"updated: "2026-10-19"source: "content/answers/rag-without-vector-database.md"@@ -8,6 +8,10 @@ source: "content/answers/rag-without-vector-database.md"# How do I build RAG without a vector database?+**Short answer** (updated 2026-10-19): 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.++**Key number:** On BEIR SciFact, hybrid RRF with the opt-in neural embedder scored nDCG@10 0.6993, above both BM25 (0.6572) and vectors alone (0.6764). (as of 2026-09-18; source: [benchmarks/beir-hybrid/results/scifact.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/scifact.txt))+**TL;DR** — XERJ holds the inverted index and the dense vector in one index, so a RAG retrieval layer needs no second service. One `hybrid` request fuses a BM25 sub-query and a kNN sub-query with Reciprocal Rank Fusion. Our 20-document capture returned `d08`, `d04` and `d10`.## Agent prompt@@ -157,3 +161,6 @@ One. XERJ is single-node, with no replication, no sharding and no failover, so t- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database)- [Hybrid search](/docs/recipes/hybrid-search)- [Retrieval that says not found, and cites file and line when it does answer](/answers/retrieval-that-says-not-found-with-file-line-citations)+- [Should an agent use API search or vector search?](/answers/mcp-api-search-or-vector-search) (same intent: retrieval research and eval)+- [How does XERJ combine BM25 and kNN?](/answers/how-xerj-combines-search) (same intent: retrieval research and eval)+- [How much better is hybrid search than BM25? Measured nDCG numbers](/answers/hybrid-search-quality-measured-ndcg) (same intent: retrieval research and eval)diff --git a/landing/answers/read-autoindex-progress.html b/landing/answers/read-autoindex-progress.htmlindex 1e630f683..63df8e61f 100644--- a/landing/answers/read-autoindex-progress.html+++ b/landing/answers/read-autoindex-progress.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I READ AUTOINDEX PROGRESS?</div><div class="kicker"><span>ANSWERS · OPERATIONS: PROGRESS</span></div><h1>How do I read autoindex progress?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> With --no-graph, a 231-file repository reported 9 phases in order, and its index phase read pct=81.7 at 169/231 items. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/autoindex-resilience/after-fix.small-repo.stderr.txt">benchmarks/autoindex-resilience/after-fix.small-repo.stderr.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Pass <code class="inline">--progress plain</code>, then read the <code class="inline">xerj-progress</code> lines on stderr. A captured 22.2 s XERJ run emitted 12 phases in order and ended with <code class="inline">xerj-done ok=true exit=0 reason=completed</code>. On a single 16 MB file the percentage stayed at <code class="inline">0.0%</code>, so read <code class="inline">since_progress_s</code> and <code class="inline">waiting_on</code> instead.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -291,6 +296,9 @@<li><a href="/answers/estimate-autoindex-time-before-running">How do I estimate folder-indexing time?</a></li><li><a href="/answers/autoindex-dataset-refused-by-server">One dataset was REFUSED by the server. Did I lose the whole index?</a></li><li><a href="/answers/autoindex-server-back-pressure-429">The server pushed back with HTTP 429. Did xerj autoindex lose the run?</a></li>+ <li><a href="/answers/keep-index-current-as-files-change">How do I keep a search index up to date as files change, without re-indexing everything?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/autoindex-exit-codes">The indexer exited 3 (or 4). Did it fail?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/read-autoindex-progress.md b/landing/answers/read-autoindex-progress.mdindex 331c8653f..42637711b 100644--- a/landing/answers/read-autoindex-progress.md+++ b/landing/answers/read-autoindex-progress.md@@ -2,12 +2,16 @@---title: "How do I read autoindex progress?"canonical: "https://xerj.org/answers/read-autoindex-progress"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/read-autoindex-progress.md"---# How do I read autoindex progress?+**Short answer** (updated 2026-10-19): 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.++**Key number:** With --no-graph, a 231-file repository reported 9 phases in order, and its index phase read pct=81.7 at 169/231 items. (as of 2026-10-19; source: [benchmarks/autoindex-resilience/after-fix.small-repo.stderr.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/autoindex-resilience/after-fix.small-repo.stderr.txt))+**TL;DR** — Pass `--progress plain`, then read the `xerj-progress` lines on stderr. A captured 22.2 s XERJ run emitted 12 phases in order and ended with `xerj-done ok=true exit=0 reason=completed`. On a single 16 MB file the percentage stayed at `0.0%`, so read `since_progress_s` and `waiting_on` instead.## Agent prompt@@ -214,3 +218,6 @@ No. --quiet means no progress output, so the decision-JSON recipe and the progre- [How do I estimate folder-indexing time?](/answers/estimate-autoindex-time-before-running)- [One dataset was REFUSED by the server. Did I lose the whole index?](/answers/autoindex-dataset-refused-by-server)- [The server pushed back with HTTP 429. Did xerj autoindex lose the run?](/answers/autoindex-server-back-pressure-429)+- [How do I keep a search index up to date as files change, without re-indexing everything?](/answers/keep-index-current-as-files-change) (same intent: operating autoindex)+- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files) (same intent: operating autoindex)+- [The indexer exited 3 (or 4). Did it fail?](/answers/autoindex-exit-codes) (same intent: operating autoindex)diff --git a/landing/answers/read-indexed-email-and-pdf-folder.html b/landing/answers/read-indexed-email-and-pdf-folder.htmlindex e96e3176b..56a8107b8 100644--- a/landing/answers/read-indexed-email-and-pdf-folder.html+++ b/landing/answers/read-indexed-email-and-pdf-folder.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>I INDEXED A FOLDER OF EMAIL AND PDFS. HOW DO I ACTUALLY READ WHAT IT FOUND?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>I indexed a folder of email and PDFs. How do I actually read what it found?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> In the recorded run, xerj brain turned 10 files into 81 records in one dataset and wrote 33 links into the brain. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/docs/usecases/console-reader/live-e2e.json">docs/usecases/console-reader/live-e2e.json</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Run <code class="inline">xerj brain <folder></code>, then open the console it prints. The Corpus page lists what was indexed, and the Reader opens any record: an email with its headers, body and attachments, or one PDF page, beside the files it links to. The Reader shows extracted text only. It renders no email HTML and no PDF pages.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -256,6 +261,9 @@<li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a></li><li><a href="/answers/knowledge-graphs-for-agent-memory">Should agent memory use a knowledge graph?</a></li><li><a href="/docs/security">Auth & TLS</a></li>+ <li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-recoll">What's the best local desktop search for a folder of PDFs and docs?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/is-pdf-indexing-efficient">Is it efficient to index PDF files?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/read-indexed-email-and-pdf-folder.md b/landing/answers/read-indexed-email-and-pdf-folder.mdindex ec7054960..ada3a72e5 100644--- a/landing/answers/read-indexed-email-and-pdf-folder.md+++ b/landing/answers/read-indexed-email-and-pdf-folder.md@@ -2,12 +2,16 @@---title: "How do I read email and PDFs after indexing a folder?"canonical: "https://xerj.org/answers/read-indexed-email-and-pdf-folder"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/read-indexed-email-and-pdf-folder.md"---# I indexed a folder of email and PDFs. How do I actually read what it found?+**Short answer** (updated 2026-10-19): 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.++**Key number:** In the recorded run, xerj brain turned 10 files into 81 records in one dataset and wrote 33 links into the brain. (as of 2026-10-19; source: [docs/usecases/console-reader/live-e2e.json](https://github.com/xerj-org/xerj/blob/main/docs/usecases/console-reader/live-e2e.json))+**TL;DR** — Run `xerj brain <folder>`, then open the console it prints. The Corpus page lists what was indexed, and the Reader opens any record: an email with its headers, body and attachments, or one PDF page, beside the files it links to. The Reader shows extracted text only. It renders no email HTML and no PDF pages.## Agent prompt@@ -163,3 +167,6 @@ The console has a read-only guest mode driven by a share record that names one k- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder)- [Should agent memory use a knowledge graph?](/answers/knowledge-graphs-for-agent-memory)- [Auth & TLS](/docs/security)+- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder) (same intent: logs and docs)+- [What's the best local desktop search for a folder of PDFs and docs?](/compare/xerj-vs-recoll) (same intent: logs and docs)+- [Is it efficient to index PDF files?](/answers/is-pdf-indexing-efficient) (same intent: logs and docs)diff --git a/landing/answers/rebuild-reference-corpus-index.html b/landing/answers/rebuild-reference-corpus-index.htmlindex 0988a3089..d29315bd4 100644--- a/landing/answers/rebuild-reference-corpus-index.html+++ b/landing/answers/rebuild-reference-corpus-index.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>XERJ CORPUS INDEX --FRESH FAILED. HOW DO I REBUILD A CORPUS INDEX?</div><div class="kicker"><span>ANSWERS · CODING AGENTS: REFERENCE RETRIEVAL</span></div><h1>xerj corpus index --fresh failed. How do I rebuild a corpus index?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> On v1.0.0-rc.74, xerj autoindex --fresh over a committed generation aborted with exit 1; --fresh now swaps instead of discarding. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/autoindex-resilience/fresh-before-rc74.committed-generation.txt">benchmarks/autoindex-resilience/fresh-before-rc74.committed-generation.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Run <code class="inline">xerj corpus index <corpus> --fresh</code>. 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 build that fails costs you nothing. Older releases' wrapper scripts failed on every corpus that had been indexed before.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -275,6 +280,9 @@<li><a href="/answers/resume-interrupted-autoindex-run">The indexer died overnight. Do I have to start over?</a></li><li><a href="/answers/autoindex-exit-codes">The indexer exited 3 (or 4). Did it fail?</a></li><li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a></li>+ <li><a href="/answers/index-monorepo-for-agent">How do I stop my agent from reading the whole repo into context?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/compare/xerj-vs-ripgrep-for-code-agents">Is ripgrep enough for a coding agent, or do I need a code index?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/audit-php-codebase-with-an-index">How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/rebuild-reference-corpus-index.md b/landing/answers/rebuild-reference-corpus-index.mdindex fa27662bf..71ebf996a 100644--- a/landing/answers/rebuild-reference-corpus-index.md+++ b/landing/answers/rebuild-reference-corpus-index.md@@ -2,12 +2,16 @@---title: "How do I rebuild a reference-coding corpus index from scratch?"canonical: "https://xerj.org/answers/rebuild-reference-corpus-index"-updated: "2026-09-21"+updated: "2026-10-19"source: "content/answers/rebuild-reference-corpus-index.md"---# xerj corpus index --fresh failed. How do I rebuild a corpus index?+**Short answer** (updated 2026-10-19): 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.++**Key number:** On v1.0.0-rc.74, xerj autoindex --fresh over a committed generation aborted with exit 1; --fresh now swaps instead of discarding. (as of 2026-10-19; source: [benchmarks/autoindex-resilience/fresh-before-rc74.committed-generation.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/autoindex-resilience/fresh-before-rc74.committed-generation.txt))+**TL;DR** — Run `xerj corpus index <corpus> --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 build that fails costs you nothing. Older releases' wrapper scripts failed on every corpus that had been indexed before.## Agent prompt@@ -199,3 +203,6 @@ Room for the corpus twice. Both builds exist on the node from the start of the r- [The indexer died overnight. Do I have to start over?](/answers/resume-interrupted-autoindex-run)- [The indexer exited 3 (or 4). Did it fail?](/answers/autoindex-exit-codes)- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete)+- [How do I stop my agent from reading the whole repo into context?](/answers/index-monorepo-for-agent) (same intent: code search for agents)+- [Is ripgrep enough for a coding agent, or do I need a code index?](/compare/xerj-vs-ripgrep-for-code-agents) (same intent: code search for agents)+- [How do I audit a PHP codebase with an index instead of grepping 1,400 files?](/answers/audit-php-codebase-with-an-index) (same intent: code search for agents)diff --git a/landing/answers/reciprocal-rank-fusion-when-to-use.html b/landing/answers/reciprocal-rank-fusion-when-to-use.htmlindex 87c44b86d..2020b4214 100644--- a/landing/answers/reciprocal-rank-fusion-when-to-use.html+++ b/landing/answers/reciprocal-rank-fusion-when-to-use.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHAT IS RECIPROCAL RANK FUSION?</div><div class="kicker"><span>ANSWERS · HYBRID RETRIEVAL: RRF</span></div><h1>What is Reciprocal Rank Fusion?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The captured fused score for document d02, ranked first in both lists, was 0.032787 with k = 60. <span class="mute">(as of 2026-08-23 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — Reciprocal Rank Fusion scores a document by the sum of <code class="inline">weight / (k + rank)</code> across every ranked list that returned it. XERJ uses a default k of 60 inside the <code class="inline">hybrid</code> clause. Our captured fused score for <code class="inline">d02</code> was 0.032787, which is exactly 1/61 plus 1/61.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -262,6 +267,9 @@<li><a href="/answers/rag-without-vector-database">How do I build RAG without a vector database?</a></li><li><a href="/answers/improve-basic-faiss-rag-pipeline">How do I improve a basic FAISS RAG pipeline?</a></li><li><a href="/answers/vector-database-vs-full-text-search">What's the actual difference between a vector database and full-text search when I have a folder?</a></li>+ <li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/hybrid-search-quality-measured-ndcg">How much better is hybrid search than BM25? Measured nDCG numbers</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/do-search-embeddings-help">When should I turn on neural embeddings, and when is the lexical default enough?</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/reciprocal-rank-fusion-when-to-use.md b/landing/answers/reciprocal-rank-fusion-when-to-use.mdindex c7f4ef7c5..15df170a0 100644--- a/landing/answers/reciprocal-rank-fusion-when-to-use.md+++ b/landing/answers/reciprocal-rank-fusion-when-to-use.md@@ -2,12 +2,16 @@---title: "What is Reciprocal Rank Fusion?"canonical: "https://xerj.org/answers/reciprocal-rank-fusion-when-to-use"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/reciprocal-rank-fusion-when-to-use.md"---# What is Reciprocal Rank Fusion?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The captured fused score for document d02, ranked first in both lists, was 0.032787 with k = 60. (as of 2026-08-23; source: the captured run documented on this page)+**TL;DR** — Reciprocal Rank Fusion scores a document by the sum of `weight / (k + rank)` across every ranked list that returned it. XERJ uses a default k of 60 inside the `hybrid` clause. Our captured fused score for `d02` was 0.032787, which is exactly 1/61 plus 1/61.## Agent prompt@@ -165,3 +169,6 @@ No. `fusion: "learned"` is rejected with an HTTP 400 at parse time. XERJ offers- [How do I build RAG without a vector database?](/answers/rag-without-vector-database)- [How do I improve a basic FAISS RAG pipeline?](/answers/improve-basic-faiss-rag-pipeline)- [What's the actual difference between a vector database and full-text search when I have a folder?](/answers/vector-database-vs-full-text-search)+- [Should an agent use API search or vector search?](/answers/mcp-api-search-or-vector-search) (same intent: retrieval research and eval)+- [How much better is hybrid search than BM25? Measured nDCG numbers](/answers/hybrid-search-quality-measured-ndcg) (same intent: retrieval research and eval)+- [When should I turn on neural embeddings, and when is the lexical default enough?](/answers/do-search-embeddings-help) (same intent: retrieval research and eval)diff --git a/landing/answers/reduce-embedding-api-cost.html b/landing/answers/reduce-embedding-api-cost.htmlindex f5c5daefd..16248adec 100644--- a/landing/answers/reduce-embedding-api-cost.html+++ b/landing/answers/reduce-embedding-api-cost.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I REDUCE EMBEDDING API COST?</div><div class="kicker"><span>ANSWERS · EMBEDDINGS: COST</span></div><h1>How do I reduce embedding API cost?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Proxy embedding mode batched 100 documents into exactly 2 outbound requests in the captured run. <span class="mute">(as of 2026-08-23 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ embeds <code class="inline">semantic_text</code> fields inside the node, so the default configuration bills nothing to an embedding API. A capture watched a default single-node process for its whole 3.51 s life and observed 0 non-loopback peers. Proxy mode, which does call out, sent exactly 2 requests for 100 documents.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -240,6 +245,9 @@<li><a href="/answers/do-search-embeddings-help">When should I turn on neural embeddings, and when is the lexical default enough?</a></li><li><a href="/answers/local-embeddings-without-openai-api">I want local search that works offline, no cloud embeddings. What are my options?</a></li><li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a></li>+ <li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/how-xerj-combines-search">How does XERJ combine BM25 and kNN?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/hybrid-search-quality-measured-ndcg">How much better is hybrid search than BM25? Measured nDCG numbers</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/reduce-embedding-api-cost.md b/landing/answers/reduce-embedding-api-cost.mdindex 61fd4594d..7e3dd4a26 100644--- a/landing/answers/reduce-embedding-api-cost.md+++ b/landing/answers/reduce-embedding-api-cost.md@@ -2,12 +2,16 @@---title: "How do I reduce embedding API cost?"canonical: "https://xerj.org/answers/reduce-embedding-api-cost"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/reduce-embedding-api-cost.md"---# How do I reduce embedding API cost?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Proxy embedding mode batched 100 documents into exactly 2 outbound requests in the captured run. (as of 2026-08-23; source: the captured run documented on this page)+**TL;DR** — XERJ embeds `semantic_text` fields inside the node, so the default configuration bills nothing to an embedding API. A capture watched a default single-node process for its whole 3.51 s life and observed 0 non-loopback peers. Proxy mode, which does call out, sent exactly 2 requests for 100 documents.## Agent prompt@@ -134,3 +138,6 @@ Call GET /v1/embedding/identity on the native REST port. The backend field reads- [When should I turn on neural embeddings, and when is the lexical default enough?](/answers/do-search-embeddings-help)- [I want local search that works offline, no cloud embeddings. What are my options?](/answers/local-embeddings-without-openai-api)- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database)+- [Should an agent use API search or vector search?](/answers/mcp-api-search-or-vector-search) (same intent: retrieval research and eval)+- [How does XERJ combine BM25 and kNN?](/answers/how-xerj-combines-search) (same intent: retrieval research and eval)+- [How much better is hybrid search than BM25? Measured nDCG numbers](/answers/hybrid-search-quality-measured-ndcg) (same intent: retrieval research and eval)diff --git a/landing/answers/reindex-taking-forever.html b/landing/answers/reindex-taking-forever.htmlindex 59eca0316..104e62b38 100644--- a/landing/answers/reindex-taking-forever.html+++ b/landing/answers/reindex-taking-forever.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>REINDEXING MY FILES IS TAKING FOREVER. WHAT USUALLY CAUSES THAT?</div><div class="kicker"><span>ANSWERS · OPERATIONS: REINDEX</span></div><h1>Reindexing my files is taking forever. What usually causes that?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> A single-node <code class="inline">_reindex</code> of 100,000 documents reported took 20,836 ms, 100 batches and 0 failures. <span class="mute">(as of 2026-08-23 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — A XERJ <code class="inline">_reindex</code> of a fixed 100,000-document corpus reported <code class="inline">"took": 20836</code> milliseconds, 100 batches and 0 failures on one node. Read <code class="inline">created</code> against a <code class="inline">_count</code> of the destination index to separate slow progress from a stalled call. XERJ is single-node, so <code class="inline">_reindex</code> is a local copy.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -242,6 +247,9 @@<li><a href="/docs/migration-from-es">Migrate from Elasticsearch</a></li><li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a></li><li><a href="/answers/resume-interrupted-autoindex-run">The indexer died overnight. Do I have to start over?</a></li>+ <li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/search-files-in-an-s3-bucket">How do I search files that live in an S3 bucket?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/autoindex-dataset-refused-by-server">One dataset was REFUSED by the server. Did I lose the whole index?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/reindex-taking-forever.md b/landing/answers/reindex-taking-forever.mdindex e675ab389..c71b3e52e 100644--- a/landing/answers/reindex-taking-forever.md+++ b/landing/answers/reindex-taking-forever.md@@ -2,12 +2,16 @@---title: "Why is reindexing my files taking forever?"canonical: "https://xerj.org/answers/reindex-taking-forever"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/reindex-taking-forever.md"---# Reindexing my files is taking forever. What usually causes that?+**Short answer** (updated 2026-10-19): 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.++**Key number:** A single-node `_reindex` of 100,000 documents reported took 20,836 ms, 100 batches and 0 failures. (as of 2026-08-23; source: the captured run documented on this page)+**TL;DR** — A XERJ `_reindex` of a fixed 100,000-document corpus reported `"took": 20836` milliseconds, 100 batches and 0 failures on one node. Read `created` against a `_count` of the destination index to separate slow progress from a stalled call. XERJ is single-node, so `_reindex` is a local copy.## Agent prompt@@ -148,3 +152,6 @@ Yes. XERJ has an open defect that retains heap per indexed document, so a large- [Migrate from Elasticsearch](/docs/migration-from-es)- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search)- [The indexer died overnight. Do I have to start over?](/answers/resume-interrupted-autoindex-run)+- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files) (same intent: operating autoindex)+- [How do I search files that live in an S3 bucket?](/answers/search-files-in-an-s3-bucket) (same intent: operating autoindex)+- [One dataset was REFUSED by the server. Did I lose the whole index?](/answers/autoindex-dataset-refused-by-server) (same intent: operating autoindex)diff --git a/landing/answers/rerank-search-results-calibrated-judge.html b/landing/answers/rerank-search-results-calibrated-judge.htmlindex 9d8f8dee0..1b533d111 100644--- a/landing/answers/rerank-search-results-calibrated-judge.html+++ b/landing/answers/rerank-search-results-calibrated-judge.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I RERANK SEARCH RESULTS WITH A RELEVANCE JUDGE?</div><div class="kicker"><span>ANSWERS · HYBRID RETRIEVAL: RERANKING</span></div><h1>How do I rerank search results with a relevance judge?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The rerank stage defaults to a 30-hit window and allows at most 300. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-rerank/src/lib.rs">engine/crates/xerj-rerank/src/lib.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Add <code class="inline">"rerank": {}</code> to a XERJ <code class="inline">_search</code> body. The top 30 hits go to an external judge, which returns a 0 to 1 relevance probability per document. That probability replaces <code class="inline">_score</code>. Order by it, never threshold it with <code class="inline">min_score</code> — the measured probabilities are not calibrated (ECE 0.10–0.31). It sends document text off the machine. Ranking quality is measured: <a href="https://github.com/xerj-org/xerj/pull/975">PR #975</a> scored median nDCG@10 of 0.7410 SciFact, 0.3312 NFCorpus and 0.3638 FiQA over 1,271 queries.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -275,6 +280,9 @@ endpoint = "https://api.typesafe.ai/v1/systemone"<li><a href="/answers/hybrid-search-quality-measured-ndcg">How much better is hybrid search than BM25? Measured nDCG numbers</a></li><li><a href="/answers/how-xerj-combines-search">How does XERJ combine BM25 and kNN?</a></li><li><a href="/docs/config">Config TOML</a></li>+ <li><a href="/answers/classify-text-from-labelled-history-without-llm">Can I route tickets or filter spam from labelled history, without an LLM call?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/do-search-embeddings-help">When should I turn on neural embeddings, and when is the lexical default enough?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/improve-basic-faiss-rag-pipeline">How do I improve a basic FAISS RAG pipeline?</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/rerank-search-results-calibrated-judge.md b/landing/answers/rerank-search-results-calibrated-judge.mdindex 45504443a..3ec9c7f15 100644--- a/landing/answers/rerank-search-results-calibrated-judge.md+++ b/landing/answers/rerank-search-results-calibrated-judge.md@@ -2,12 +2,16 @@---title: "How do I rerank search results with a relevance judge?"canonical: "https://xerj.org/answers/rerank-search-results-calibrated-judge"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/answers/rerank-search-results-calibrated-judge.md"---# How do I rerank search results with a relevance judge?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The rerank stage defaults to a 30-hit window and allows at most 300. (as of 2026-10-19; source: [engine/crates/xerj-rerank/src/lib.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-rerank/src/lib.rs))+**TL;DR** — Add `"rerank": {}` to a XERJ `_search` body. The top 30 hits go to an external judge, which returns a 0 to 1 relevance probability per document. That probability replaces `_score`. Order by it, never threshold it with `min_score` — the measured probabilities are not calibrated (ECE 0.10–0.31). It sends document text off the machine. Ranking quality is measured: [PR #975](https://github.com/xerj-org/xerj/pull/975) scored median nDCG@10 of 0.7410 SciFact, 0.3312 NFCorpus and 0.3638 FiQA over 1,271 queries.## Agent prompt@@ -185,3 +189,6 @@ Yes. The `xerj_search` and `xerj_hybrid_search` tools take an optional `rerank`- [How much better is hybrid search than BM25? Measured nDCG numbers](/answers/hybrid-search-quality-measured-ndcg)- [How does XERJ combine BM25 and kNN?](/answers/how-xerj-combines-search)- [Config TOML](/docs/config)+- [Can I route tickets or filter spam from labelled history, without an LLM call?](/answers/classify-text-from-labelled-history-without-llm) (same intent: retrieval research and eval)+- [When should I turn on neural embeddings, and when is the lexical default enough?](/answers/do-search-embeddings-help) (same intent: retrieval research and eval)+- [How do I improve a basic FAISS RAG pipeline?](/answers/improve-basic-faiss-rag-pipeline) (same intent: retrieval research and eval)diff --git a/landing/answers/resume-interrupted-autoindex-run.html b/landing/answers/resume-interrupted-autoindex-run.htmlindex 0896475d0..defc3e961 100644--- a/landing/answers/resume-interrupted-autoindex-run.html+++ b/landing/answers/resume-interrupted-autoindex-run.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>THE INDEXER DIED OVERNIGHT. DO I HAVE TO START OVER?</div><div class="kicker"><span>ANSWERS · OPERATIONS: RECOVERY</span></div><h1>The indexer died overnight. Do I have to start over?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> A resumed full-corpus generation with all 47,444 operations already applied finished on a restarted node without re-sending them. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/autoindex-resilience/after-955.full-corpus-resume.stderr.txt">benchmarks/autoindex-resilience/after-955.full-corpus-resume.stderr.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ writes a resume journal into the <code class="inline">--state-dir</code>, so re-running the identical <code class="inline">autoindex</code> command is idempotent. In a capture the interrupted run, the resumed run and a clean control run all ended at 82,231 documents. The first 20 document ids matched exactly.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -236,6 +241,9 @@ xerj-done ok=true exit=0 reason=completed wall=1.2s files=0 records=82231<li><a href="/answers/read-autoindex-progress">How do I read autoindex progress?</a></li><li><a href="/answers/estimate-autoindex-time-before-running">How do I estimate folder-indexing time?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li>+ <li><a href="/answers/autoindex-exit-codes">The indexer exited 3 (or 4). Did it fail?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/keep-index-current-as-files-change">How do I keep a search index up to date as files change, without re-indexing everything?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/resume-interrupted-autoindex-run.md b/landing/answers/resume-interrupted-autoindex-run.mdindex 65cd7ba08..80848c624 100644--- a/landing/answers/resume-interrupted-autoindex-run.md+++ b/landing/answers/resume-interrupted-autoindex-run.md@@ -2,12 +2,16 @@---title: "The indexer died overnight. Do I start over?"canonical: "https://xerj.org/answers/resume-interrupted-autoindex-run"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/resume-interrupted-autoindex-run.md"---# The indexer died overnight. Do I have to start over?+**Short answer** (updated 2026-10-19): 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.++**Key number:** A resumed full-corpus generation with all 47,444 operations already applied finished on a restarted node without re-sending them. (as of 2026-10-19; source: [benchmarks/autoindex-resilience/after-955.full-corpus-resume.stderr.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/autoindex-resilience/after-955.full-corpus-resume.stderr.txt))+**TL;DR** — 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. The first 20 document ids matched exactly.## Agent prompt@@ -137,3 +141,6 @@ The client reports xerj-done ok=false exit=1 reason=aborted and a connection err- [How do I read autoindex progress?](/answers/read-autoindex-progress)- [How do I estimate folder-indexing time?](/answers/estimate-autoindex-time-before-running)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)+- [The indexer exited 3 (or 4). Did it fail?](/answers/autoindex-exit-codes) (same intent: operating autoindex)+- [How do I keep a search index up to date as files change, without re-indexing everything?](/answers/keep-index-current-as-files-change) (same intent: operating autoindex)+- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files) (same intent: operating autoindex)diff --git a/landing/answers/retrieval-that-says-not-found-with-file-line-citations.html b/landing/answers/retrieval-that-says-not-found-with-file-line-citations.htmlindex 49eb0504e..c904f6423 100644--- a/landing/answers/retrieval-that-says-not-found-with-file-line-citations.html+++ b/landing/answers/retrieval-that-says-not-found-with-file-line-citations.html@@ -2,6 +2,17 @@<!DOCTYPE html><html lang="en" data-theme="day"><head>+<!-- ga4:begin — generated by scripts/seo/seo_head.py · do not hand-edit -->+<!-- Google tag (gtag.js) -->+<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z77ETCDJYL"></script>+<script>+ window.dataLayer = window.dataLayer || [];+ function gtag(){dataLayer.push(arguments);}+ gtag('js', new Date());++ gtag('config', 'G-Z77ETCDJYL');+</script>+<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Retrieval that cites file:line and says not found</title>diff --git a/landing/answers/search-all-pdfs-in-a-folder.html b/landing/answers/search-all-pdfs-in-a-folder.htmlindex 2d01d4d9d..212470711 100644--- a/landing/answers/search-all-pdfs-in-a-folder.html+++ b/landing/answers/search-all-pdfs-in-a-folder.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>How do I search a folder of PDF papers?</title>+<title>Search a folder of PDF papers offline</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/search-all-pdfs-in-a-folder"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="How do I search a folder of PDF papers?">+<meta property="og:title" content="Search a folder of PDF papers offline"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/search-all-pdfs-in-a-folder"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="How do I search a folder of PDF papers?">+<meta name="twitter:title" content="Search a folder of PDF papers offline"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "How do I search a folder of PDF papers?",+ "headline": "Search a folder of PDF papers offline","description": "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.","url": "https://xerj.org/answers/search-all-pdfs-in-a-folder","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>I DOWNLOADED A BUNCH OF PAPERS AS PDFS. HOW DO I SEARCH ACROSS THEM?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>I downloaded a bunch of papers as PDFs. How do I search across them?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ reads at most 100,000 pages per PDF (<code class="inline">MAX_PAGES</code>) in an isolated worker process. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/resources.rs">engine/crates/xerj-autoindex/src/resources.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex</code> indexes a folder of PDFs in one command, and a single <code class="inline">match_phrase</code> query then searches inside all of them. In a captured run, 3 born-digital PDFs produced 9 documents and one phrase hit all 3 files. The fourth PDF, an image-only file, produced 0 documents.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -245,6 +250,9 @@ autoindex: memory safe zone 966 MiB allows 1 PDF worker(s) at 1536 MiB each, not<li><a href="/answers/is-pdf-indexing-efficient">Is it efficient to index PDF files?</a></li><li><a href="/answers/rag-without-vector-database">How do I build RAG without a vector database?</a></li><li><a href="/compare/xerj-vs-recoll">What's the best local desktop search for a folder of PDFs and docs?</a></li>+ <li><a href="/answers/read-indexed-email-and-pdf-folder">I indexed a folder of email and PDFs. How do I actually read what it found?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-gzip-logs-without-zgrep">How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-kubernetes-pod-logs-on-disk">How do I search Kubernetes pod logs?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-all-pdfs-in-a-folder.md b/landing/answers/search-all-pdfs-in-a-folder.mdindex 39ec4a117..372ecde90 100644--- a/landing/answers/search-all-pdfs-in-a-folder.md+++ b/landing/answers/search-all-pdfs-in-a-folder.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/search-all-pdfs-in-a-folder.md instead -->----title: "How do I search a folder of PDF papers?"+title: "Search a folder of PDF papers offline"canonical: "https://xerj.org/answers/search-all-pdfs-in-a-folder"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-all-pdfs-in-a-folder.md"---# I downloaded a bunch of papers as PDFs. How do I search across them?+**Short answer** (updated 2026-10-19): 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.++**Key number:** XERJ reads at most 100,000 pages per PDF (`MAX_PAGES`) in an isolated worker process. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/resources.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/resources.rs))+**TL;DR** — `xerj autoindex` indexes a folder of PDFs in one command, and a single `match_phrase` query then searches inside all of them. In a captured run, 3 born-digital PDFs produced 9 documents and one phrase hit all 3 files. The fourth PDF, an image-only file, produced 0 documents.## Agent prompt@@ -153,3 +157,6 @@ No. XERJ parses each PDF in an isolated worker process, so one failure is record- [Is it efficient to index PDF files?](/answers/is-pdf-indexing-efficient)- [How do I build RAG without a vector database?](/answers/rag-without-vector-database)- [What's the best local desktop search for a folder of PDFs and docs?](/compare/xerj-vs-recoll)+- [I indexed a folder of email and PDFs. How do I actually read what it found?](/answers/read-indexed-email-and-pdf-folder) (same intent: logs and docs)+- [How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?](/answers/search-gzip-logs-without-zgrep) (same intent: logs and docs)+- [How do I search Kubernetes pod logs?](/answers/search-kubernetes-pod-logs-on-disk) (same intent: logs and docs)diff --git a/landing/answers/search-bvh-motion-capture-files.html b/landing/answers/search-bvh-motion-capture-files.htmlindex 9527ab5fc..adfdb01ca 100644--- a/landing/answers/search-bvh-motion-capture-files.html+++ b/landing/answers/search-bvh-motion-capture-files.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SEARCH BVH MOTION-CAPTURE FILES?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I search BVH motion-capture files?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The captured BVH clip reported 60 frames over a duration_s of 1.999998. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — Run <code class="inline">xerj autoindex</code> on the folder. XERJ detects the <code class="inline">bvh</code> family and writes <code class="inline">frames</code>, <code class="inline">frame_time_s</code>, <code class="inline">duration_s</code>, <code class="inline">joint_count</code> and a <code class="inline">joints</code> array. Our clip reported 60 frames over 1.999998 seconds, and a <code class="inline">terms</code> query on <code class="inline">joints</code> returned it.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -239,6 +244,9 @@<li><a href="/answers/search-unity-project-assets">How do I search Unity YAML scenes and the C# that references them as one project?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li>+ <li><a href="/answers/full-text-search-sqlite-database">How do I full-text search a SQLite database I just copied onto disk?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/index-csv-with-many-columns">How do I index a CSV with many columns?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-bvh-motion-capture-files.md b/landing/answers/search-bvh-motion-capture-files.mdindex 874c773f9..af1f126a1 100644--- a/landing/answers/search-bvh-motion-capture-files.md+++ b/landing/answers/search-bvh-motion-capture-files.md@@ -2,12 +2,16 @@---title: "Search BVH motion-capture files"canonical: "https://xerj.org/answers/search-bvh-motion-capture-files"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-bvh-motion-capture-files.md"---# How do I search BVH motion-capture files?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The captured BVH clip reported 60 frames over a duration_s of 1.999998. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — Run `xerj autoindex` on the folder. XERJ detects the `bvh` family and writes `frames`, `frame_time_s`, `duration_s`, `joint_count` and a `joints` array. Our clip reported 60 frames over 1.999998 seconds, and a `terms` query on `joints` returned it.## Agent prompt@@ -140,3 +144,6 @@ No. The coverage matrix rates BVH as curiosity value with negligible volume. The- [How do I search Unity YAML scenes and the C# that references them as one project?](/answers/search-unity-project-assets)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)+- [How do I full-text search a SQLite database I just copied onto disk?](/answers/full-text-search-sqlite-database) (same intent: JSONL and data files)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)+- [How do I index a CSV with many columns?](/answers/index-csv-with-many-columns) (same intent: JSONL and data files)diff --git a/landing/answers/search-confluence-html-export.html b/landing/answers/search-confluence-html-export.htmlindex e3ff3d452..e2b71ef29 100644--- a/landing/answers/search-confluence-html-export.html+++ b/landing/answers/search-confluence-html-export.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SEARCH A CONFLUENCE EXPORT?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I search a Confluence export?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> One body-text query on a nested page returned 1 hit at <code class="inline">Recovery-procedure_262146.html</code> in the captured run. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — Unzip the Confluence space export to local disk, then run <code class="inline">xerj autoindex</code> on the folder. In a captured run, body text on a nested page returned 1 hit at <code class="inline">Recovery-procedure_262146.html</code>. The title came back as Confluence writes it: <code class="inline">PLAT : Recovery procedure</code>.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -250,6 +255,9 @@<li><a href="/answers/search-html-export">I saved a help-center as HTML. How do I search it like the real help-center search?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li>+ <li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/notion-export-duplicate-search-results">Why does my Notion export duplicate titles?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-all-pdfs-in-a-folder">I downloaded a bunch of papers as PDFs. How do I search across them?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-confluence-html-export.md b/landing/answers/search-confluence-html-export.mdindex 4208db29d..e10b6a22f 100644--- a/landing/answers/search-confluence-html-export.md+++ b/landing/answers/search-confluence-html-export.md@@ -2,12 +2,16 @@---title: "How do I search a Confluence export?"canonical: "https://xerj.org/answers/search-confluence-html-export"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-confluence-html-export.md"---# How do I search a Confluence export?+**Short answer** (updated 2026-10-19): 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.++**Key number:** One body-text query on a nested page returned 1 hit at `Recovery-procedure_262146.html` in the captured run. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — Unzip the Confluence space export to local disk, then run `xerj autoindex` on the folder. In a captured run, body text on a nested page returned 1 hit at `Recovery-procedure_262146.html`. The title came back as Confluence writes it: `PLAT : Recovery procedure`.## Agent prompt@@ -148,3 +152,6 @@ All results come from run RUN-B, captured on 2026-08-21 on a 16-core AMD EPYC 96- [I saved a help-center as HTML. How do I search it like the real help-center search?](/answers/search-html-export)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)+- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search) (same intent: logs and docs)+- [Why does my Notion export duplicate titles?](/answers/notion-export-duplicate-search-results) (same intent: logs and docs)+- [I downloaded a bunch of papers as PDFs. How do I search across them?](/answers/search-all-pdfs-in-a-folder) (same intent: logs and docs)diff --git a/landing/answers/search-engine-without-docker.html b/landing/answers/search-engine-without-docker.htmlindex 48d20a851..e940e4cdc 100644--- a/landing/answers/search-engine-without-docker.html+++ b/landing/answers/search-engine-without-docker.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>Is there a single-binary local search engine?</title>+<title>Single-binary local search engine, no Docker or JVM</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/search-engine-without-docker"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="Is there a single-binary local search engine?">+<meta property="og:title" content="Single-binary local search engine, no Docker or JVM"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/search-engine-without-docker"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Is there a single-binary local search engine?">+<meta name="twitter:title" content="Single-binary local search engine, no Docker or JVM"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "Is there a single-binary local search engine?",+ "headline": "Single-binary local search engine, no Docker or JVM","description": "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.","url": "https://xerj.org/answers/search-engine-without-docker","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>IS THERE A SINGLE-BINARY LOCAL SEARCH ENGINE I CAN JUST RUN?</div><div class="kicker"><span>ANSWERS · OPERATIONS: INSTALLATION</span></div><h1>Is there a single-binary local search engine I can just run?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ passes 1366 of 1369 Elasticsearch YAML conformance cases from that single binary. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/README.md">README.md</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ runs a search engine from one native 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. Cold start measured 1.071 s to the first HTTP 200 on an empty data directory.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -239,6 +244,8 @@<li><a href="/answers/local-embeddings-without-openai-api">I want local search that works offline, no cloud embeddings. What are my options?</a></li><li><a href="/compare/xerj-vs-elasticsearch-local">Is there an Elasticsearch-compatible engine that isn't Elasticsearch?</a></li><li><a href="/compare/xerj-vs-meilisearch">What's a local alternative to Meilisearch that indexes a folder by itself?</a></li>+ <li><a href="/answers/does-xerj-support-s3-alerting-plugins">Does XERJ support S3 storage, alerting or custom plugins yet?</a> <span class="mute">· same intent: search engine alternatives</span></li>+ <li><a href="/compare/xerj-vs-typesense">Do I need Typesense for an agent to search my docs?</a> <span class="mute">· same intent: search engine alternatives</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-engine-without-docker.md b/landing/answers/search-engine-without-docker.mdindex 73ffef286..1ec2f880b 100644--- a/landing/answers/search-engine-without-docker.md+++ b/landing/answers/search-engine-without-docker.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/search-engine-without-docker.md instead -->----title: "Is there a single-binary local search engine?"+title: "Single-binary local search engine, no Docker or JVM"canonical: "https://xerj.org/answers/search-engine-without-docker"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/search-engine-without-docker.md"---# Is there a single-binary local search engine I can just run?+**Short answer** (updated 2026-10-19): 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.++**Key number:** XERJ passes 1366 of 1369 Elasticsearch YAML conformance cases from that single binary. (as of 2026-10-19; source: [README.md](https://github.com/xerj-org/xerj/blob/main/README.md))+**TL;DR** — XERJ runs a search engine from one native 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. Cold start measured 1.071 s to the first HTTP 200 on an empty data directory.## Agent prompt@@ -137,3 +141,5 @@ No. XERJ is single-node: there is no data-plane replication and no failover, so- [I want local search that works offline, no cloud embeddings. What are my options?](/answers/local-embeddings-without-openai-api)- [Is there an Elasticsearch-compatible engine that isn't Elasticsearch?](/compare/xerj-vs-elasticsearch-local)- [What's a local alternative to Meilisearch that indexes a folder by itself?](/compare/xerj-vs-meilisearch)+- [Does XERJ support S3 storage, alerting or custom plugins yet?](/answers/does-xerj-support-s3-alerting-plugins) (same intent: search engine alternatives)+- [Do I need Typesense for an agent to search my docs?](/compare/xerj-vs-typesense) (same intent: search engine alternatives)diff --git a/landing/answers/search-file-contents-in-a-folder.html b/landing/answers/search-file-contents-in-a-folder.htmlindex fa1caaada..fdb272627 100644--- a/landing/answers/search-file-contents-in-a-folder.html+++ b/landing/answers/search-file-contents-in-a-folder.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>How do I search a folder of mixed documents?</title>+<title>Search inside PDFs, Word docs and Markdown in one folder</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/search-file-contents-in-a-folder"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="How do I search a folder of mixed documents?">+<meta property="og:title" content="Search inside PDFs, Word docs and Markdown in one folder"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/search-file-contents-in-a-folder"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="How do I search a folder of mixed documents?">+<meta name="twitter:title" content="Search inside PDFs, Word docs and Markdown in one folder"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,13 +70,13 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "How do I search a folder of mixed documents?",+ "headline": "Search inside PDFs, Word docs and Markdown in one folder","description": "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.","url": "https://xerj.org/answers/search-file-contents-in-a-folder","image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>I HAVE A FOLDER OF PDFS, WORD DOCS, AND MARKDOWN. HOW DO I SEARCH ALL OF THEM AT ONCE?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The README's sample run indexed 25,329 files into 593 datasets and 83,103 records in 158.1 s. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/README.md">README.md</a>)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex</code> makes the contents of a folder searchable in one command. In a captured run over a folder of 6 formats, XERJ indexed 51 documents into 2 indices with 0 junk files. One <code class="inline">match_phrase</code> query then returned 3 hits from an HTML file, a JSON file and a Markdown file.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -252,6 +257,9 @@<li><a href="/compare/xerj-vs-ripgrep-all">How do I grep PDFs and Word docs from the command line?</a></li><li><a href="/compare/xerj-vs-docfetcher">What's a free DocFetcher alternative that an agent can call?</a></li><li><a href="/docs/recipes/zero-config-autoindex">Zero-config autoindex</a></li>+ <li><a href="/answers/is-pdf-indexing-efficient">Is it efficient to index PDF files?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/read-indexed-email-and-pdf-folder">I indexed a folder of email and PDFs. How do I actually read what it found?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-word-documents-in-a-folder">How do I search through a folder of contracts in .docx?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-file-contents-in-a-folder.md b/landing/answers/search-file-contents-in-a-folder.mdindex 3509c86d5..9840d4ae1 100644--- a/landing/answers/search-file-contents-in-a-folder.md+++ b/landing/answers/search-file-contents-in-a-folder.md@@ -1,13 +1,17 @@<!-- generated by build_articles.py — edit content/answers/search-file-contents-in-a-folder.md instead -->----title: "How do I search a folder of mixed documents?"+title: "Search inside PDFs, Word docs and Markdown in one folder"canonical: "https://xerj.org/answers/search-file-contents-in-a-folder"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-file-contents-in-a-folder.md"---# I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The README's sample run indexed 25,329 files into 593 datasets and 83,103 records in 158.1 s. (as of 2026-10-19; source: [README.md](https://github.com/xerj-org/xerj/blob/main/README.md))+**TL;DR** — `xerj autoindex` makes the contents of a folder searchable in one command. In a captured run over a folder of 6 formats, XERJ indexed 51 documents into 2 indices with 0 junk files. One `match_phrase` query then returned 3 hits from an HTML file, a JSON file and a Markdown file.## Agent prompt@@ -160,3 +164,6 @@ No. The default embedder is lexical feature hashing, so a query matches terms an- [How do I grep PDFs and Word docs from the command line?](/compare/xerj-vs-ripgrep-all)- [What's a free DocFetcher alternative that an agent can call?](/compare/xerj-vs-docfetcher)- [Zero-config autoindex](/docs/recipes/zero-config-autoindex)+- [Is it efficient to index PDF files?](/answers/is-pdf-indexing-efficient) (same intent: logs and docs)+- [I indexed a folder of email and PDFs. How do I actually read what it found?](/answers/read-indexed-email-and-pdf-folder) (same intent: logs and docs)+- [How do I search through a folder of contracts in .docx?](/answers/search-word-documents-in-a-folder) (same intent: logs and docs)diff --git a/landing/answers/search-files-in-an-s3-bucket.html b/landing/answers/search-files-in-an-s3-bucket.htmlindex f0ab01247..db8b1e55d 100644--- a/landing/answers/search-files-in-an-s3-bucket.html+++ b/landing/answers/search-files-in-an-s3-bucket.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-19",- "dateModified": "2026-09-19",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SEARCH FILES THAT LIVE IN AN S3 BUCKET?</div><div class="kicker"><span>ANSWERS · INGEST: OBJECT STORAGE</span></div><h1>How do I search files that live in an S3 bucket?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-19 · UPDATED · 2026-09-19</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-19 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Measured against MinIO: an unchanged re-run over 4 keys cost 1 LIST and 0 GET requests, 0 bytes. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/objsource_minio_tests.rs">engine/crates/xerj-autoindex/src/objsource_minio_tests.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Run <code class="inline">xerj autoindex s3://bucket/prefix</code> 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 on local disk.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -317,6 +322,9 @@ autoindex: re-running this at the same size costs 2 class-A request(s) each time<li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a></li><li><a href="/answers/autoindex-exit-codes">The indexer exited 3 (or 4). Did it fail?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li>+ <li><a href="/answers/keep-s3-bucket-index-current">How do I keep an index current when the files live in an object store?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/keep-index-current-as-files-change">How do I keep a search index up to date as files change, without re-indexing everything?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/reindex-taking-forever">Reindexing my files is taking forever. What usually causes that?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-files-in-an-s3-bucket.md b/landing/answers/search-files-in-an-s3-bucket.mdindex fddb3f19f..ac4157f81 100644--- a/landing/answers/search-files-in-an-s3-bucket.md+++ b/landing/answers/search-files-in-an-s3-bucket.md@@ -2,12 +2,16 @@---title: "How do I search files that live in an S3 bucket?"canonical: "https://xerj.org/answers/search-files-in-an-s3-bucket"-updated: "2026-09-19"+updated: "2026-10-19"source: "content/answers/search-files-in-an-s3-bucket.md"---# How do I search files that live in an S3 bucket?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Measured against MinIO: an unchanged re-run over 4 keys cost 1 LIST and 0 GET requests, 0 bytes. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/objsource_minio_tests.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/objsource_minio_tests.rs))+**TL;DR** — 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 on local disk.## Agent prompt@@ -235,3 +239,6 @@ Yes. A multipart ETag is a digest of digests with a `-N` suffix, so it is not an- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files)- [The indexer exited 3 (or 4). Did it fail?](/answers/autoindex-exit-codes)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)+- [How do I keep an index current when the files live in an object store?](/answers/keep-s3-bucket-index-current) (same intent: operating autoindex)+- [How do I keep a search index up to date as files change, without re-indexing everything?](/answers/keep-index-current-as-files-change) (same intent: operating autoindex)+- [Reindexing my files is taking forever. What usually causes that?](/answers/reindex-taking-forever) (same intent: operating autoindex)diff --git a/landing/answers/search-gmail-takeout-mbox-locally.html b/landing/answers/search-gmail-takeout-mbox-locally.htmlindex 8d225f792..ce723fe0f 100644--- a/landing/answers/search-gmail-takeout-mbox-locally.html+++ b/landing/answers/search-gmail-takeout-mbox-locally.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>I EXPORTED MY GMAIL WITH GOOGLE TAKEOUT. HOW DO I SEARCH THAT MBOX FILE LOCALLY?</div><div class="kicker"><span>ANSWERS · FOLDER INDEXING</span></div><h1>I exported my Gmail with Google Takeout. How do I search that mbox file locally?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> On a 1 GB synthetic mailbox the client peaked at 296 MiB and finished in 279 s, and all 2,530 planted needles were found. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/mbox-ingest/results/after-mixed-1G-runC-verify-every-needle.json">benchmarks/mbox-ingest/results/after-mixed-1G-runC-verify-every-needle.json</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Unzip the Takeout download, run <code class="inline">xerj autoindex</code> on the folder with its own <code class="inline">--prefix</code>, then search the mailbox over HTTP. The mbox is recognised by its content and streamed one message at a time. Attached PDFs become per-page documents linked to their message. Senders are filterable by bare address, and Gmail thread ids and reply headers become filters and graph edges. With the default embedder, which is lexical (feature hashing, not neural), no message text leaves your machine. The node's ingest memory, which before #1002 (2026-09) pushed a 300 MB mailbox past a laptop's RAM, now finishes a 1 GB mailbox under the node's default 16 GiB cap in 407.7 s; the peak still crosses the cap (21,405.3 MiB on that run) because per-segment caches grow until a merge retires them, tracked as #1032.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -289,6 +294,9 @@ xerj autoindex ~/mail-export --url http://127.0.0.1:9200 --prefix mail --progres<li><a href="/answers/resume-interrupted-autoindex-run">The indexer died overnight. Do I have to start over?</a></li><li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a></li><li><a href="/docs/recipes/zero-config-autoindex">Zero-config autoindex</a></li>+ <li><a href="/answers/search-gzip-logs-without-zgrep">How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-all-pdfs-in-a-folder">I downloaded a bunch of papers as PDFs. How do I search across them?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-gmail-takeout-mbox-locally.md b/landing/answers/search-gmail-takeout-mbox-locally.mdindex c52d80e18..84192ec20 100644--- a/landing/answers/search-gmail-takeout-mbox-locally.md+++ b/landing/answers/search-gmail-takeout-mbox-locally.md@@ -2,12 +2,16 @@---title: "Search a Gmail Takeout mbox on your own machine"canonical: "https://xerj.org/answers/search-gmail-takeout-mbox-locally"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/answers/search-gmail-takeout-mbox-locally.md"---# I exported my Gmail with Google Takeout. How do I search that mbox file locally?+**Short answer** (updated 2026-10-19): 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.++**Key number:** On a 1 GB synthetic mailbox the client peaked at 296 MiB and finished in 279 s, and all 2,530 planted needles were found. (as of 2026-10-19; source: [benchmarks/mbox-ingest/results/after-mixed-1G-runC-verify-every-needle.json](https://github.com/xerj-org/xerj/blob/main/benchmarks/mbox-ingest/results/after-mixed-1G-runC-verify-every-needle.json))+**TL;DR** — 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 its content and streamed one message at a time. Attached PDFs become per-page documents linked to their message. Senders are filterable by bare address, and Gmail thread ids and reply headers become filters and graph edges. With the default embedder, which is lexical (feature hashing, not neural), no message text leaves your machine. The node's ingest memory, which before #1002 (2026-09) pushed a 300 MB mailbox past a laptop's RAM, now finishes a 1 GB mailbox under the node's default 16 GiB cap in 407.7 s; the peak still crosses the cap (21,405.3 MiB on that run) because per-segment caches grow until a merge retires them, tracked as #1032.## Agent prompt@@ -207,3 +211,6 @@ No. The mbox splitter and the message extractor are tested against a generated m- [The indexer died overnight. Do I have to start over?](/answers/resume-interrupted-autoindex-run)- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files)- [Zero-config autoindex](/docs/recipes/zero-config-autoindex)+- [How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?](/answers/search-gzip-logs-without-zgrep) (same intent: logs and docs)+- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search) (same intent: logs and docs)+- [I downloaded a bunch of papers as PDFs. How do I search across them?](/answers/search-all-pdfs-in-a-folder) (same intent: logs and docs)diff --git a/landing/answers/search-gzip-logs-without-zgrep.html b/landing/answers/search-gzip-logs-without-zgrep.htmlindex 9f5ef255e..13b0435ef 100644--- a/landing/answers/search-gzip-logs-without-zgrep.html+++ b/landing/answers/search-gzip-logs-without-zgrep.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SEARCH GZIPPED LOGS WITHOUT DECOMPRESSING THE WHOLE FILE — INCLUDING WHEN JSONL SITS NEXT TO THEM?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The plain and gzip copies of one log both returned a <code class="inline">_count</code> of 5001 and 1250 <code class="inline">level=ERROR</code> hits. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ decompresses a <code class="inline">.gz</code> log once at index time, so a query never reads the compressed file again. In our capture the plain copy and the gzip copy of one log both returned <code class="inline">5001</code> from <code class="inline">_count</code>. Both also returned 1250 hits for <code class="inline">level=ERROR</code>.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -233,6 +238,9 @@<li><a href="/answers/search-json-and-jsonl-logs">What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a></li><li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li>+ <li><a href="/answers/search-kubernetes-pod-logs-on-disk">How do I search Kubernetes pod logs?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-all-pdfs-in-a-folder">I downloaded a bunch of papers as PDFs. How do I search across them?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-gmail-takeout-mbox-locally">I exported my Gmail with Google Takeout. How do I search that mbox file locally?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-gzip-logs-without-zgrep.md b/landing/answers/search-gzip-logs-without-zgrep.mdindex 35204f0cb..18388aba5 100644--- a/landing/answers/search-gzip-logs-without-zgrep.md+++ b/landing/answers/search-gzip-logs-without-zgrep.md@@ -2,12 +2,16 @@---title: "Search gzipped logs without decompressing them"canonical: "https://xerj.org/answers/search-gzip-logs-without-zgrep"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-gzip-logs-without-zgrep.md"---# How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The plain and gzip copies of one log both returned a `_count` of 5001 and 1250 `level=ERROR` hits. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — XERJ decompresses a `.gz` log once at index time, so a query never reads the compressed file again. In our capture the plain copy and the gzip copy of one log both returned `5001` from `_count`. Both also returned 1250 hits for `level=ERROR`.## Agent prompt@@ -133,3 +137,6 @@ Because a log index has no field named `text`. Filter on `level`, run a `wildcar- [What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?](/answers/search-json-and-jsonl-logs)- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)+- [How do I search Kubernetes pod logs?](/answers/search-kubernetes-pod-logs-on-disk) (same intent: logs and docs)+- [I downloaded a bunch of papers as PDFs. How do I search across them?](/answers/search-all-pdfs-in-a-folder) (same intent: logs and docs)+- [I exported my Gmail with Google Takeout. How do I search that mbox file locally?](/answers/search-gmail-takeout-mbox-locally) (same intent: logs and docs)diff --git a/landing/answers/search-gzipped-csv-or-json.html b/landing/answers/search-gzipped-csv-or-json.htmlindex 0c8523e67..c0b0d537b 100644--- a/landing/answers/search-gzipped-csv-or-json.html+++ b/landing/answers/search-gzipped-csv-or-json.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SEARCH A .CSV.GZ OR .JSON.GZ WITHOUT UNZIPPING IT FIRST?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I search a .csv.gz or .json.gz without unzipping it first?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>How do I search gzipped CSV exports without unzipping them? Point xerj autoindex at the folder. Gzip is a wrapper, not a family: autoindex strips it during the run and sniffs the bytes underneath, so a .csv.gz becomes typed columns and a .json.gz becomes documents with fields. No query re-reads the archive.</p>+ <p class="key-fact"><strong>Key number:</strong> The sniffer classifies the decompressed stream from its first 8,192 bytes (<code class="inline">PREFIX</code>), the same window it uses for a plain file. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/sniff.rs">engine/crates/xerj-autoindex/src/sniff.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Gzip is a wrapper, not a family. <code class="inline">xerj autoindex</code> strips it during the run and sniffs the bytes underneath. A <code class="inline">.csv.gz</code> becomes typed columns, and a <code class="inline">.json.gz</code> becomes documents with fields. You never decompress anything yourself, and no query re-reads the archive.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -249,6 +254,9 @@<li><a href="/answers/search-json-and-jsonl-logs">What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li><li><a href="/compare/xerj-vs-ripgrep-all">How do I grep PDFs and Word docs from the command line?</a></li>+ <li><a href="/answers/search-sql-dump-file">I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/full-text-search-sqlite-database">How do I full-text search a SQLite database I just copied onto disk?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-gzipped-csv-or-json.md b/landing/answers/search-gzipped-csv-or-json.mdindex d78fc9583..6b69e9403 100644--- a/landing/answers/search-gzipped-csv-or-json.md+++ b/landing/answers/search-gzipped-csv-or-json.md@@ -2,12 +2,16 @@---title: "Search a .csv.gz or .json.gz without unzipping it"canonical: "https://xerj.org/answers/search-gzipped-csv-or-json"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/answers/search-gzipped-csv-or-json.md"---# How do I search a .csv.gz or .json.gz without unzipping it first?+**Short answer** (updated 2026-10-19): How do I search gzipped CSV exports without unzipping them? Point xerj autoindex at the folder. Gzip is a wrapper, not a family: autoindex strips it during the run and sniffs the bytes underneath, so a .csv.gz becomes typed columns and a .json.gz becomes documents with fields. No query re-reads the archive.++**Key number:** The sniffer classifies the decompressed stream from its first 8,192 bytes (`PREFIX`), the same window it uses for a plain file. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/sniff.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/sniff.rs))+**TL;DR** — Gzip is a wrapper, not a family. `xerj autoindex` strips it during the run and sniffs the bytes underneath. A `.csv.gz` becomes typed columns, and a `.json.gz` becomes documents with fields. You never decompress anything yourself, and no query re-reads the archive.## Agent prompt@@ -163,3 +167,6 @@ No. The measured gzip capture on this site is the log family. The CSV and JSON w- [What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?](/answers/search-json-and-jsonl-logs)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)- [How do I grep PDFs and Word docs from the command line?](/compare/xerj-vs-ripgrep-all)+- [I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?](/answers/search-sql-dump-file) (same intent: JSONL and data files)+- [How do I full-text search a SQLite database I just copied onto disk?](/answers/full-text-search-sqlite-database) (same intent: JSONL and data files)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)diff --git a/landing/answers/search-html-export.html b/landing/answers/search-html-export.htmlindex 68b50d69a..9a697b879 100644--- a/landing/answers/search-html-export.html+++ b/landing/answers/search-html-export.html@@ -156,6 +156,11 @@<div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">I saved a help-center as HTML. How do I search it like the real help-center search?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-08-21</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The captured 3-page HTML export returned 3 hits for one <code class="inline">match</code> on <code class="inline">body</code>, with 0 non-loopback network peers. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ <code class="inline">autoindex</code> indexes a static HTML export straight from local disk. In our 3-page capture XERJ extracted a <code class="inline">title</code> and a <code class="inline">headings</code> array from each page, and one <code class="inline">match</code> query on <code class="inline">body</code> returned 3 hits. A network watch observed 0 non-loopback peers during the run.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -221,6 +226,9 @@<li><a href="/answers/search-confluence-html-export">How do I search a Confluence export?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li><li><a href="/compare/xerj-vs-pagefind">Pagefind vs indexing a local HTML dump for an agent?</a></li>+ <li><a href="/answers/notion-export-duplicate-search-results">Why does my Notion export duplicate titles?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-all-pdfs-in-a-folder">I downloaded a bunch of papers as PDFs. How do I search across them?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-docfetcher">What's a free DocFetcher alternative that an agent can call?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-html-export.md b/landing/answers/search-html-export.mdindex d17083bdb..acb666887 100644--- a/landing/answers/search-html-export.md+++ b/landing/answers/search-html-export.md@@ -8,6 +8,10 @@ source: "content/answers/search-html-export.md"# I saved a help-center as HTML. How do I search it like the real help-center search?+**Short answer** (updated 2026-08-21): 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.++**Key number:** The captured 3-page HTML export returned 3 hits for one `match` on `body`, with 0 non-loopback network peers. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — XERJ `autoindex` indexes a static HTML export straight from local disk. In our 3-page capture XERJ extracted a `title` and a `headings` array from each page, and one `match` query on `body` returned 3 hits. A network watch observed 0 non-loopback peers during the run.## Agent prompt@@ -112,3 +116,6 @@ No. The capture is a sampler at a 0.05 second interval, so a connection opening- [How do I search a Confluence export?](/answers/search-confluence-html-export)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)- [Pagefind vs indexing a local HTML dump for an agent?](/compare/xerj-vs-pagefind)+- [Why does my Notion export duplicate titles?](/answers/notion-export-duplicate-search-results) (same intent: logs and docs)+- [I downloaded a bunch of papers as PDFs. How do I search across them?](/answers/search-all-pdfs-in-a-folder) (same intent: logs and docs)+- [What's a free DocFetcher alternative that an agent can call?](/compare/xerj-vs-docfetcher) (same intent: logs and docs)diff --git a/landing/answers/search-json-and-jsonl-logs.html b/landing/answers/search-json-and-jsonl-logs.htmlindex b05b39d80..0df83a3ed 100644--- a/landing/answers/search-json-and-jsonl-logs.html+++ b/landing/answers/search-json-and-jsonl-logs.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>Search JSON logs and gzip logs in one folder</title>+<title>Search JSON and JSONL logs plus gzip logs in one folder</title><meta name="description" content="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."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/answers/search-json-and-jsonl-logs"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="Search JSON logs and gzip logs in one folder">+<meta property="og:title" content="Search JSON and JSONL logs plus gzip logs in one folder"><meta property="og:description" content="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."><meta property="og:url" content="https://xerj.org/answers/search-json-and-jsonl-logs"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Search JSON logs and gzip logs in one folder">+<meta name="twitter:title" content="Search JSON and JSONL logs plus gzip logs in one folder"><meta name="twitter:description" content="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."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,7 +70,7 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "Search JSON logs and gzip logs in one folder",+ "headline": "Search JSON and JSONL logs plus gzip logs in one folder","description": "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.","url": "https://xerj.org/answers/search-json-and-jsonl-logs","image": "https://xerj.org/og/xerj-card.png",@@ -156,6 +156,11 @@<div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> One JSONL file yields at most 4,096 records per extraction window (<code class="inline">MAX_RECORDS_PER_FILE</code>). <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs">engine/crates/xerj-autoindex/src/extract/mod.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex</code> detects JSON-array and JSONL log files from their content and gives each its own index. In a captured run over 2 files, XERJ inferred <code class="inline">timestamp</code> and <code class="inline">ts</code> as date fields with no configuration. A filter for <code class="inline">level=ERROR</code> returned exactly 386 hits.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -251,6 +256,9 @@<li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a></li><li><a href="/answers/search-engine-without-docker">Is there a single-binary local search engine I can just run?</a></li><li><a href="/answers/full-text-search-over-jsonl-files-cli">Full-text search over JSONL files from the CLI: index a folder and query it with BM25</a></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/index-multiple-csv-files">I have a directory of CSV exports. How do I query them without opening each one in Excel?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-json-and-jsonl-logs.md b/landing/answers/search-json-and-jsonl-logs.mdindex 66f90e2a2..3ceb1d098 100644--- a/landing/answers/search-json-and-jsonl-logs.md+++ b/landing/answers/search-json-and-jsonl-logs.md@@ -1,6 +1,6 @@<!-- generated by build_articles.py — edit content/answers/search-json-and-jsonl-logs.md instead -->----title: "Search JSON logs and gzip logs in one folder"+title: "Search JSON and JSONL logs plus gzip logs in one folder"canonical: "https://xerj.org/answers/search-json-and-jsonl-logs"updated: "2026-10-19"source: "content/answers/search-json-and-jsonl-logs.md"@@ -8,6 +8,10 @@ source: "content/answers/search-json-and-jsonl-logs.md"# What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?+**Short answer** (updated 2026-10-19): 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.++**Key number:** One JSONL file yields at most 4,096 records per extraction window (`MAX_RECORDS_PER_FILE`). (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/mod.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs))+**TL;DR** — `xerj autoindex` detects JSON-array and JSONL log files from their content and gives each its own index. In a captured run over 2 files, XERJ inferred `timestamp` and `ts` as date fields with no configuration. A filter for `level=ERROR` returned exactly 386 hits.## Agent prompt@@ -153,3 +157,6 @@ Yes. Gzip is transparent on every parsed family, so a `.jsonl.gz` file indexes l- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search)- [Is there a single-binary local search engine I can just run?](/answers/search-engine-without-docker)- [Full-text search over JSONL files from the CLI: index a folder and query it with BM25](/answers/full-text-search-over-jsonl-files-cli)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)+- [I have a directory of CSV exports. How do I query them without opening each one in Excel?](/answers/index-multiple-csv-files) (same intent: JSONL and data files)+- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map) (same intent: JSONL and data files)diff --git a/landing/answers/search-jupyter-notebook-cells.html b/landing/answers/search-jupyter-notebook-cells.htmlindex 151ddf7a1..f22715f86 100644--- a/landing/answers/search-jupyter-notebook-cells.html+++ b/landing/answers/search-jupyter-notebook-cells.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-10-05",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>I NEED TO FIND A FUNCTION I WROTE IN A NOTEBOOK MONTHS AGO. HOW DO I SEARCH ALL .IPYNB FILES AND THE .PY NEXT TO THEM?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files and the .py next to them?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-05</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The captured section <code class="inline">Okapi retrieval sweep > Run the sweep</code> started at cell 3 and returned the printed line <code class="inline">okapi accuracy 0.9137</code>. <span class="mute">(as of 2026-10-05 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ writes 1 document per Markdown-heading section of a notebook. In a captured run, the printed accuracy <code class="inline">okapi accuracy 0.9137</code> came back from the section <code class="inline">Okapi retrieval sweep > Run the sweep</code>, starting at cell 3, and a query for <code class="inline">okapi_transform</code> found both notebooks and the <code class="inline">.py</code> that defines it.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -243,7 +248,7 @@ corpus labelled-20<h3>Does XERJ search executed cell output as well as code?</h3><p>Yes, for text output. Printed text, <code class="inline">text/plain</code> results and errors are written into the section body after their cell. Image outputs and HTML-only outputs are not indexed.</p><h3>Is XERJ notebook-aware?</h3>- <p>Yes, from the release after v1.0.0-rc.82. XERJ recognizes a notebook by its content, not its extension, and groups cells by their Markdown headings. It reads any kernel and records the kernel language. It never executes a notebook.</p>+ <p>Yes, in every release after v1.0.0-rc.82; the current release is v1.0.0-rc.97 (checked 2026-10-19). XERJ recognizes a notebook by its content, not its extension, and groups cells by their Markdown headings. It reads any kernel and records the kernel language. It never executes a notebook.</p><h3>Which notebook fields can I filter on?</h3><p><code class="inline">heading</code> and <code class="inline">language</code> are <code class="inline">keyword</code>, <code class="inline">cell</code> is <code class="inline">long</code>, and <code class="inline">heading_path</code> and <code class="inline">title</code> are <code class="inline">text</code>. <code class="inline">body</code> holds the Markdown, the code and the text outputs.</p><h3>Do markdown cells and code cells end up in the same document?</h3>@@ -253,6 +258,9 @@ corpus labelled-20<li><a href="/answers/search-json-and-jsonl-logs">What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a></li><li><a href="/answers/local-embeddings-without-openai-api">I want local search that works offline, no cloud embeddings. What are my options?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li>+ <li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/index-monorepo-for-agent">How do I stop my agent from reading the whole repo into context?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/search-unity-project-assets">How do I search Unity YAML scenes and the C# that references them as one project?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-jupyter-notebook-cells.md b/landing/answers/search-jupyter-notebook-cells.mdindex 63cf92501..de90a7b65 100644--- a/landing/answers/search-jupyter-notebook-cells.md+++ b/landing/answers/search-jupyter-notebook-cells.md@@ -2,12 +2,16 @@---title: "Search .ipynb notebooks and the .py files beside them"canonical: "https://xerj.org/answers/search-jupyter-notebook-cells"-updated: "2026-10-05"+updated: "2026-10-19"source: "content/answers/search-jupyter-notebook-cells.md"---# I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files and the .py next to them?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The captured section `Okapi retrieval sweep > Run the sweep` started at cell 3 and returned the printed line `okapi accuracy 0.9137`. (as of 2026-10-05; source: the captured run documented on this page)+**TL;DR** — XERJ writes 1 document per Markdown-heading section of a notebook. In a captured run, the printed accuracy `okapi accuracy 0.9137` came back from the section `Okapi retrieval sweep > Run the sweep`, starting at cell 3, and a query for `okapi_transform` found both notebooks and the `.py` that defines it.## Agent prompt@@ -137,7 +141,7 @@ Yes, for text output. Printed text, `text/plain` results and errors are written### Is XERJ notebook-aware?-Yes, from the release after v1.0.0-rc.82. XERJ recognizes a notebook by its content, not its extension, and groups cells by their Markdown headings. It reads any kernel and records the kernel language. It never executes a notebook.+Yes, in every release after v1.0.0-rc.82; the current release is v1.0.0-rc.97 (checked 2026-10-19). XERJ recognizes a notebook by its content, not its extension, and groups cells by their Markdown headings. It reads any kernel and records the kernel language. It never executes a notebook.### Which notebook fields can I filter on?@@ -152,3 +156,6 @@ Yes. A section holds every cell from its heading to the next heading, Markdown a- [What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?](/answers/search-json-and-jsonl-logs)- [I want local search that works offline, no cloud embeddings. What are my options?](/answers/local-embeddings-without-openai-api)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)+- [I need my agent to find a passage and cite the file, not dump the whole tree. How?](/answers/code-search-mcp-for-claude-code) (same intent: code search for agents)+- [How do I stop my agent from reading the whole repo into context?](/answers/index-monorepo-for-agent) (same intent: code search for agents)+- [How do I search Unity YAML scenes and the C# that references them as one project?](/answers/search-unity-project-assets) (same intent: code search for agents)diff --git a/landing/answers/search-kubernetes-pod-logs-on-disk.html b/landing/answers/search-kubernetes-pod-logs-on-disk.htmlindex 77b437806..38440d513 100644--- a/landing/answers/search-kubernetes-pod-logs-on-disk.html+++ b/landing/answers/search-kubernetes-pod-logs-on-disk.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-20","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SEARCH KUBERNETES POD LOGS?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I search Kubernetes pod logs?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-20</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-20</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> One <code class="inline">match_phrase</code> request returned 18 hits, 6 per pod, across 3 collected pod logs. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — Collect the pod logs to local disk first, then run <code class="inline">xerj autoindex</code> on the folder. In a captured run, 1 <code class="inline">match_phrase</code> request returned 18 hits spread 6, 6 and 6 across 3 pod log files. XERJ is not the collector, and the CRI format was read as prose text.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -204,7 +209,7 @@<h2>The CRI format is read as prose, not as logs</h2><p>All 3 files were detected as <code class="inline">txt-prose</code> in the <code class="inline">autoindex-catalog</code>. The <code class="inline">logs</code> family did not fire on this format, so no <code class="inline">ts</code>, <code class="inline">level</code> or <code class="inline">message</code> field was produced.</p><p>Plan for that. The line text is searchable through <code class="inline">body</code>, so a full-text query for <code class="inline">level=error</code> finds the lines that hold that string. No typed level filter and no date range query exist on this index.</p>- <p>If you want typed fields, convert the lines to JSON or JSONL before you index them. Keep every JSONL line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 at 4,096, with the family flipping from <code class="inline">jsonl</code> to <code class="inline">json</code>.</p>+ <p>If you want typed fields, convert the lines to JSON or JSONL before you index them. A JSONL line at or above 16 MB is skipped and counted as junk (<code class="inline">MAX_LINE</code>, <code class="inline">16 << 20</code>, in <code class="inline">engine/crates/xerj-autoindex/src/extract/mod.rs</code>). The rest of the file still indexes.</p><h2>What XERJ is not doing here</h2><p>XERJ is not a log collector, not a log shipper and not a cluster component. The node fetched nothing over the network and observed 0 distinct non-loopback peers across 185 samples over its whole life.</p><p>No container runtime and no cluster existed on the capture host. The 3 log files use the real kubelet path layout and the real CRI line format, but the fixture generator wrote them. The claim under test was reading such files from disk after you gather them, and that claim holds.</p>@@ -224,14 +229,21 @@<h3>Did the aggregation agree with the hits in this run?</h3><p>Yes. The terms aggregation on the same request reported 6 documents per file, the same as the hits. Compare both before you publish a count.</p><h3>What if I convert the logs to JSONL first?</h3>- <p>Keep every line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 documents at 4,096.</p>+ <p>A line at or above 16 MB is skipped and counted as junk. The cap is <code class="inline">MAX_LINE</code> (<code class="inline">16 << 20</code>) in <code class="inline">engine/crates/xerj-autoindex/src/extract/mod.rs</code>. The rest of the file still indexes.</p><h3>Where do these results come from?</h3><p>All results come from run RUN-B, captured on 2026-08-21 on a 16-core AMD EPYC 9645 host.</p>+ <h2>Evidence</h2>+ <ul>+ <li>JSONL line cap is 16 MB (MAX_LINE = 16 << 20). A line at or above that length is skipped; the rest of the file still indexes. — <code>engine/crates/xerj-autoindex/src/extract/mod.rs</code></li>+ </ul><h2>Related</h2><ul><li><a href="/answers/search-json-and-jsonl-logs">What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a></li><li><a href="/answers/search-gzip-logs-without-zgrep">How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?</a></li><li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a></li>+ <li><a href="/answers/search-all-pdfs-in-a-folder">I downloaded a bunch of papers as PDFs. How do I search across them?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/is-pdf-indexing-efficient">Is it efficient to index PDF files?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/read-indexed-email-and-pdf-folder">I indexed a folder of email and PDFs. How do I actually read what it found?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-kubernetes-pod-logs-on-disk.md b/landing/answers/search-kubernetes-pod-logs-on-disk.mdindex 835489afd..6a10669da 100644--- a/landing/answers/search-kubernetes-pod-logs-on-disk.md+++ b/landing/answers/search-kubernetes-pod-logs-on-disk.md@@ -2,12 +2,16 @@---title: "How do I search Kubernetes pod logs?"canonical: "https://xerj.org/answers/search-kubernetes-pod-logs-on-disk"-updated: "2026-08-21"+updated: "2026-10-20"source: "content/answers/search-kubernetes-pod-logs-on-disk.md"---# How do I search Kubernetes pod logs?+**Short answer** (updated 2026-10-20): 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.++**Key number:** One `match_phrase` request returned 18 hits, 6 per pod, across 3 collected pod logs. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — Collect the pod logs to local disk first, then run `xerj autoindex` on the folder. In a captured run, 1 `match_phrase` request returned 18 hits spread 6, 6 and 6 across 3 pod log files. XERJ is not the collector, and the CRI format was read as prose text.## Agent prompt@@ -78,7 +82,7 @@ All 3 files were detected as `txt-prose` in the `autoindex-catalog`. The `logs`Plan for that. The line text is searchable through `body`, so a full-text query for `level=error` finds the lines that hold that string. No typed level filter and no date range query exist on this index.-If you want typed fields, convert the lines to JSON or JSONL before you index them. Keep every JSONL line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 at 4,096, with the family flipping from `jsonl` to `json`.+If you want typed fields, convert the lines to JSON or JSONL before you index them. A JSONL line at or above 16 MB is skipped and counted as junk (`MAX_LINE`, `16 << 20`, in `engine/crates/xerj-autoindex/src/extract/mod.rs`). The rest of the file still indexes.## What XERJ is not doing here@@ -118,14 +122,21 @@ Yes. The terms aggregation on the same request reported 6 documents per file, th### What if I convert the logs to JSONL first?-Keep every line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 documents at 4,096.+A line at or above 16 MB is skipped and counted as junk. The cap is `MAX_LINE` (`16 << 20`) in `engine/crates/xerj-autoindex/src/extract/mod.rs`. The rest of the file still indexes.### Where do these results come from?All results come from run RUN-B, captured on 2026-08-21 on a 16-core AMD EPYC 9645 host.+## Evidence++- JSONL line cap is 16 MB (MAX_LINE = 16 << 20). A line at or above that length is skipped; the rest of the file still indexes. — `engine/crates/xerj-autoindex/src/extract/mod.rs`+## Related- [What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?](/answers/search-json-and-jsonl-logs)- [How do I search gzipped logs without decompressing the whole file — including when JSONL sits next to them?](/answers/search-gzip-logs-without-zgrep)- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search)+- [I downloaded a bunch of papers as PDFs. How do I search across them?](/answers/search-all-pdfs-in-a-folder) (same intent: logs and docs)+- [Is it efficient to index PDF files?](/answers/is-pdf-indexing-efficient) (same intent: logs and docs)+- [I indexed a folder of email and PDFs. How do I actually read what it found?](/answers/read-indexed-email-and-pdf-folder) (same intent: logs and docs)diff --git a/landing/answers/search-obsidian-pdf-docx-attachments.html b/landing/answers/search-obsidian-pdf-docx-attachments.htmlindex 2456b2291..234ab711a 100644--- a/landing/answers/search-obsidian-pdf-docx-attachments.html+++ b/landing/answers/search-obsidian-pdf-docx-attachments.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHAT'S THE BEST WAY TO SEARCH MARKDOWN NOTES AND PDFS IN THE SAME VAULT?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>What's the best way to search markdown notes and PDFs in the same vault?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Omnisearch, the in-app alternative, has 2,169 GitHub stars and released 1.31.0 on 2026-09-05. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/scambier/obsidian-omnisearch">github.com/scambier/obsidian-omnisearch</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ <code class="inline">autoindex</code> reads a vault folder from local disk and extracts text from its attachments. In a captured run, a phrase that exists only inside <code class="inline">pangolin-escalation-matrix.pdf</code> returned 1 hit, and a phrase only inside <code class="inline">capybara-change-window.docx</code> returned 1 hit. Wikilinks between the notes became <code class="inline">wikilink</code> edges, each carrying the line that created it.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -243,6 +248,9 @@<li><a href="/answers/index-markdown-into-elasticsearch-api">How do I index Markdown into the Elasticsearch API?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li><li><a href="/compare/xerj-vs-obsidian-omnisearch">How do I search an Obsidian vault from outside Obsidian?</a></li>+ <li><a href="/answers/notion-export-duplicate-search-results">Why does my Notion export duplicate titles?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-recoll">What's the best local desktop search for a folder of PDFs and docs?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-obsidian-pdf-docx-attachments.md b/landing/answers/search-obsidian-pdf-docx-attachments.mdindex c50d8a9b5..6d21f0c00 100644--- a/landing/answers/search-obsidian-pdf-docx-attachments.md+++ b/landing/answers/search-obsidian-pdf-docx-attachments.md@@ -2,12 +2,16 @@---title: "Search markdown notes and PDFs in one vault"canonical: "https://xerj.org/answers/search-obsidian-pdf-docx-attachments"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-obsidian-pdf-docx-attachments.md"---# What's the best way to search markdown notes and PDFs in the same vault?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Omnisearch, the in-app alternative, has 2,169 GitHub stars and released 1.31.0 on 2026-09-05. (as of 2026-10-19; source: [github.com/scambier/obsidian-omnisearch](https://github.com/scambier/obsidian-omnisearch))+**TL;DR** — XERJ `autoindex` reads a vault folder from local disk and extracts text from its attachments. In a captured run, a phrase that exists only inside `pangolin-escalation-matrix.pdf` returned 1 hit, and a phrase only inside `capybara-change-window.docx` returned 1 hit. Wikilinks between the notes became `wikilink` edges, each carrying the line that created it.## Agent prompt@@ -144,3 +148,6 @@ No. XERJ reads the vault folder from local disk. The captured node opened 0 non-- [How do I index Markdown into the Elasticsearch API?](/answers/index-markdown-into-elasticsearch-api)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)- [How do I search an Obsidian vault from outside Obsidian?](/compare/xerj-vs-obsidian-omnisearch)+- [Why does my Notion export duplicate titles?](/answers/notion-export-duplicate-search-results) (same intent: logs and docs)+- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder) (same intent: logs and docs)+- [What's the best local desktop search for a folder of PDFs and docs?](/compare/xerj-vs-recoll) (same intent: logs and docs)diff --git a/landing/answers/search-openapi-spec-for-agent.html b/landing/answers/search-openapi-spec-for-agent.htmlindex 5f9067a7f..964da2ed0 100644--- a/landing/answers/search-openapi-spec-for-agent.html+++ b/landing/answers/search-openapi-spec-for-agent.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>MY AGENT NEEDS TO LOOK UP ENDPOINTS IN A BIG OPENAPI SPEC AND THE SDK MARKDOWN. WHAT'S THE RIGHT WAY?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">My agent needs to look up endpoints in a big OpenAPI spec and the SDK markdown. What's the right way?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Each of 3 lookups (route, description, operationId) returned 2 hits, 1 per serialization of the same spec. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ makes an OpenAPI document queryable when <code class="inline">xerj autoindex</code> reads the file from disk. In a captured run, a route name, a description and an <code class="inline">operationId</code> each returned 2 hits, 1 per serialization. Extraction is format-based: the whole spec produced only <code class="inline">body</code> and <code class="inline">title</code>.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -248,6 +253,9 @@<li><a href="/answers/search-yaml-xml-config-repository">How do I find every place a config key is set across YAML and XML in a repo?</a></li><li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li>+ <li><a href="/compare/xerj-vs-ast-grep">ast-grep vs a code index for an agent?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/compare/xerj-vs-ripgrep-for-code-agents">Is ripgrep enough for a coding agent, or do I need a code index?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-openapi-spec-for-agent.md b/landing/answers/search-openapi-spec-for-agent.mdindex e9981eb9a..480cdfded 100644--- a/landing/answers/search-openapi-spec-for-agent.md+++ b/landing/answers/search-openapi-spec-for-agent.md@@ -2,12 +2,16 @@---title: "Let an agent look up endpoints in an API spec"canonical: "https://xerj.org/answers/search-openapi-spec-for-agent"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-openapi-spec-for-agent.md"---# My agent needs to look up endpoints in a big OpenAPI spec and the SDK markdown. What's the right way?+**Short answer** (updated 2026-10-19): 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.++**Key number:** Each of 3 lookups (route, description, operationId) returned 2 hits, 1 per serialization of the same spec. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — XERJ makes an OpenAPI document queryable when `xerj autoindex` reads the file from disk. In a captured run, a route name, a description and an `operationId` each returned 2 hits, 1 per serialization. Extraction is format-based: the whole spec produced only `body` and `title`.## Agent prompt@@ -145,3 +149,6 @@ Read the hits, not only the buckets. A captured matrix shows `match_phrase` matc- [How do I find every place a config key is set across YAML and XML in a repo?](/answers/search-yaml-xml-config-repository)- [I need my agent to find a passage and cite the file, not dump the whole tree. How?](/answers/code-search-mcp-for-claude-code)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)+- [ast-grep vs a code index for an agent?](/compare/xerj-vs-ast-grep) (same intent: code search for agents)+- [Is ripgrep enough for a coding agent, or do I need a code index?](/compare/xerj-vs-ripgrep-for-code-agents) (same intent: code search for agents)+- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete) (same intent: code search for agents)diff --git a/landing/answers/search-slack-json-export.html b/landing/answers/search-slack-json-export.htmlindex bf5441ad9..ac4fc1f13 100644--- a/landing/answers/search-slack-json-export.html+++ b/landing/answers/search-slack-json-export.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-20","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SEARCH A SLACK JSON EXPORT?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I search a Slack JSON export?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-20</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-20</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> Records keep up to 512 fields each (<code class="inline">MAX_FIELDS_PER_RECORD</code>), so nested Slack message fields map without a schema. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs">engine/crates/xerj-autoindex/src/extract/mod.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Unzip the Slack export to local disk, then run <code class="inline">xerj autoindex</code> on the folder. In a captured run, a phrase written inside a threaded reply returned 2 hits at <code class="inline">incidents/2026-01-15.json</code> with <code class="inline">ax_locator</code> <code class="inline">e1</code>. The <code class="inline">ts</code>, <code class="inline">thread_ts</code> and <code class="inline">user</code> values all survived.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -227,9 +232,9 @@</tbody></table><p>The <code class="inline">reactions</code> field is worth naming. XERJ did not expand it into 1 keyword per reaction name. The field holds the whole array as a single string such as <code class="inline">[{"name":"+1","users":["U01AAAA","U03CCCC"],"count":2}]</code>, so a reaction-name filter needs a <code class="inline">wildcard</code> or a client-side parse.</p>- <h2>If you flatten the export to JSONL, cap the line length</h2>- <p>A long Slack message can push a JSONL line past a hard boundary. Keep every line under 4,096 characters, or the whole file is dropped.</p>- <p>A captured reproduction used 2 files of 30 valid JSON lines each, identical apart from length. At 4,095 characters the sniffer chose <code class="inline">jsonl</code> and indexed 30 documents. At 4,096 characters it chose <code class="inline">json</code>, failed to parse, and indexed 0.</p>+ <h2>If you flatten the export to JSONL</h2>+ <p>A JSONL line at or above 16 MB is skipped and counted as junk. The rest of the file still indexes. The cap is <code class="inline">MAX_LINE</code> (<code class="inline">16 << 20</code>) in <code class="inline">engine/crates/xerj-autoindex/src/extract/mod.rs</code>.</p>+ <p>A first line longer than the 8 KB sniff sample can be labelled JSON. The JSON extractor then reads the file as JSONL, one object per line (<code class="inline">jsonl_fallback</code> in <code class="inline">engine/crates/xerj-autoindex/src/extract/json.rs</code>).</p><h2>Discord and other chat exports</h2><p>A Discord export is JSON on disk too. <code class="inline">xerj autoindex</code> picks the family for each file by reading the content, not the file name. The command above is the one to start with. That is where the verified part stops: no Discord export was captured for this page.</p><p>Nothing on this page is a Discord field name. The channel layout, the field names and any per-channel or per-guild filter all depend on what your export contains. Run <code class="inline">xerj autoindex map</code> and read the mapping for one index before you write a filter. The same applies to any other chat archive exported to JSON.</p>@@ -250,14 +255,22 @@<h3>Is ts indexed as a date field?</h3><p>No. XERJ typed <code class="inline">ts</code> and <code class="inline">thread_ts</code> as <code class="inline">double</code> in the captured run, because Slack writes an epoch value with a fractional part.</p><h3>Can I convert the export to JSONL first?</h3>- <p>Keep every line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 at 4,096.</p>+ <p>A line at or above 16 MB is skipped and counted as junk. The cap is <code class="inline">MAX_LINE</code> (<code class="inline">16 << 20</code>) in <code class="inline">engine/crates/xerj-autoindex/src/extract/mod.rs</code>. The rest of the file still indexes.</p><h3>I downloaded a Discord server export. How do I search it?</h3><p>Unzip it to local disk and run the same <code class="inline">xerj autoindex</code> command on the folder. A Discord export is JSON, and XERJ picks the family by reading the content rather than the file name. No Discord export was captured for this page, so read <code class="inline">xerj autoindex map</code> and the mapping for your own export before you write a filter.</p>+ <h2>Evidence</h2>+ <ul>+ <li>JSONL line cap is 16 MB (MAX_LINE = 16 << 20). A line at or above that length is skipped; the rest of the file still indexes. — <code>engine/crates/xerj-autoindex/src/extract/mod.rs</code></li>+ <li>The sniffer reads an 8 KB prefix. A JSONL file whose first line is longer than that prefix can be labelled JSON, and the JSON extractor then falls back to per-line JSONL. — <code>engine/crates/xerj-autoindex/src/extract/json.rs</code></li>+ </ul><h2>Related</h2><ul><li><a href="/answers/search-json-and-jsonl-logs">What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li>+ <li><a href="/answers/search-zendesk-ticket-json-export">I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/full-text-search-sqlite-database">How do I full-text search a SQLite database I just copied onto disk?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-slack-json-export.md b/landing/answers/search-slack-json-export.mdindex ddacf7e29..81066defb 100644--- a/landing/answers/search-slack-json-export.md+++ b/landing/answers/search-slack-json-export.md@@ -2,12 +2,16 @@---title: "How do I search a Slack JSON export?"canonical: "https://xerj.org/answers/search-slack-json-export"-updated: "2026-08-21"+updated: "2026-10-20"source: "content/answers/search-slack-json-export.md"---# How do I search a Slack JSON export?+**Short answer** (updated 2026-10-20): 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.++**Key number:** Records keep up to 512 fields each (`MAX_FIELDS_PER_RECORD`), so nested Slack message fields map without a schema. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/mod.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/mod.rs))+**TL;DR** — Unzip the Slack export to local disk, then run `xerj autoindex` on the folder. In a captured run, a phrase written inside a threaded reply returned 2 hits at `incidents/2026-01-15.json` with `ax_locator` `e1`. The `ts`, `thread_ts` and `user` values all survived.## Agent prompt@@ -104,11 +108,11 @@ One channel index produced 24 fields. XERJ inferred the types from the values, wThe `reactions` field is worth naming. XERJ did not expand it into 1 keyword per reaction name. The field holds the whole array as a single string such as `[{"name":"+1","users":["U01AAAA","U03CCCC"],"count":2}]`, so a reaction-name filter needs a `wildcard` or a client-side parse.-## If you flatten the export to JSONL, cap the line length+## If you flatten the export to JSONL-A long Slack message can push a JSONL line past a hard boundary. Keep every line under 4,096 characters, or the whole file is dropped.+A JSONL line at or above 16 MB is skipped and counted as junk. The rest of the file still indexes. The cap is `MAX_LINE` (`16 << 20`) in `engine/crates/xerj-autoindex/src/extract/mod.rs`.-A captured reproduction used 2 files of 30 valid JSON lines each, identical apart from length. At 4,095 characters the sniffer chose `jsonl` and indexed 30 documents. At 4,096 characters it chose `json`, failed to parse, and indexed 0.+A first line longer than the 8 KB sniff sample can be labelled JSON. The JSON extractor then reads the file as JSONL, one object per line (`jsonl_fallback` in `engine/crates/xerj-autoindex/src/extract/json.rs`).## Discord and other chat exports@@ -150,14 +154,22 @@ No. XERJ typed `ts` and `thread_ts` as `double` in the captured run, because Sla### Can I convert the export to JSONL first?-Keep every line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 at 4,096.+A line at or above 16 MB is skipped and counted as junk. The cap is `MAX_LINE` (`16 << 20`) in `engine/crates/xerj-autoindex/src/extract/mod.rs`. The rest of the file still indexes.### I downloaded a Discord server export. How do I search it?Unzip it to local disk and run the same `xerj autoindex` command on the folder. A Discord export is JSON, and XERJ picks the family by reading the content rather than the file name. No Discord export was captured for this page, so read `xerj autoindex map` and the mapping for your own export before you write a filter.+## Evidence++- JSONL line cap is 16 MB (MAX_LINE = 16 << 20). A line at or above that length is skipped; the rest of the file still indexes. — `engine/crates/xerj-autoindex/src/extract/mod.rs`+- The sniffer reads an 8 KB prefix. A JSONL file whose first line is longer than that prefix can be labelled JSON, and the JSON extractor then falls back to per-line JSONL. — `engine/crates/xerj-autoindex/src/extract/json.rs`+## Related- [What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?](/answers/search-json-and-jsonl-logs)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)+- [I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?](/answers/search-zendesk-ticket-json-export) (same intent: JSONL and data files)+- [How do I full-text search a SQLite database I just copied onto disk?](/answers/full-text-search-sqlite-database) (same intent: JSONL and data files)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)diff --git a/landing/answers/search-sql-dump-file.html b/landing/answers/search-sql-dump-file.htmlindex b35617566..341cf7838 100644--- a/landing/answers/search-sql-dump-file.html+++ b/landing/answers/search-sql-dump-file.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>I HAVE A 2GB SQL DUMP. HOW DO I FIND ROWS MENTIONING A CUSTOMER WITHOUT LOADING IT INTO POSTGRES?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The captured dump produced 2 indices holding 301 and 20 documents, 321 in total. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex</code> parses a MySQL-style <code class="inline">.sql</code> file directly, with no database server involved. In a captured run one file produced 2 indices, <code class="inline">dump-articles</code> with 301 documents and <code class="inline">dump-authors</code> with 20. A <code class="inline">match_phrase</code> query then found a phrase inside an <code class="inline">INSERT</code> value.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -253,6 +258,9 @@<li><a href="/answers/full-text-search-sqlite-database">How do I full-text search a SQLite database I just copied onto disk?</a></li><li><a href="/answers/index-csv-with-many-columns">How do I index a CSV with many columns?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li>+ <li><a href="/answers/index-multiple-csv-files">I have a directory of CSV exports. How do I query them without opening each one in Excel?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/search-gzipped-csv-or-json">How do I search a .csv.gz or .json.gz without unzipping it first?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-sql-dump-file.md b/landing/answers/search-sql-dump-file.mdindex 04689c7f8..6b375938a 100644--- a/landing/answers/search-sql-dump-file.md+++ b/landing/answers/search-sql-dump-file.md@@ -2,12 +2,16 @@---title: "Search a SQL dump without restoring it"canonical: "https://xerj.org/answers/search-sql-dump-file"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-sql-dump-file.md"---# I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The captured dump produced 2 indices holding 301 and 20 documents, 321 in total. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — `xerj autoindex` parses a MySQL-style `.sql` file directly, with no database server involved. In a captured run one file produced 2 indices, `dump-articles` with 301 documents and `dump-authors` with 20. A `match_phrase` query then found a phrase inside an `INSERT` value.## Agent prompt@@ -161,3 +165,6 @@ Read `ax_locator` and `ax_path`. In the captured run `ax_locator` held `tarticle- [How do I full-text search a SQLite database I just copied onto disk?](/answers/full-text-search-sqlite-database)- [How do I index a CSV with many columns?](/answers/index-csv-with-many-columns)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)+- [I have a directory of CSV exports. How do I query them without opening each one in Excel?](/answers/index-multiple-csv-files) (same intent: JSONL and data files)+- [How do I search a .csv.gz or .json.gz without unzipping it first?](/answers/search-gzipped-csv-or-json) (same intent: JSONL and data files)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)diff --git a/landing/answers/search-unity-project-assets.html b/landing/answers/search-unity-project-assets.htmlindex 2417a2845..dc046438a 100644--- a/landing/answers/search-unity-project-assets.html+++ b/landing/answers/search-unity-project-assets.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SEARCH UNITY YAML SCENES AND THE C# THAT REFERENCES THEM AS ONE PROJECT?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">How do I search Unity YAML scenes and the C# that references them as one project?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> One <code class="inline">bool</code> query joined an asset to its <code class="inline">.meta</code> record by path and returned 3 documents across 2 families. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — Run <code class="inline">xerj autoindex</code> on the project folder. XERJ detects the <code class="inline">unity</code> and <code class="inline">unity-meta</code> families and extracts <code class="inline">m_Name</code>, <code class="inline">unity_class</code> and <code class="inline">guid</code>. One <code class="inline">bool</code> query joined an asset to its <code class="inline">.meta</code> document and returned 3 documents across 2 families.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -261,6 +266,9 @@ unity-docs<li><a href="/answers/search-yaml-xml-config-repository">How do I find every place a config key is set across YAML and XML in a repo?</a></li><li><a href="/answers/index-monorepo-for-agent">How do I stop my agent from reading the whole repo into context?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li>+ <li><a href="/answers/search-jupyter-notebook-cells">I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files and the .py next to them?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/audit-php-codebase-with-an-index">How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-unity-project-assets.md b/landing/answers/search-unity-project-assets.mdindex 032dd9995..c95cea2c5 100644--- a/landing/answers/search-unity-project-assets.md+++ b/landing/answers/search-unity-project-assets.md@@ -2,12 +2,16 @@---title: "Search Unity scenes and the C# beside them"canonical: "https://xerj.org/answers/search-unity-project-assets"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-unity-project-assets.md"---# How do I search Unity YAML scenes and the C# that references them as one project?+**Short answer** (updated 2026-10-19): 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.++**Key number:** One `bool` query joined an asset to its `.meta` record by path and returned 3 documents across 2 families. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — Run `xerj autoindex` on the project folder. XERJ detects the `unity` and `unity-meta` families and extracts `m_Name`, `unity_class` and `guid`. One `bool` query joined an asset to its `.meta` document and returned 3 documents across 2 families.## Agent prompt@@ -168,3 +172,6 @@ No. The scene indices carry typed Unity fields such as `m_Name` and `unity_class- [How do I find every place a config key is set across YAML and XML in a repo?](/answers/search-yaml-xml-config-repository)- [How do I stop my agent from reading the whole repo into context?](/answers/index-monorepo-for-agent)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)+- [I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files and the .py next to them?](/answers/search-jupyter-notebook-cells) (same intent: code search for agents)+- [How do I audit a PHP codebase with an index instead of grepping 1,400 files?](/answers/audit-php-codebase-with-an-index) (same intent: code search for agents)+- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete) (same intent: code search for agents)diff --git a/landing/answers/search-word-documents-in-a-folder.html b/landing/answers/search-word-documents-in-a-folder.htmlindex e75bb5c79..1e8ee51a0 100644--- a/landing/answers/search-word-documents-in-a-folder.html+++ b/landing/answers/search-word-documents-in-a-folder.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SEARCH THROUGH A FOLDER OF CONTRACTS IN .DOCX?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I search through a folder of contracts in .docx?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The DOCX decompression guard refuses a file that expands past its cap; the captured expanded file produced 0 documents. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj autoindex</code> indexes a folder of Word documents in one command, and a <code class="inline">match_phrase</code> query then searches their paragraphs. In a captured run, 1 DOCX file produced 2 documents, and a query for <code class="inline">second reviewer</code> returned the paragraph and the title. A second, deliberately expanded file produced 0 documents.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -244,6 +249,9 @@<li><a href="/answers/search-all-pdfs-in-a-folder">I downloaded a bunch of papers as PDFs. How do I search across them?</a></li><li><a href="/answers/search-obsidian-pdf-docx-attachments">What's the best way to search markdown notes and PDFs in the same vault?</a></li><li><a href="/compare/xerj-vs-docfetcher">What's a free DocFetcher alternative that an agent can call?</a></li>+ <li><a href="/compare/xerj-vs-spotlight">XERJ vs macOS Spotlight for folder content an agent can query</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/is-pdf-indexing-efficient">Is it efficient to index PDF files?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/read-indexed-email-and-pdf-folder">I indexed a folder of email and PDFs. How do I actually read what it found?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-word-documents-in-a-folder.md b/landing/answers/search-word-documents-in-a-folder.mdindex e45362d08..39e7e0b13 100644--- a/landing/answers/search-word-documents-in-a-folder.md+++ b/landing/answers/search-word-documents-in-a-folder.md@@ -2,12 +2,16 @@---title: "How do I search a folder of Word contracts?"canonical: "https://xerj.org/answers/search-word-documents-in-a-folder"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-word-documents-in-a-folder.md"---# How do I search through a folder of contracts in .docx?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The DOCX decompression guard refuses a file that expands past its cap; the captured expanded file produced 0 documents. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — `xerj autoindex` indexes a folder of Word documents in one command, and a `match_phrase` query then searches their paragraphs. In a captured run, 1 DOCX file produced 2 documents, and a query for `second reviewer` returned the paragraph and the title. A second, deliberately expanded file produced 0 documents.## Agent prompt@@ -151,3 +155,6 @@ A small DOCX can expand to hundreds of megabytes when unzipped. The captured 245- [I downloaded a bunch of papers as PDFs. How do I search across them?](/answers/search-all-pdfs-in-a-folder)- [What's the best way to search markdown notes and PDFs in the same vault?](/answers/search-obsidian-pdf-docx-attachments)- [What's a free DocFetcher alternative that an agent can call?](/compare/xerj-vs-docfetcher)+- [XERJ vs macOS Spotlight for folder content an agent can query](/compare/xerj-vs-spotlight) (same intent: logs and docs)+- [Is it efficient to index PDF files?](/answers/is-pdf-indexing-efficient) (same intent: logs and docs)+- [I indexed a folder of email and PDFs. How do I actually read what it found?](/answers/read-indexed-email-and-pdf-folder) (same intent: logs and docs)diff --git a/landing/answers/search-yaml-xml-config-repository.html b/landing/answers/search-yaml-xml-config-repository.htmlindex c5eec21f4..c29304161 100644--- a/landing/answers/search-yaml-xml-config-repository.html+++ b/landing/answers/search-yaml-xml-config-repository.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I FIND EVERY PLACE A CONFIG KEY IS SET ACROSS YAML AND XML IN A REPO?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I find every place a config key is set across YAML and XML in a repo?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The captured run mapped 9 fields, including body and title, across 4 documents from 2 config files. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ <code class="inline">autoindex</code> indexes a folder of YAML and XML config files with no schema file. In our capture 1 <code class="inline">cluster.yaml</code> and 1 <code class="inline">service.xml</code> became 4 documents in one <code class="inline">cfg-docs</code> index. One bool query returned 2 hits, one from each format.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -240,6 +245,9 @@<li><a href="/answers/index-markdown-into-elasticsearch-api">How do I index Markdown into the Elasticsearch API?</a></li><li><a href="/answers/syntax-aware-code-search-refactoring">How do I run syntax-aware code search?</a></li><li><a href="/answers/search-openapi-spec-for-agent">My agent needs to look up endpoints in a big OpenAPI spec and the SDK markdown. What's the right way?</a></li>+ <li><a href="/answers/index-monorepo-for-agent">How do I stop my agent from reading the whole repo into context?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/audit-php-codebase-with-an-index">How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/index-reference-library-for-coding-agent">How do I set up reference coding so the agent retrieves a mechanism before writing code?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-yaml-xml-config-repository.md b/landing/answers/search-yaml-xml-config-repository.mdindex 40d8296cc..9b682303c 100644--- a/landing/answers/search-yaml-xml-config-repository.md+++ b/landing/answers/search-yaml-xml-config-repository.md@@ -2,12 +2,16 @@---title: "Find every place a config key is set in a repo"canonical: "https://xerj.org/answers/search-yaml-xml-config-repository"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/search-yaml-xml-config-repository.md"---# How do I find every place a config key is set across YAML and XML in a repo?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The captured run mapped 9 fields, including body and title, across 4 documents from 2 config files. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — XERJ `autoindex` indexes a folder of YAML and XML config files with no schema file. In our capture 1 `cluster.yaml` and 1 `service.xml` became 4 documents in one `cfg-docs` index. One bool query returned 2 hits, one from each format.## Agent prompt@@ -139,3 +143,6 @@ The whole-file cap is 64 MiB and the longest line is 16 MiB. One document holds- [How do I index Markdown into the Elasticsearch API?](/answers/index-markdown-into-elasticsearch-api)- [How do I run syntax-aware code search?](/answers/syntax-aware-code-search-refactoring)- [My agent needs to look up endpoints in a big OpenAPI spec and the SDK markdown. What's the right way?](/answers/search-openapi-spec-for-agent)+- [How do I stop my agent from reading the whole repo into context?](/answers/index-monorepo-for-agent) (same intent: code search for agents)+- [How do I audit a PHP codebase with an index instead of grepping 1,400 files?](/answers/audit-php-codebase-with-an-index) (same intent: code search for agents)+- [How do I set up reference coding so the agent retrieves a mechanism before writing code?](/answers/index-reference-library-for-coding-agent) (same intent: code search for agents)diff --git a/landing/answers/search-zendesk-ticket-json-export.html b/landing/answers/search-zendesk-ticket-json-export.htmlindex dd4daf16f..7d1480541 100644--- a/landing/answers/search-zendesk-ticket-json-export.html+++ b/landing/answers/search-zendesk-ticket-json-export.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-20","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>I HAVE A JSON EXPORT OF JIRA ISSUES (OR ZENDESK TICKETS). HOW DO I SEARCH IT LIKE A HELP-CENTER SEARCH?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1 class="h1-long">I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-20</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-20</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> A <code class="inline">status</code> terms aggregation returned 6 buckets of exactly 30 tickets each. <span class="mute">(as of 2026-08-21 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ answers a Zendesk ticket search from the exported JSON on local disk, with 1 <code class="inline">xerj autoindex</code> run. In a captured run, a phrase from a ticket description returned 36 hits with per-ticket locators such as <code class="inline">tickets:e4</code>. A <code class="inline">status</code> aggregation returned 6 buckets of exactly 30.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -237,7 +242,7 @@<p>The <code class="inline">date</code> typing is what makes a range query over <code class="inline">created_at</code> work straight after the run. The default embedder in XERJ is lexical feature hashing, so a <code class="inline">semantic_text</code> field written by that embedder cannot connect a query to a synonym. Neural embeddings are opt-in through <code class="inline">--embed-mode neural</code>.</p><h2>What this capture does not show</h2><p>XERJ has no Zendesk connector, no API token flow and no sync job. The node observed 0 distinct non-loopback peers across 185 samples over its whole life. Request the export from Zendesk yourself, save it to disk, then index the folder.</p>- <p>If you flatten the export to JSONL, keep every line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 documents at 4,096, with the family flipping from <code class="inline">jsonl</code> to <code class="inline">json</code>.</p>+ <p>If you flatten the export to JSONL, a line at or above 16 MB is skipped and counted as junk (<code class="inline">MAX_LINE</code>, <code class="inline">16 << 20</code>, in <code class="inline">engine/crates/xerj-autoindex/src/extract/mod.rs</code>). The rest of the file still indexes.</p><p>XERJ runs single-node here, with no replication and no failover. Every number above comes from RUN-B, captured on 2026-08-21. The binary was a <code class="inline">ci-test</code> profile build, so no wall-clock figure from this run is published as a performance number.</p><h2>FAQ</h2><h3>I have a JSON export of support tickets. How do I search it like a real help-center search?</h3>@@ -254,11 +259,18 @@<p>XERJ typed <code class="inline">tags</code> as a multi-valued <code class="inline">keyword</code>, so a <code class="inline">terms</code> filter with the tag value returns the matching tickets. <code class="inline">custom_fields</code> is <code class="inline">keyword</code> too.</p><h3>Do ticket comments become searchable too?</h3><p>Yes. The captured run put <code class="inline">ticket_comments.json</code> into its own index, <code class="inline">zd-json-ticket-comments</code>, with 61 documents.</p>+ <h2>Evidence</h2>+ <ul>+ <li>JSONL line cap is 16 MB (MAX_LINE = 16 << 20). A line at or above that length is skipped; the rest of the file still indexes. — <code>engine/crates/xerj-autoindex/src/extract/mod.rs</code></li>+ </ul><h2>Related</h2><ul><li><a href="/answers/search-json-and-jsonl-logs">What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?</a></li><li><a href="/answers/catalog-files-with-autoindex-map">How should an agent figure out what's in a messy data folder before searching?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li>+ <li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/index-multiple-csv-files">I have a directory of CSV exports. How do I query them without opening each one in Excel?</a> <span class="mute">· same intent: JSONL and data files</span></li>+ <li><a href="/answers/index-csv-with-many-columns">How do I index a CSV with many columns?</a> <span class="mute">· same intent: JSONL and data files</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/search-zendesk-ticket-json-export.md b/landing/answers/search-zendesk-ticket-json-export.mdindex e0b8c4aa1..f11f73a2c 100644--- a/landing/answers/search-zendesk-ticket-json-export.md+++ b/landing/answers/search-zendesk-ticket-json-export.md@@ -2,12 +2,16 @@---title: "Search a JSON export of support tickets"canonical: "https://xerj.org/answers/search-zendesk-ticket-json-export"-updated: "2026-08-21"+updated: "2026-10-20"source: "content/answers/search-zendesk-ticket-json-export.md"---# I have a JSON export of Jira issues (or Zendesk tickets). How do I search it like a help-center search?+**Short answer** (updated 2026-10-20): 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.++**Key number:** A `status` terms aggregation returned 6 buckets of exactly 30 tickets each. (as of 2026-08-21; source: the captured run documented on this page)+**TL;DR** — XERJ answers a Zendesk ticket search from the exported JSON on local disk, with 1 `xerj autoindex` run. In a captured run, a phrase from a ticket description returned 36 hits with per-ticket locators such as `tickets:e4`. A `status` aggregation returned 6 buckets of exactly 30.## Agent prompt@@ -118,7 +122,7 @@ The `date` typing is what makes a range query over `created_at` work straight afXERJ has no Zendesk connector, no API token flow and no sync job. The node observed 0 distinct non-loopback peers across 185 samples over its whole life. Request the export from Zendesk yourself, save it to disk, then index the folder.-If you flatten the export to JSONL, keep every line under 4,096 characters. A captured reproduction indexed 30 documents at 4,095 characters per line and 0 documents at 4,096, with the family flipping from `jsonl` to `json`.+If you flatten the export to JSONL, a line at or above 16 MB is skipped and counted as junk (`MAX_LINE`, `16 << 20`, in `engine/crates/xerj-autoindex/src/extract/mod.rs`). The rest of the file still indexes.XERJ runs single-node here, with no replication and no failover. Every number above comes from RUN-B, captured on 2026-08-21. The binary was a `ci-test` profile build, so no wall-clock figure from this run is published as a performance number.@@ -152,8 +156,15 @@ XERJ typed `tags` as a multi-valued `keyword`, so a `terms` filter with the tagYes. The captured run put `ticket_comments.json` into its own index, `zd-json-ticket-comments`, with 61 documents.+## Evidence++- JSONL line cap is 16 MB (MAX_LINE = 16 << 20). A line at or above that length is skipped; the rest of the file still indexes. — `engine/crates/xerj-autoindex/src/extract/mod.rs`+## Related- [What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?](/answers/search-json-and-jsonl-logs)- [How should an agent figure out what's in a messy data folder before searching?](/answers/catalog-files-with-autoindex-map)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)+- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder) (same intent: JSONL and data files)+- [I have a directory of CSV exports. How do I query them without opening each one in Excel?](/answers/index-multiple-csv-files) (same intent: JSONL and data files)+- [How do I index a CSV with many columns?](/answers/index-csv-with-many-columns) (same intent: JSONL and data files)diff --git a/landing/answers/set-mcp-memory-storage-path.html b/landing/answers/set-mcp-memory-storage-path.htmlindex 0b427242d..03ba138fe 100644--- a/landing/answers/set-mcp-memory-storage-path.html+++ b/landing/answers/set-mcp-memory-storage-path.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I SET THE MCP MEMORY STORAGE PATH?</div><div class="kicker"><span>ANSWERS · AGENT MEMORY: STORAGE</span></div><h1>How do I set the MCP memory storage path?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> xerj mcp exposes 2 memory tools out of 17, and both proxy to the node; neither writes a file of its own. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json">landing/docs/agents/schemas/mcp-tools.json</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ has no memory-specific storage path. Agent memory is an ordinary index named <code class="inline">.xerj-memory-{namespace}</code> inside the node data directory, so <code class="inline">--data-dir</code> sets it. Our capture stored a memory, restarted the node against the same directory, and recalled it.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -238,6 +243,9 @@ drwxr-xr-x 4 root root 160 .xerj-memory-agentmem<li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a></li><li><a href="/answers/resume-interrupted-autoindex-run">The indexer died overnight. Do I have to start over?</a></li><li><a href="/docs/storage">Storage & WAL</a></li>+ <li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/private-agent-memory-namespaces">How do I give two agents private memory on one laptop?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/evidence-for-agent-memory-links">How can agent-memory links retain evidence?</a> <span class="mute">· same intent: agent memory</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/set-mcp-memory-storage-path.md b/landing/answers/set-mcp-memory-storage-path.mdindex 82e842d1d..8ca27c05a 100644--- a/landing/answers/set-mcp-memory-storage-path.md+++ b/landing/answers/set-mcp-memory-storage-path.md@@ -2,12 +2,16 @@---title: "Set the MCP memory storage path"canonical: "https://xerj.org/answers/set-mcp-memory-storage-path"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/set-mcp-memory-storage-path.md"---# How do I set the MCP memory storage path?+**Short answer** (updated 2026-10-19): 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.++**Key number:** xerj mcp exposes 2 memory tools out of 17, and both proxy to the node; neither writes a file of its own. (as of 2026-10-19; source: [landing/docs/agents/schemas/mcp-tools.json](https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json))+**TL;DR** — XERJ has no memory-specific storage path. Agent memory is an ordinary index named `.xerj-memory-{namespace}` inside the node data directory, so `--data-dir` sets it. Our capture stored a memory, restarted the node against the same directory, and recalled it.## Agent prompt@@ -129,3 +133,6 @@ No. The `node.lock` file guards the directory, and XERJ is single-node with no r- [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions)- [The indexer died overnight. Do I have to start over?](/answers/resume-interrupted-autoindex-run)- [Storage & WAL](/docs/storage)+- [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant) (same intent: agent memory)+- [How do I give two agents private memory on one laptop?](/answers/private-agent-memory-namespaces) (same intent: agent memory)+- [How can agent-memory links retain evidence?](/answers/evidence-for-agent-memory-links) (same intent: agent memory)diff --git a/landing/answers/share-folder-read-only-search-without-uploading.html b/landing/answers/share-folder-read-only-search-without-uploading.htmlindex 8ec4d7ecd..3e47edc5a 100644--- a/landing/answers/share-folder-read-only-search-without-uploading.html+++ b/landing/answers/share-folder-read-only-search-without-uploading.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I GIVE MY LAWYER OR ACCOUNTANT READ-ONLY SEARCH OVER A FOLDER OF EMAIL AND PDFS WITHOUT UPLOADING IT?</div><div class="kicker"><span>ANSWERS · SHARING: READ-ONLY GUEST ACCESS</span></div><h1 class="h1-long">How do I give my lawyer or accountant read-only search over a folder of email and PDFs without uploading it?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> A share defaults to 24 hours and 1 claim; the maximum is 30 days and 50 claims. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/share.rs">engine/crates/xerj-api/src/share.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Index the folder with <code class="inline">xerj brain</code>, then run <code class="inline">xerj share</code> on the same folder. The other person gets a link and a passcode. They open a read-only search page in a browser and read what they find. The documents and the index stay on your machine. You can revoke it at any time.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>diff --git a/landing/answers/share-folder-read-only-search-without-uploading.md b/landing/answers/share-folder-read-only-search-without-uploading.mdindex 1db156822..31ba7db59 100644--- a/landing/answers/share-folder-read-only-search-without-uploading.md+++ b/landing/answers/share-folder-read-only-search-without-uploading.md@@ -2,12 +2,16 @@---title: "Read-only search over a folder, without uploading it"canonical: "https://xerj.org/answers/share-folder-read-only-search-without-uploading"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/share-folder-read-only-search-without-uploading.md"---# How do I give my lawyer or accountant read-only search over a folder of email and PDFs without uploading it?+**Short answer** (updated 2026-10-19): 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.++**Key number:** A share defaults to 24 hours and 1 claim; the maximum is 30 days and 50 claims. (as of 2026-10-19; source: [engine/crates/xerj-api/src/share.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/share.rs))+**TL;DR** — Index the folder with `xerj brain`, then run `xerj share` on the same folder. The other person gets a link and a passcode. They open a read-only search page in a browser and read what they find. The documents and the index stay on your machine. You can revoke it at any time.## Agent promptdiff --git a/landing/answers/share-local-search-index-through-a-tunnel.html b/landing/answers/share-local-search-index-through-a-tunnel.htmlindex 16a27c746..f50de4502 100644--- a/landing/answers/share-local-search-index-through-a-tunnel.html+++ b/landing/answers/share-local-search-index-through-a-tunnel.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I LET SOMEONE OUTSIDE MY NETWORK SEARCH AN INDEX ON MY LAPTOP WITHOUT OPENING A PORT?</div><div class="kicker"><span>ANSWERS · SHARING: READ-ONLY GUEST ACCESS</span></div><h1 class="h1-long">How do I let someone outside my network search an index on my laptop without opening a port?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> A known share accepts at most 30 passcode attempts an hour, from any address. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/share.rs">engine/crates/xerj-api/src/share.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — <code class="inline">xerj share</code> with <code class="inline">--tunnel</code> starts your own <code class="inline">cloudflared</code>, prints a public HTTPS guest link, and runs until you press Ctrl-C. Stopping it closes the tunnel and revokes the share. No port is opened on your router. The trade: the guest's traffic passes through Cloudflare, which terminates the TLS connection.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>diff --git a/landing/answers/share-local-search-index-through-a-tunnel.md b/landing/answers/share-local-search-index-through-a-tunnel.mdindex 689004860..9d21d903a 100644--- a/landing/answers/share-local-search-index-through-a-tunnel.md+++ b/landing/answers/share-local-search-index-through-a-tunnel.md@@ -2,12 +2,16 @@---title: "Share a local search index through a tunnel"canonical: "https://xerj.org/answers/share-local-search-index-through-a-tunnel"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/share-local-search-index-through-a-tunnel.md"---# How do I let someone outside my network search an index on my laptop without opening a port?+**Short answer** (updated 2026-10-19): 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.++**Key number:** A known share accepts at most 30 passcode attempts an hour, from any address. (as of 2026-10-19; source: [engine/crates/xerj-api/src/share.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/share.rs))+**TL;DR** — `xerj share` with `--tunnel` starts your own `cloudflared`, prints a public HTTPS guest link, and runs until you press Ctrl-C. Stopping it closes the tunnel and revokes the share. No port is opened on your router. The trade: the guest's traffic passes through Cloudflare, which terminates the TLS connection.## Agent promptdiff --git a/landing/answers/store-agent-memory-without-llm-call.html b/landing/answers/store-agent-memory-without-llm-call.htmlindex b0982f3b6..88e7b916e 100644--- a/landing/answers/store-agent-memory-without-llm-call.html+++ b/landing/answers/store-agent-memory-without-llm-call.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-09-13",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I STOP AN AGENT MEMORY STORE FROM FILLING WITH NEAR-DUPLICATE NOTES?</div><div class="kicker"><span>ANSWERS · AGENT MEMORY: MODEL DEPENDENCY</span></div><h1>How do I stop an agent memory store from filling with near-duplicate notes?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-09-13</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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. No model or summarization runs on the write path.</p>+ <p class="key-fact"><strong>Key number:</strong> The default dedup threshold is a cosine similarity of 0.95. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/memory_api.rs">engine/crates/xerj-api/src/memory_api.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Send <code class="inline">dedup: true</code> on the store call and XERJ returns the existing id with <code class="inline">"deduplicated": true</code> instead of writing a second document. The check compares against the memories the namespace already holds, at a default cosine threshold of 0.95. No model and no summarization runs on the write path.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -255,6 +260,9 @@<li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a></li><li><a href="/answers/do-search-embeddings-help">When should I turn on neural embeddings, and when is the lexical default enough?</a></li><li><a href="/answers/local-embeddings-without-openai-api">I want local search that works offline, no cloud embeddings. What are my options?</a></li>+ <li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/evidence-for-agent-memory-links">How can agent-memory links retain evidence?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/knowledge-graphs-for-agent-memory">Should agent memory use a knowledge graph?</a> <span class="mute">· same intent: agent memory</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/store-agent-memory-without-llm-call.md b/landing/answers/store-agent-memory-without-llm-call.mdindex 21f38f997..d88593fa9 100644--- a/landing/answers/store-agent-memory-without-llm-call.md+++ b/landing/answers/store-agent-memory-without-llm-call.md@@ -2,12 +2,16 @@---title: "Stop agent memory filling with duplicate notes"canonical: "https://xerj.org/answers/store-agent-memory-without-llm-call"-updated: "2026-09-13"+updated: "2026-10-19"source: "content/answers/store-agent-memory-without-llm-call.md"---# How do I stop an agent memory store from filling with near-duplicate notes?+**Short answer** (updated 2026-10-19): 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. No model or summarization runs on the write path.++**Key number:** The default dedup threshold is a cosine similarity of 0.95. (as of 2026-10-19; source: [engine/crates/xerj-api/src/memory_api.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-api/src/memory_api.rs))+**TL;DR** — Send `dedup: true` on the store call and XERJ returns the existing id with `"deduplicated": true` instead of writing a second document. The check compares against the memories the namespace already holds, at a default cosine threshold of 0.95. No model and no summarization runs on the write path.## Agent prompt@@ -166,3 +170,6 @@ No. The stored `text` is the text you sent. There is no model in the write path- [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant)- [When should I turn on neural embeddings, and when is the lexical default enough?](/answers/do-search-embeddings-help)- [I want local search that works offline, no cloud embeddings. What are my options?](/answers/local-embeddings-without-openai-api)+- [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions) (same intent: agent memory)+- [How can agent-memory links retain evidence?](/answers/evidence-for-agent-memory-links) (same intent: agent memory)+- [Should agent memory use a knowledge graph?](/answers/knowledge-graphs-for-agent-memory) (same intent: agent memory)diff --git a/landing/answers/syntax-aware-code-search-refactoring.html b/landing/answers/syntax-aware-code-search-refactoring.htmlindex 4581127ae..9c6497de1 100644--- a/landing/answers/syntax-aware-code-search-refactoring.html+++ b/landing/answers/syntax-aware-code-search-refactoring.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-21",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>HOW DO I RUN SYNTAX-AWARE CODE SEARCH?</div><div class="kicker"><span>ANSWERS · FILES AND FORMATS</span></div><h1>How do I run syntax-aware code search?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-21</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ's tree-sitter registry covers 36 languages, pinned by a unit test. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs">engine/crates/xerj-autoindex/src/extract/code.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — XERJ gives you 2 code queries on the same index: a <code class="inline">match</code> on <code class="inline">body</code> for raw text, and a <code class="inline">match</code> on <code class="inline">defs</code> for declared symbols. The definition query returns a <code class="inline">symbols</code> array with a kind, a name and a line. Extraction is definitions only.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -208,7 +213,7 @@<p>One miss is worth naming. The file <code class="inline">src/query.go</code> declares <code class="inline">MergeSegments</code>, and the token <code class="inline">merge_segments</code> did not match it. Spell the identifier the way the language spells it.</p><h2>The boundary for refactoring work</h2><p>XERJ extracts definitions only. There is no call graph, no import graph and no cross-file reference resolution, so XERJ does not find callers of a symbol.</p>- <p>That boundary decides the tool choice. Use XERJ to locate every declaration and every textual occurrence across 34 languages. Use a language server or a compiler plugin for a rename that must be sound.</p>+ <p>That boundary decides the tool choice. Use XERJ to locate every declaration and every textual occurrence across 36 languages. Use a language server or a compiler plugin for a rename that must be sound.</p><h2>Caps and failure behavior</h2><p>Tree-sitter extraction stops at 2 MB per source file and 5,000 symbols per file, and a symbol name is truncated at 200 characters. A parse failure is never fatal. XERJ still indexes the file body as plain text, so the text query keeps working.</p><p>The capture ran on 1 single-node XERJ process over 3 source files in 3 languages. This run measured no large repository.</p>@@ -220,7 +225,7 @@<h3>Does XERJ find every caller of a function?</h3><p>No. Extraction is definitions only, with no call graph and no cross-file reference resolution. Use a language server when a rename must be sound.</p><h3>Which languages does XERJ parse?</h3>- <p>34 languages through tree-sitter, including Rust, Go, Python, TypeScript, Java and C++. Our capture exercised <code class="inline">rust</code>, <code class="inline">python</code> and <code class="inline">go</code>.</p>+ <p>36 languages through tree-sitter, including Rust, Go, Python, TypeScript, Java and C++. Our capture exercised <code class="inline">rust</code>, <code class="inline">python</code> and <code class="inline">go</code>.</p><h3>Does case matter in a symbol query?</h3><p>Yes, in practice. <code class="inline">src/query.go</code> declares <code class="inline">MergeSegments</code>, and the query token <code class="inline">merge_segments</code> did not match it in our capture.</p><h3>What happens if a file fails to parse?</h3>@@ -232,6 +237,9 @@<li><a href="/answers/index-monorepo-for-agent">How do I stop my agent from reading the whole repo into context?</a></li><li><a href="/compare/xerj-vs-ripgrep-for-code-agents">Is ripgrep enough for a coding agent, or do I need a code index?</a></li><li><a href="/case-studies/reference-coding">Reference-coding for Claude Code</a></li>+ <li><a href="/answers/audit-php-codebase-with-an-index">How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/search-yaml-xml-config-repository">How do I find every place a config key is set across YAML and XML in a repo?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/compare/xerj-vs-ast-grep">ast-grep vs a code index for an agent?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/syntax-aware-code-search-refactoring.md b/landing/answers/syntax-aware-code-search-refactoring.mdindex 5de075e01..2847720eb 100644--- a/landing/answers/syntax-aware-code-search-refactoring.md+++ b/landing/answers/syntax-aware-code-search-refactoring.md@@ -2,12 +2,16 @@---title: "How do I run syntax-aware code search?"canonical: "https://xerj.org/answers/syntax-aware-code-search-refactoring"-updated: "2026-08-21"+updated: "2026-10-19"source: "content/answers/syntax-aware-code-search-refactoring.md"---# How do I run syntax-aware code search?+**Short answer** (updated 2026-10-19): 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.++**Key number:** XERJ's tree-sitter registry covers 36 languages, pinned by a unit test. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/code.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs))+**TL;DR** — XERJ gives you 2 code queries on the same index: a `match` on `body` for raw text, and a `match` on `defs` for declared symbols. The definition query returns a `symbols` array with a kind, a name and a line. Extraction is definitions only.## Agent prompt@@ -87,7 +91,7 @@ One miss is worth naming. The file `src/query.go` declares `MergeSegments`, andXERJ extracts definitions only. There is no call graph, no import graph and no cross-file reference resolution, so XERJ does not find callers of a symbol.-That boundary decides the tool choice. Use XERJ to locate every declaration and every textual occurrence across 34 languages. Use a language server or a compiler plugin for a rename that must be sound.+That boundary decides the tool choice. Use XERJ to locate every declaration and every textual occurrence across 36 languages. Use a language server or a compiler plugin for a rename that must be sound.## Caps and failure behavior@@ -111,7 +115,7 @@ No. Extraction is definitions only, with no call graph and no cross-file referen### Which languages does XERJ parse?-34 languages through tree-sitter, including Rust, Go, Python, TypeScript, Java and C++. Our capture exercised `rust`, `python` and `go`.+36 languages through tree-sitter, including Rust, Go, Python, TypeScript, Java and C++. Our capture exercised `rust`, `python` and `go`.### Does case matter in a symbol query?@@ -130,3 +134,6 @@ Nothing is lost. A parse failure is never fatal, and XERJ still indexes the file- [How do I stop my agent from reading the whole repo into context?](/answers/index-monorepo-for-agent)- [Is ripgrep enough for a coding agent, or do I need a code index?](/compare/xerj-vs-ripgrep-for-code-agents)- [Reference-coding for Claude Code](/case-studies/reference-coding)+- [How do I audit a PHP codebase with an index instead of grepping 1,400 files?](/answers/audit-php-codebase-with-an-index) (same intent: code search for agents)+- [How do I find every place a config key is set across YAML and XML in a repo?](/answers/search-yaml-xml-config-repository) (same intent: code search for agents)+- [ast-grep vs a code index for an agent?](/compare/xerj-vs-ast-grep) (same intent: code search for agents)diff --git a/landing/answers/vector-database-vs-full-text-search.html b/landing/answers/vector-database-vs-full-text-search.htmlindex e6fc6a910..bdab2f15d 100644--- a/landing/answers/vector-database-vs-full-text-search.html+++ b/landing/answers/vector-database-vs-full-text-search.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHAT'S THE ACTUAL DIFFERENCE BETWEEN A VECTOR DATABASE AND FULL-TEXT SEARCH WHEN I HAVE A FOLDER?</div><div class="kicker"><span>ANSWERS · RETRIEVAL: SELECTION</span></div><h1 class="h1-long">What's the actual difference between a vector database and full-text search when I have a folder?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> On BEIR SciFact, BM25 scored nDCG@10 0.6572, vectors alone 0.6764, and hybrid RRF 0.6993. <span class="mute">(as of 2026-09-18 · source: <a href="https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/scifact.txt">benchmarks/beir-hybrid/results/scifact.txt</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Full-text search matches tokens and ranks with BM25, while a kNN query compares one embedding against stored dense vectors. XERJ holds both in one index, so the decision is which clause to send. On our 8 judged queries the three modes disagreed on the top hit once.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -261,6 +266,9 @@<li><a href="/answers/do-search-embeddings-help">When should I turn on neural embeddings, and when is the lexical default enough?</a></li><li><a href="/answers/mcp-api-search-or-vector-search">Should an agent use API search or vector search?</a></li><li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a></li>+ <li><a href="/answers/how-xerj-combines-search">How does XERJ combine BM25 and kNN?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/classify-text-from-labelled-history-without-llm">Can I route tickets or filter spam from labelled history, without an LLM call?</a> <span class="mute">· same intent: retrieval research and eval</span></li>+ <li><a href="/answers/hybrid-search-quality-measured-ndcg">How much better is hybrid search than BM25? Measured nDCG numbers</a> <span class="mute">· same intent: retrieval research and eval</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/vector-database-vs-full-text-search.md b/landing/answers/vector-database-vs-full-text-search.mdindex 1bdfa08e2..64cac2596 100644--- a/landing/answers/vector-database-vs-full-text-search.md+++ b/landing/answers/vector-database-vs-full-text-search.md@@ -2,12 +2,16 @@---title: "Vector database or full-text search for a folder?"canonical: "https://xerj.org/answers/vector-database-vs-full-text-search"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/answers/vector-database-vs-full-text-search.md"---# What's the actual difference between a vector database and full-text search when I have a folder?+**Short answer** (updated 2026-10-19): 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.++**Key number:** On BEIR SciFact, BM25 scored nDCG@10 0.6572, vectors alone 0.6764, and hybrid RRF 0.6993. (as of 2026-09-18; source: [benchmarks/beir-hybrid/results/scifact.txt](https://github.com/xerj-org/xerj/blob/main/benchmarks/beir-hybrid/results/scifact.txt))+**TL;DR** — Full-text search matches tokens and ranks with BM25, while a kNN query compares one embedding against stored dense vectors. XERJ holds both in one index, so the decision is which clause to send. On our 8 judged queries the three modes disagreed on the top hit once.## Agent prompt@@ -163,3 +167,6 @@ Only when seven conditions hold, including cosine similarity, no filter and at l- [When should I turn on neural embeddings, and when is the lexical default enough?](/answers/do-search-embeddings-help)- [Should an agent use API search or vector search?](/answers/mcp-api-search-or-vector-search)- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database)+- [How does XERJ combine BM25 and kNN?](/answers/how-xerj-combines-search) (same intent: retrieval research and eval)+- [Can I route tickets or filter spam from labelled history, without an LLM call?](/answers/classify-text-from-labelled-history-without-llm) (same intent: retrieval research and eval)+- [How much better is hybrid search than BM25? Measured nDCG numbers](/answers/hybrid-search-quality-measured-ndcg) (same intent: retrieval research and eval)diff --git a/landing/answers/what-a-share-link-guest-can-reach.html b/landing/answers/what-a-share-link-guest-can-reach.htmlindex f3701587b..34fc7b7e7 100644--- a/landing/answers/what-a-share-link-guest-can-reach.html+++ b/landing/answers/what-a-share-link-guest-can-reach.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-09-18",- "dateModified": "2026-09-20",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>IF I SHARE ONE INDEX WITH A LINK AND A PASSCODE, WHAT CAN THAT PERSON ACTUALLY REACH ON MY NODE?</div><div class="kicker"><span>ANSWERS · SHARING: READ-ONLY GUEST ACCESS</span></div><h1 class="h1-long">If I share one index with a link and a passcode, what can that person actually reach on my node?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-09-20</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-09-18 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The live share-link test ran 237 checks on 2026-09-19 with 0 failures. <span class="mute">(as of 2026-09-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/docs/usecases/share-links/VERIFICATION.md">docs/usecases/share-links/VERIFICATION.md</a>)</span></p>+ </div><p><strong>TL;DR</strong> — A share-link guest gets a key with <code class="inline">read</code> on the shared index and nothing else. A route allow-list, used for guests only, closes <code class="inline">_cat</code>, <code class="inline">_cluster</code>, every other index, all writes, and scroll and point-in-time contexts. Each refusal is a check in a live test that ran 237 checks on 2026-09-19, with 0 failures.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>diff --git a/landing/answers/what-a-share-link-guest-can-reach.md b/landing/answers/what-a-share-link-guest-can-reach.mdindex 7bfd00679..c1851e42d 100644--- a/landing/answers/what-a-share-link-guest-can-reach.md+++ b/landing/answers/what-a-share-link-guest-can-reach.md@@ -2,12 +2,16 @@---title: "What a XERJ share-link guest can and cannot reach"canonical: "https://xerj.org/answers/what-a-share-link-guest-can-reach"-updated: "2026-09-20"+updated: "2026-10-19"source: "content/answers/what-a-share-link-guest-can-reach.md"---# If I share one index with a link and a passcode, what can that person actually reach on my node?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The live share-link test ran 237 checks on 2026-09-19 with 0 failures. (as of 2026-09-19; source: [docs/usecases/share-links/VERIFICATION.md](https://github.com/xerj-org/xerj/blob/main/docs/usecases/share-links/VERIFICATION.md))+**TL;DR** — A share-link guest gets a key with `read` on the shared index and nothing else. A route allow-list, used for guests only, closes `_cat`, `_cluster`, every other index, all writes, and scroll and point-in-time contexts. Each refusal is a check in a live test that ran 237 checks on 2026-09-19, with 0 failures.## Agent promptdiff --git a/landing/answers/what-is-xerj.html b/landing/answers/what-is-xerj.htmlindex 3dd09301f..3f49bef90 100644--- a/landing/answers/what-is-xerj.html+++ b/landing/answers/what-is-xerj.html@@ -156,7 +156,12 @@<div class="kicker"><span>ANSWERS · PRODUCT IDENTITY</span></div><h1>What is XERJ?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>- <p><strong>TL;DR</strong> — XERJ is one Apache-2.0 Rust binary that indexes a local folder and answers search queries over the Elasticsearch REST API. <code class="inline">xerj autoindex</code> needs no schema and no configuration file. The same process serves agent memory at <code class="inline">/_memory/{namespace}</code> and 10 MCP tools through <code class="inline">xerj mcp</code>.</p>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>What is XERJ? It is an open-source local search engine for AI agents: a single Apache-2.0 Rust binary. Point xerj autoindex at a folder of code, documents or data files and query it over the Elasticsearch REST API, or let an agent call it through xerj mcp, which also stores agent memory.</p>+ <p class="key-fact"><strong>Key number:</strong> A live <code class="inline">tools/list</code> from v1.0.0-rc.97 returned 17 MCP tools; the engine passes 1366 of 1369 Elasticsearch YAML conformance cases. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json">landing/docs/agents/schemas/mcp-tools.json</a>)</span></p>+ </div>+ <p><strong>TL;DR</strong> — XERJ is one Apache-2.0 Rust binary that indexes a local folder and answers search queries over the Elasticsearch REST API. <code class="inline">xerj autoindex</code> needs no schema and no configuration file. The same process serves agent memory at <code class="inline">/_memory/{namespace}</code> and 17 MCP tools through <code class="inline">xerj mcp</code>.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span><code>Act as a coding agent meeting this tool for the first time. Read https://xerj.org/llms.txt, start a node with `xerj --insecure --data-dir ./.xerj-data`, run `xerj autoindex ./docs --url http://127.0.0.1:9200 --prefix docs --progress plain` on the folder you were handed, run `xerj autoindex map --url http://127.0.0.1:9200` to learn the real index and field names, then POST one match_phrase query to /docs-*/_search and answer the user question citing the ax_path of every hit.</code>@@ -190,7 +195,7 @@<span class="prompt-label">RUN THIS XERJ COMMAND</span><code>xerj mcp --url http://127.0.0.1:9200</code><button type="button" class="prompt-copy" data-copy="xerj mcp --url http://127.0.0.1:9200">COPY COMMAND</button>- <span class="hero-proof">Attach the running node to an agent host over stdio MCP. This serves 10 tools and starts no node of its own.</span>+ <span class="hero-proof">Attach the running node to an agent host over stdio MCP. This serves 17 tools and starts no node of its own.</span></div><h2>Point it at a folder and query the folder</h2><p>Two commands take a folder from nothing to searchable. Start the node, then hand <code class="inline">xerj autoindex</code> the directory.</p>@@ -207,7 +212,7 @@ xerj autoindex ./docs --url http://127.0.0.1:9200 --prefix docs --progress plain</code></pre><p>Every document carries <code class="inline">ax_path</code>, <code class="inline">ax_file</code>, <code class="inline">ax_format</code> and four more keyword provenance fields. A hit names the file it came from, so an agent can cite its source instead of guessing.</p><h2>Hand the same node to an agent</h2>- <p><code class="inline">xerj mcp</code> is a stdio MCP server inside the same binary. It serves 10 tools against a node that is already running: <code class="inline">xerj_search</code>, <code class="inline">xerj_semantic_search</code>, <code class="inline">xerj_vector_search</code>, <code class="inline">xerj_hybrid_search</code>, <code class="inline">xerj_memory_store</code>, <code class="inline">xerj_memory_recall</code> and four <code class="inline">xerj_brain_*</code> operations. The semantic tool runs whichever embedder the node loaded, and the default embedder is lexical feature hashing rather than a neural model.</p>+ <p><code class="inline">xerj mcp</code> is a stdio MCP server inside the same binary. It serves 17 tools against a node that is already running: <code class="inline">xerj_search</code>, <code class="inline">xerj_semantic_search</code>, <code class="inline">xerj_vector_search</code>, <code class="inline">xerj_hybrid_search</code>, <code class="inline">xerj_memory_store</code>, <code class="inline">xerj_memory_recall</code>, four <code class="inline">xerj_brain_*</code> operations, <code class="inline">xerj_map</code>, <code class="inline">xerj_code_search</code>, <code class="inline">xerj_plan</code>, <code class="inline">xerj_field_report</code> and three <code class="inline">xerj_hub_*</code> Corpus Hub tools (a live <code class="inline">tools/list</code> from v1.0.0-rc.97 on 2026-10-19). The semantic tool runs whichever embedder the node loaded, and the default embedder is lexical feature hashing rather than a neural model.</p><p>The command does not start a node. Start one first, then register <code class="inline">xerj mcp --url http://127.0.0.1:9200</code> in the agent host with an absolute path to the binary.</p><h2>Store agent memory in the same process</h2><p>Agent memory is an endpoint on the node, not a second deployment. An agent stores a fact with <code class="inline">POST /_memory/{namespace}</code> and reads it back with <code class="inline">_recall</code>, on the same port that answers <code class="inline">_search</code>.</p>@@ -262,6 +267,9 @@ xerj autoindex ./docs --url http://127.0.0.1:9200 --prefix docs --progress plain<li><a href="/answers/local-code-search-mcp-fewer-tokens-than-grep">Local code search MCP for Claude Code that uses fewer tokens than grep</a></li><li><a href="/answers/ask-questions-about-a-github-repo-without-cloning">Ask questions about a GitHub repo without cloning it</a></li><li><a href="/answers/batch-lookup-cve-ghsa-ids-offline">Batch lookup CVE IDs and GHSA IDs offline, without GitHub API rate limits</a></li>+ <li><a href="/compare/xerj-vs-localsynapse">What's a local MCP search engine for Claude?</a> <span class="mute">· same intent: Find the right tool</span></li>+ <li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a> <span class="mute">· same intent: Find the right tool</span></li>+ <li><a href="/compare/xerj-vs-web-agent-search">How do I let an agent search a folder on my laptop instead of crawling the web?</a> <span class="mute">· same intent: Find the right tool</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/what-is-xerj.md b/landing/answers/what-is-xerj.mdindex cec310f19..09dc2f9c7 100644--- a/landing/answers/what-is-xerj.md+++ b/landing/answers/what-is-xerj.md@@ -8,7 +8,11 @@ source: "content/answers/what-is-xerj.md"# What is XERJ?-**TL;DR** — XERJ is one Apache-2.0 Rust binary that indexes a local folder and answers search queries over the Elasticsearch REST API. `xerj autoindex` needs no schema and no configuration file. The same process serves agent memory at `/_memory/{namespace}` and 10 MCP tools through `xerj mcp`.+**Short answer** (updated 2026-10-19): What is XERJ? It is an open-source local search engine for AI agents: a single Apache-2.0 Rust binary. Point xerj autoindex at a folder of code, documents or data files and query it over the Elasticsearch REST API, or let an agent call it through xerj mcp, which also stores agent memory.++**Key number:** A live `tools/list` from v1.0.0-rc.97 returned 17 MCP tools; the engine passes 1366 of 1369 Elasticsearch YAML conformance cases. (as of 2026-10-19; source: [landing/docs/agents/schemas/mcp-tools.json](https://github.com/xerj-org/xerj/blob/main/landing/docs/agents/schemas/mcp-tools.json))++**TL;DR** — XERJ is one Apache-2.0 Rust binary that indexes a local folder and answers search queries over the Elasticsearch REST API. `xerj autoindex` needs no schema and no configuration file. The same process serves agent memory at `/_memory/{namespace}` and 17 MCP tools through `xerj mcp`.## Agent prompt@@ -52,7 +56,7 @@ curl -s -XPOST http://127.0.0.1:9200/docs-*/_search -H 'content-type: applicatio### Command 5-Note: Attach the running node to an agent host over stdio MCP. This serves 10 tools and starts no node of its own.+Note: Attach the running node to an agent host over stdio MCP. This serves 17 tools and starts no node of its own.```shxerj mcp --url http://127.0.0.1:9200@@ -85,7 +89,7 @@ Every document carries `ax_path`, `ax_file`, `ax_format` and four more keyword p## Hand the same node to an agent-`xerj mcp` is a stdio MCP server inside the same binary. It serves 10 tools against a node that is already running: `xerj_search`, `xerj_semantic_search`, `xerj_vector_search`, `xerj_hybrid_search`, `xerj_memory_store`, `xerj_memory_recall` and four `xerj_brain_*` operations. The semantic tool runs whichever embedder the node loaded, and the default embedder is lexical feature hashing rather than a neural model.+`xerj mcp` is a stdio MCP server inside the same binary. It serves 17 tools against a node that is already running: `xerj_search`, `xerj_semantic_search`, `xerj_vector_search`, `xerj_hybrid_search`, `xerj_memory_store`, `xerj_memory_recall`, four `xerj_brain_*` operations, `xerj_map`, `xerj_code_search`, `xerj_plan`, `xerj_field_report` and three `xerj_hub_*` Corpus Hub tools (a live `tools/list` from v1.0.0-rc.97 on 2026-10-19). The semantic tool runs whichever embedder the node loaded, and the default embedder is lexical feature hashing rather than a neural model.The command does not start a node. Start one first, then register `xerj mcp --url http://127.0.0.1:9200` in the agent host with an absolute path to the binary.@@ -169,3 +173,6 @@ No. XERJ fetches no web page and runs no crawler. Its inputs are folders on loca- [Local code search MCP for Claude Code that uses fewer tokens than grep](/answers/local-code-search-mcp-fewer-tokens-than-grep)- [Ask questions about a GitHub repo without cloning it](/answers/ask-questions-about-a-github-repo-without-cloning)- [Batch lookup CVE IDs and GHSA IDs offline, without GitHub API rate limits](/answers/batch-lookup-cve-ghsa-ids-offline)+- [What's a local MCP search engine for Claude?](/compare/xerj-vs-localsynapse) (same intent: Find the right tool)+- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access) (same intent: Find the right tool)+- [How do I let an agent search a folder on my laptop instead of crawling the web?](/compare/xerj-vs-web-agent-search) (same intent: Find the right tool)diff --git a/landing/answers/why-autoindex-skipped-files.html b/landing/answers/why-autoindex-skipped-files.htmlindex d90752e2a..efefa736e 100644--- a/landing/answers/why-autoindex-skipped-files.html+++ b/landing/answers/why-autoindex-skipped-files.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-21",- "dateModified": "2026-10-05",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/answers/">ANSWERS</a><span class="sep">·</span>WHY WOULD A FOLDER SEARCH MISS FILES THAT I CAN SEE ON DISK?</div><div class="kicker"><span>ANSWERS · OPERATIONS: EXCLUSIONS</span></div><h1>Why would a folder search miss files that I can see on disk?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-05</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>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.</p>+ <p class="key-fact"><strong>Key number:</strong> The captured run reconciled 26 files on disk as 1 indexed, 2 refused and 23 excluded. <span class="mute">(as of 2026-10-05 · source: the captured run documented on this page)</span></p>+ </div><p><strong>TL;DR</strong> — 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, and excluded 23 through ignore rules. The run exited 3 with <code class="inline">reason=completed-with-junk</code>.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -247,6 +252,9 @@ autoindex: ignore rules: .gitignore:*.tmp — 1 file<li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li><li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a></li><li><a href="/answers/estimate-autoindex-time-before-running">How do I estimate folder-indexing time?</a></li>+ <li><a href="/answers/reindex-taking-forever">Reindexing my files is taking forever. What usually causes that?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/search-files-in-an-s3-bucket">How do I search files that live in an S3 bucket?</a> <span class="mute">· same intent: operating autoindex</span></li>+ <li><a href="/answers/keep-index-current-as-files-change">How do I keep a search index up to date as files change, without re-indexing everything?</a> <span class="mute">· same intent: operating autoindex</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/answers/why-autoindex-skipped-files.md b/landing/answers/why-autoindex-skipped-files.mdindex aa1fe8ca4..257c9977c 100644--- a/landing/answers/why-autoindex-skipped-files.md+++ b/landing/answers/why-autoindex-skipped-files.md@@ -2,12 +2,16 @@---title: "Why does a folder search miss files on disk?"canonical: "https://xerj.org/answers/why-autoindex-skipped-files"-updated: "2026-10-05"+updated: "2026-10-19"source: "content/answers/why-autoindex-skipped-files.md"---# Why would a folder search miss files that I can see on disk?+**Short answer** (updated 2026-10-19): 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.++**Key number:** The captured run reconciled 26 files on disk as 1 indexed, 2 refused and 23 excluded. (as of 2026-10-05; source: the captured run documented on this page)+**TL;DR** — 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, and excluded 23 through ignore rules. The run exited 3 with `reason=completed-with-junk`.## Agent prompt@@ -148,3 +152,6 @@ The run finished but refused at least one file. The terminal line reads reason=c- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete)- [How do I estimate folder-indexing time?](/answers/estimate-autoindex-time-before-running)+- [Reindexing my files is taking forever. What usually causes that?](/answers/reindex-taking-forever) (same intent: operating autoindex)+- [How do I search files that live in an S3 bucket?](/answers/search-files-in-an-s3-bucket) (same intent: operating autoindex)+- [How do I keep a search index up to date as files change, without re-indexing everything?](/answers/keep-index-current-as-files-change) (same intent: operating autoindex)diff --git a/landing/compare/index.json b/landing/compare/index.jsonindex c92a9c8da..e6e6ad3db 100644--- a/landing/compare/index.json+++ b/landing/compare/index.json@@ -9,16 +9,28 @@"markdown_url": "https://xerj.org/compare/xerj-vs-web-agent-search.md","cluster": "Comparison: agent retrieval","updated": "2026-08-23",- "summary": "Exa, Tavily and Firecrawl take a query or a URL and answer from the public web. XERJ takes a folder already on your disk and never opens a network connection."+ "summary": "Exa, Tavily and Firecrawl take a query or a URL and answer from the public web. XERJ takes a folder already on your disk and never opens a network connection.",+ "intent_group": "Find the right tool",+ "answer": "How do I let an agent search a folder on my laptop instead of crawling the web? Use a local index such as XERJ, which answers about files already on your disk and opens no connection to a website. Exa, Tavily and Firecrawl answer about the public web from a query or a URL. It is a category boundary.",+ "queries": [+ "mcp server search local files"+ ]},{- "title": "XERJ compared with ripgrep for code agents",+ "title": "ripgrep vs a code index for coding agents: 30 tasks","question": "Is ripgrep enough for a coding agent, or do I need a code index?","canonical_url": "https://xerj.org/compare/xerj-vs-ripgrep-for-code-agents","markdown_url": "https://xerj.org/compare/xerj-vs-ripgrep-for-code-agents.md","cluster": "Comparison: code retrieval","updated": "2026-10-19",- "summary": "30 disclosed tasks on one 331-file code tree. The two tools agree on 18. ripgrep wins 5 named tasks outright, including a substring inside an identifier."+ "summary": "30 disclosed tasks on one 331-file code tree. The two tools agree on 18. ripgrep wins 5 named tasks outright, including a substring inside an identifier.",+ "intent_group": "code search for agents",+ "answer": "Is ripgrep enough for a coding agent, or do I need a code index? Keep ripgrep for one-off questions and add an index when an agent asks one tree many questions. On one 331-file tree the two named the same files on 18 of 30 disclosed tasks, and ripgrep 14.1.1 won 5 outright.",+ "queries": [+ "grep vs semantic search for coding agents",+ "local code search MCP Claude Code fewer tokens than grep",+ "ripgrep alternative for agents"+ ]},{"title": "XERJ vs ast-grep — syntax search and an index",@@ -26,8 +38,14 @@"canonical_url": "https://xerj.org/compare/xerj-vs-ast-grep","markdown_url": "https://xerj.org/compare/xerj-vs-ast-grep.md","cluster": "Comparison: code retrieval",- "updated": "2026-08-23",- "summary": "ast-grep wins structural rewriting and XERJ does none of it. For an agent the honest recommendation is to install both and give each the job it was built for."+ "updated": "2026-10-19",+ "summary": "ast-grep wins structural rewriting and XERJ does none of it. For an agent the honest recommendation is to install both and give each the job it was built for.",+ "intent_group": "code search for agents",+ "answer": "Should an agent use ast-grep or a code index? Use both. ast-grep matches and rewrites code by syntax pattern, and XERJ rewrites nothing. XERJ answers where a symbol is defined and what its contract says across a tree it already indexed. No head-to-head was run, and none is needed to split these jobs.",+ "queries": [+ "tree-sitter code search CLI",+ "structural code search for agents"+ ]},{"title": "DocFetcher compared with XERJ for document search",@@ -35,8 +53,13 @@"canonical_url": "https://xerj.org/compare/xerj-vs-docfetcher","markdown_url": "https://xerj.org/compare/xerj-vs-docfetcher.md","cluster": "Comparison: desktop search",- "updated": "2026-09-26",- "summary": "DocFetcher is a desktop search GUI with a portable index and Outlook PST support. XERJ is a search engine an agent calls. A capability comparison, with no benchmark."+ "updated": "2026-10-19",+ "summary": "DocFetcher is a desktop search GUI with a portable index and Outlook PST support. XERJ is a search engine an agent calls. A capability comparison, with no benchmark.",+ "intent_group": "logs and docs",+ "answer": "What is a free DocFetcher alternative that an agent can call? XERJ: a search engine a program calls over HTTP or MCP. DocFetcher stays the better desktop GUI: it reads Outlook PST files and nested archives, and its portable version carries the index on a USB drive. This is a capability comparison; no benchmark was run.",+ "queries": [+ "desktop search alternative for agents"+ ]},{"title": "HoudahSpot compared with XERJ for file search",@@ -44,8 +67,13 @@"canonical_url": "https://xerj.org/compare/xerj-vs-houdahspot","markdown_url": "https://xerj.org/compare/xerj-vs-houdahspot.md","cluster": "Comparison: desktop search",- "updated": "2026-09-26",- "summary": "HoudahSpot is a power-user front end for Spotlight, with hundreds of attribute filters. XERJ is a folder index an agent calls. No Mac run stands behind this page."+ "updated": "2026-10-19",+ "summary": "HoudahSpot is a power-user front end for Spotlight, with hundreds of attribute filters. XERJ is a folder index an agent calls. No Mac run stands behind this page.",+ "intent_group": "logs and docs",+ "answer": "HoudahSpot or a local search engine I can script? HoudahSpot is a power-user front end for the Mac's own Spotlight index, with hundreds of attribute filters and saved templates. XERJ is a folder index a program calls over HTTP or MCP. No head-to-head was run, and nothing on this page was tested on macOS.",+ "queries": [+ "desktop search alternative for agents"+ ]},{"title": "Recoll compared with XERJ for document search",@@ -53,8 +81,14 @@"canonical_url": "https://xerj.org/compare/xerj-vs-recoll","markdown_url": "https://xerj.org/compare/xerj-vs-recoll.md","cluster": "Comparison: desktop search",- "updated": "2026-09-26",- "summary": "Recoll is a desktop search application with a GUI, OCR hooks and email indexing that still reaches PST and attachments. XERJ is a search engine an agent calls, with its own .eml and .mbox indexing. A capability comparison, with no benchmark."+ "updated": "2026-10-19",+ "summary": "Recoll is a desktop search application with a GUI, OCR hooks and email indexing that still reaches PST and attachments. XERJ is a search engine an agent calls, with its own .eml and .mbox indexing. A capability comparison, with no benchmark.",+ "intent_group": "logs and docs",+ "answer": "What is the best local desktop search for a folder of PDFs and docs? For a person at a desk, Recoll: a GUI, email folders and attachments, OCR hooks and open-at-page. For an agent, XERJ, a search engine called over HTTP or MCP. No head-to-head benchmark was run; this page compares documented capabilities.",+ "queries": [+ "desktop search alternative for agents",+ "index pdf folder full text search offline"+ ]},{"title": "ripgrep-all compared with XERJ for PDFs and docs",@@ -62,8 +96,13 @@"canonical_url": "https://xerj.org/compare/xerj-vs-ripgrep-all","markdown_url": "https://xerj.org/compare/xerj-vs-ripgrep-all.md","cluster": "Comparison: desktop search",- "updated": "2026-09-26",- "summary": "ripgrep-all wraps ripgrep with adapters for PDF, Office files, archives and SQLite. XERJ indexes the same folder for an agent. A capability comparison, no benchmark."+ "updated": "2026-10-19",+ "summary": "ripgrep-all wraps ripgrep with adapters for PDF, Office files, archives and SQLite. XERJ indexes the same folder for an agent. A capability comparison, no benchmark.",+ "intent_group": "logs and docs",+ "answer": "How do I grep PDFs and Word docs from the command line? For one question today, ripgrep-all: it converts PDFs and Office files as it goes, walks into archives, and needs no daemon or index. For an agent asking many questions, XERJ indexes the folder once. No head-to-head benchmark was run.",+ "queries": [+ "grep pdf and docx from command line"+ ]},{"title": "Spotlight compared with XERJ for folder content",@@ -71,8 +110,13 @@"canonical_url": "https://xerj.org/compare/xerj-vs-spotlight","markdown_url": "https://xerj.org/compare/xerj-vs-spotlight.md","cluster": "Comparison: desktop search",- "updated": "2026-09-26",- "summary": "Spotlight is the Mac's system-wide index with zero setup and wide metadata. XERJ is a folder index an agent queries. A capability comparison, run on no Mac."+ "updated": "2026-10-19",+ "summary": "Spotlight is the Mac's system-wide index with zero setup and wide metadata. XERJ is a folder index an agent queries. A capability comparison, run on no Mac.",+ "intent_group": "logs and docs",+ "answer": "Spotlight can't find text inside my project files; what else is there? XERJ indexes a project folder, code and data files included, for an agent to query over HTTP or MCP. Spotlight remains the Mac's zero-setup system index with whole-disk reach and wide metadata. No head-to-head was run, and nothing here was tested on macOS.",+ "queries": [+ "search inside files in a folder"+ ]},{"title": "XERJ vs LocalSynapse for MCP local file search",@@ -80,17 +124,30 @@"canonical_url": "https://xerj.org/compare/xerj-vs-localsynapse","markdown_url": "https://xerj.org/compare/xerj-vs-localsynapse.md","cluster": "Comparison: local MCP search",- "updated": "2026-10-03",- "summary": "Two local MCP search engines. LocalSynapse wins the desktop experience and mail shapes beyond mbox and eml. XERJ wins data files, Excel sheets read as typed tables, and the Elasticsearch REST API."+ "updated": "2026-10-19",+ "summary": "Two local MCP search engines. LocalSynapse wins the desktop experience and mail shapes beyond mbox and eml. XERJ wins data files, Excel sheets read as typed tables, and the Elasticsearch REST API.",+ "intent_group": "Find the right tool",+ "answer": "What's a local MCP search engine for Claude? Two candidates: LocalSynapse wins the desktop experience, whole-drive indexing and mail shapes beyond mbox and eml. XERJ wins data files, Excel sheets read as typed tables, and the Elasticsearch query surface. No head-to-head was run for this comparison.",+ "queries": [+ "mcp server search local files",+ "local search engine for AI agents MCP server BM25"+ ]},{- "title": "XERJ vs Elasticsearch run on one machine",+ "title": "Elasticsearch-compatible engine that isn't Elasticsearch","question": "Is there an Elasticsearch-compatible engine that isn't Elasticsearch?","canonical_url": "https://xerj.org/compare/xerj-vs-elasticsearch-local","markdown_url": "https://xerj.org/compare/xerj-vs-elasticsearch-local.md","cluster": "Comparison: local search engines","updated": "2026-10-19",- "summary": "The published board is 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4. All 4 losses are read p99 under a write flood."+ "summary": "The published board is 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4. All 4 losses are read p99 under a write flood.",+ "intent_group": "search engine alternatives",+ "answer": "Is there an Elasticsearch-compatible engine that isn't Elasticsearch? XERJ speaks the Elasticsearch REST API from one binary. One published board measured both on one host: 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4 at 100,000 documents. XERJ is single-node only.",+ "queries": [+ "elasticsearch compatible lightweight server",+ "self-hosted Elasticsearch alternative single binary Rust MCP",+ "opensearch alternative low memory"+ ]},{"title": "XERJ vs Omnisearch for an Obsidian vault",@@ -98,8 +155,13 @@"canonical_url": "https://xerj.org/compare/xerj-vs-obsidian-omnisearch","markdown_url": "https://xerj.org/compare/xerj-vs-obsidian-omnisearch.md","cluster": "Comparison: notes and vaults",- "updated": "2026-08-23",- "summary": "Omnisearch wins inside Obsidian and reaches images and PDFs through Text Extractor. XERJ reads the vault folder outside the editor. No head-to-head was run here."+ "updated": "2026-10-19",+ "summary": "Omnisearch wins inside Obsidian and reaches images and PDFs through Text Extractor. XERJ reads the vault folder outside the editor. No head-to-head was run here.",+ "intent_group": "logs and docs",+ "answer": "How do I search an Obsidian vault from outside Obsidian? Index the vault folder with XERJ; it reads it with Obsidian closed and answers an agent. Inside Obsidian, Omnisearch wins: an instant search interface, BM25 ranking, and PDFs and images through the Text Extractor plugin. No head-to-head was run.",+ "queries": [+ "search markdown notes MCP server"+ ]},{"title": "XERJ vs Khoj for searching your own documents",@@ -107,8 +169,13 @@"canonical_url": "https://xerj.org/compare/xerj-vs-khoj","markdown_url": "https://xerj.org/compare/xerj-vs-khoj.md","cluster": "Comparison: personal search",- "updated": "2026-08-23",- "summary": "Khoj is a whole self-hosted assistant: chat, custom agents, scheduled research and image generation. XERJ is the smaller piece, the search and memory engine."+ "updated": "2026-10-19",+ "summary": "Khoj is a whole self-hosted assistant: chat, custom agents, scheduled research and image generation. XERJ is the smaller piece, the search and memory engine.",+ "intent_group": "agent memory",+ "answer": "What's a simpler alternative to Khoj if I only need search and memory? XERJ: the search and memory engine that sits under an agent you already run. Khoj is a whole application with chat, custom agents, scheduled research, voice, image generation and clients from Obsidian to WhatsApp. No head-to-head was run.",+ "queries": [+ "memory layer for AI agents without vector database"+ ]},{"title": "XERJ vs Meilisearch for local and agent search",@@ -116,8 +183,13 @@"canonical_url": "https://xerj.org/compare/xerj-vs-meilisearch","markdown_url": "https://xerj.org/compare/xerj-vs-meilisearch.md","cluster": "Comparison: search engines",- "updated": "2026-08-23",- "summary": "A local alternative to Meilisearch that reads a folder of mixed files by itself. Meilisearch wins typo tolerance by default. No head-to-head was run here."+ "updated": "2026-10-19",+ "summary": "A local alternative to Meilisearch that reads a folder of mixed files by itself. Meilisearch wins typo tolerance by default. No head-to-head was run here.",+ "intent_group": "search engine alternatives",+ "answer": "What's a local alternative to Meilisearch that indexes a folder by itself? XERJ reads a folder of mixed files with one command, where Meilisearch expects you to build and POST the documents. Meilisearch wins typo-tolerant instant search, and its own defaults document that win. No head-to-head was run.",+ "queries": [+ "meilisearch alternative local"+ ]},{"title": "XERJ vs Typesense when the corpus is a folder",@@ -125,8 +197,13 @@"canonical_url": "https://xerj.org/compare/xerj-vs-typesense","markdown_url": "https://xerj.org/compare/xerj-vs-typesense.md","cluster": "Comparison: search engines",- "updated": "2026-08-23",- "summary": "Typesense wins faceted product browsing and says so in its own use cases. An agent can query a folder of mixed files without it. No faceting test was run here."+ "updated": "2026-10-19",+ "summary": "Typesense wins faceted product browsing and says so in its own use cases. An agent can query a folder of mixed files without it. No faceting test was run here.",+ "intent_group": "search engine alternatives",+ "answer": "Do I need Typesense for an agent to search my docs? Not for a folder of mixed files: XERJ reads it with one command, where Typesense expects extracted JSON. Typesense wins faceted product browsing, and its own documentation names that a headline use case. No faceting head-to-head was measured.",+ "queries": [+ "typesense alternative local"+ ]},{"title": "XERJ vs Pagefind for a folder of saved HTML",@@ -134,17 +211,25 @@"canonical_url": "https://xerj.org/compare/xerj-vs-pagefind","markdown_url": "https://xerj.org/compare/xerj-vs-pagefind.md","cluster": "Comparison: site and export search",- "updated": "2026-08-23",- "summary": "Pagefind wins static-site search in the browser with no server. XERJ indexes a local HTML dump on disk so an agent can query it. No head-to-head was run here."+ "updated": "2026-10-19",+ "summary": "Pagefind wins static-site search in the browser with no server. XERJ indexes a local HTML dump on disk so an agent can query it. No head-to-head was run here.",+ "intent_group": "logs and docs",+ "answer": "Pagefind or a local index for a folder of saved HTML? Pagefind wins search on a built static website: no server, a chunked index and a small download for the visitor. XERJ wins when an agent must query a saved HTML export on disk beside the PDFs next to it. No head-to-head was run."},{- "title": "Search API or Qdrant for agent memory?",+ "title": "Search API or a vector database for agent memory?","question": "Should my agent call a search API or a vector store?","canonical_url": "https://xerj.org/compare/xerj-vs-vector-database","markdown_url": "https://xerj.org/compare/xerj-vs-vector-database.md","cluster": "Comparison: vector database","updated": "2026-10-19",- "summary": "Agent memory lives in the index process XERJ already runs, so no second data service starts. On 8 judged queries hybrid linear fusion scored precision@3 0.4583."+ "summary": "Agent memory lives in the index process XERJ already runs, so no second data service starts. On 8 judged queries hybrid linear fusion scored precision@3 0.4583.",+ "intent_group": "agent memory",+ "answer": "Should my agent call a search API or a vector store like Qdrant for memory? Call the search API you already run. XERJ serves agent memory at _memory/{namespace} from the process that serves _search. On 8 judged queries hybrid linear fusion scored precision@3 0.4583. Choose Qdrant for filtered vector search at scale.",+ "queries": [+ "memory layer for AI agents without vector database",+ "vector database vs full text search"+ ]}]}diff --git a/landing/compare/xerj-vs-ast-grep.html b/landing/compare/xerj-vs-ast-grep.htmlindex c0d822348..1952a66ef 100644--- a/landing/compare/xerj-vs-ast-grep.html+++ b/landing/compare/xerj-vs-ast-grep.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>AST-GREP VS A CODE INDEX FOR AN AGENT?</div><div class="kicker"><span>COMPARE · COMPARISON: CODE RETRIEVAL</span></div><h1>ast-grep vs a code index for an agent?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>Should an agent use ast-grep or a code index? Use both. ast-grep matches and rewrites code by syntax pattern, and XERJ rewrites nothing. XERJ answers where a symbol is defined and what its contract says across a tree it already indexed. No head-to-head was run, and none is needed to split these jobs.</p>+ <p class="key-fact"><strong>Key number:</strong> ast-grep has 16,288 GitHub stars and released 0.51.0 on 2026-10-15. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/ast-grep/ast-grep">github.com/ast-grep/ast-grep</a>)</span></p>+ </div><p><strong>TL;DR</strong> — ast-grep changes code by syntax pattern, and XERJ does no rewriting at all. XERJ answers where a symbol is defined and what its contract says, across a tree it has already indexed. Install both. No head-to-head was run, and none is needed to split these jobs.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -178,7 +183,7 @@<span class="prompt-label">RUN THIS XERJ COMMAND</span><code>xerj mcp --url http://127.0.0.1:9200</code><button type="button" class="prompt-copy" data-copy="xerj mcp --url http://127.0.0.1:9200">COPY COMMAND</button>- <span class="hero-proof">Serve the 10 tools an agent calls before it decides what to change. Start the node first; this command does not start one.</span>+ <span class="hero-proof">Serve the 17 tools an agent calls before it decides what to change. Start the node first; this command does not start one.</span></div><h2>This is not a knockout, and pretending otherwise would be dishonest</h2><p>ast-grep is a command-line tool for structural search, lint and rewriting, and it matches syntax tree nodes rather than text. XERJ is an index that answers questions about a folder.</p>@@ -195,7 +200,7 @@<p>XERJ pays that cost once:</p><pre class="code"><code class="language-sh">xerj autoindex ./repo --prefix code --state-dir ./state-code</code></pre>- <p>After that, a code document carries <code class="inline">title</code>, <code class="inline">language</code>, a <code class="inline">defs</code> field with one line per definition, a <code class="inline">symbols</code> list with names, kinds and line numbers, and the full body. One query finds where a symbol is defined, and it is the same query in every one of 34 languages.</p>+ <p>After that, a code document carries <code class="inline">title</code>, <code class="inline">language</code>, a <code class="inline">defs</code> field with one line per definition, a <code class="inline">symbols</code> list with names, kinds and line numbers, and the full body. One query finds where a symbol is defined, and it is the same query in every one of 36 languages.</p><pre class="code"><code class="language-json">{ "query": { "match": { "defs": "parse_config" } }, "_source": ["ax_path"] }</code></pre><p>The result is a passage and a path rather than a whole file, which is what keeps an agent's context window from filling with source it did not need.</p>@@ -234,7 +239,7 @@<h3>Can XERJ rewrite code?</h3><p>No. XERJ performs no abstract syntax tree rewriting and no codemod of any kind. It returns passages and paths, and you change the file.</p><h3>What does XERJ extract from code?</h3>- <p>Definitions. Each code document carries a defs field and a symbols list with names, kinds and line numbers, across 34 languages.</p>+ <p>Definitions. Each code document carries a defs field and a symbols list with names, kinds and line numbers, across 36 languages.</p><h3>Does ast-grep keep an index?</h3><p>No. The project states that it builds a syntax tree in memory for each query and does not support offline indexing.</p><h3>Which one does an agent call first?</h3>@@ -261,6 +266,9 @@<li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a></li><li><a href="/answers/index-monorepo-for-agent">How do I stop my agent from reading the whole repo into context?</a></li><li><a href="/compare/xerj-vs-ripgrep-for-code-agents">Is ripgrep enough for a coding agent, or do I need a code index?</a></li>+ <li><a href="/answers/audit-php-codebase-with-an-index">How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/check-codebase-index-is-complete">My codebase indexer says indexed but I don't see my code. How do I check it actually finished?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/index-reference-library-for-coding-agent">How do I set up reference coding so the agent retrieves a mechanism before writing code?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-ast-grep.md b/landing/compare/xerj-vs-ast-grep.mdindex 3c0ae3cb1..97813b418 100644--- a/landing/compare/xerj-vs-ast-grep.md+++ b/landing/compare/xerj-vs-ast-grep.md@@ -2,12 +2,16 @@---title: "XERJ vs ast-grep — syntax search and an index"canonical: "https://xerj.org/compare/xerj-vs-ast-grep"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/compare/xerj-vs-ast-grep.md"---# ast-grep vs a code index for an agent?+**Short answer** (updated 2026-10-19): Should an agent use ast-grep or a code index? Use both. ast-grep matches and rewrites code by syntax pattern, and XERJ rewrites nothing. XERJ answers where a symbol is defined and what its contract says across a tree it already indexed. No head-to-head was run, and none is needed to split these jobs.++**Key number:** ast-grep has 16,288 GitHub stars and released 0.51.0 on 2026-10-15. (as of 2026-10-19; source: [github.com/ast-grep/ast-grep](https://github.com/ast-grep/ast-grep))+**TL;DR** — ast-grep changes code by syntax pattern, and XERJ does no rewriting at all. XERJ answers where a symbol is defined and what its contract says, across a tree it has already indexed. Install both. No head-to-head was run, and none is needed to split these jobs.## Agent prompt@@ -36,7 +40,7 @@ curl -s -XPOST 'http://127.0.0.1:9200/code-*/_search' -H 'content-type: applicat### Command 3-Note: Serve the 10 tools an agent calls before it decides what to change. Start the node first; this command does not start one.+Note: Serve the 17 tools an agent calls before it decides what to change. Start the node first; this command does not start one.```shxerj mcp --url http://127.0.0.1:9200@@ -72,7 +76,7 @@ XERJ pays that cost once:xerj autoindex ./repo --prefix code --state-dir ./state-code```-After that, a code document carries `title`, `language`, a `defs` field with one line per definition, a `symbols` list with names, kinds and line numbers, and the full body. One query finds where a symbol is defined, and it is the same query in every one of 34 languages.+After that, a code document carries `title`, `language`, a `defs` field with one line per definition, a `symbols` list with names, kinds and line numbers, and the full body. One query finds where a symbol is defined, and it is the same query in every one of 36 languages.```json{ "query": { "match": { "defs": "parse_config" } }, "_source": ["ax_path"] }@@ -150,7 +154,7 @@ No. XERJ performs no abstract syntax tree rewriting and no codemod of any kind.### What does XERJ extract from code?-Definitions. Each code document carries a defs field and a symbols list with names, kinds and line numbers, across 34 languages.+Definitions. Each code document carries a defs field and a symbols list with names, kinds and line numbers, across 36 languages.### Does ast-grep keep an index?@@ -188,3 +192,6 @@ No. No head-to-head was run. Every ast-grep fact here comes from its own documen- [I need my agent to find a passage and cite the file, not dump the whole tree. How?](/answers/code-search-mcp-for-claude-code)- [How do I stop my agent from reading the whole repo into context?](/answers/index-monorepo-for-agent)- [Is ripgrep enough for a coding agent, or do I need a code index?](/compare/xerj-vs-ripgrep-for-code-agents)+- [How do I audit a PHP codebase with an index instead of grepping 1,400 files?](/answers/audit-php-codebase-with-an-index) (same intent: code search for agents)+- [My codebase indexer says indexed but I don't see my code. How do I check it actually finished?](/answers/check-codebase-index-is-complete) (same intent: code search for agents)+- [How do I set up reference coding so the agent retrieves a mechanism before writing code?](/answers/index-reference-library-for-coding-agent) (same intent: code search for agents)diff --git a/landing/compare/xerj-vs-docfetcher.html b/landing/compare/xerj-vs-docfetcher.htmlindex adabfd350..04841c3df 100644--- a/landing/compare/xerj-vs-docfetcher.html+++ b/landing/compare/xerj-vs-docfetcher.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>WHAT'S A FREE DOCFETCHER ALTERNATIVE THAT AN AGENT CAN CALL?</div><div class="kicker"><span>COMPARE · COMPARISON: DESKTOP SEARCH</span></div><h1>What's a free DocFetcher alternative that an agent can call?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>What is a free DocFetcher alternative that an agent can call? XERJ: a search engine a program calls over HTTP or MCP. DocFetcher stays the better desktop GUI: it reads Outlook PST files and nested archives, and its portable version carries the index on a USB drive. This is a capability comparison; no benchmark was run.</p>+ <p class="key-fact"><strong>Key number:</strong> DocFetcher's download page lists version 1.1.27 under the Eclipse Public License. <span class="mute">(as of 2026-10-19 · source: <a href="https://docfetcher.sourceforge.io/download/">docfetcher.sourceforge.io/download</a>)</span></p>+ </div><p><strong>TL;DR</strong> — DocFetcher is a mature desktop search GUI. It reads Outlook PST files and nested archives, and its portable version carries the index on a USB drive. XERJ is a search engine that a program calls over HTTP or MCP. No head-to-head benchmark was run.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -200,7 +205,7 @@<p>XERJ is a single Rust binary that runs one search node. <code class="inline">xerj autoindex <folder></code> reads the folder and detects each file family by content. It infers a dataset per file shape and writes the documents.</p><p>The command takes no configuration file and no mapping.</p><p>The node answers the Elasticsearch REST API. <code class="inline">xerj autoindex map</code> prints a data map of what the folder became. An agent reads that map, then names a real index and a real field.</p>- <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary. It serves 10 tools against a node you already started. Agent memory lives in the engine under <code class="inline">/_memory/{namespace}</code>.</p>+ <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary. It serves 17 tools against a node you already started. Agent memory lives in the engine under <code class="inline">/_memory/{namespace}</code>.</p><p>XERJ is single-node. There is no replication and no failover. The default embedder is lexical feature hashing, not a neural model, and neural retrieval is opt-in through <code class="inline">--embed-mode neural</code>.</p><h2>Capabilities, side by side</h2><p>Every row is a documented capability of each tool. No row is a measured result.</p>@@ -217,7 +222,7 @@<tr><td>automatic index updates</td><td>yes, while the application runs</td><td>rerun <code class="inline">xerj autoindex</code></td></tr><tr><td>format detection</td><td>file extension, with a regex option</td><td>content sniffing per family</td></tr><tr><td>HTTP query API</td><td>not in the free application</td><td>yes, Elasticsearch REST API</td></tr>- <tr><td>MCP server for an agent</td><td>none</td><td>yes, <code class="inline">xerj mcp</code>, 10 tools</td></tr>+ <tr><td>MCP server for an agent</td><td>none</td><td>yes, <code class="inline">xerj mcp</code>, 17 tools</td></tr><tr><td>catalog of refused files</td><td>index report in the GUI</td><td><code class="inline">autoindex-catalog</code>, one reason per file</td></tr><tr><td>agent memory in the engine</td><td>none</td><td>yes, <code class="inline">/_memory/{namespace}</code></td></tr><tr><td>license</td><td>Eclipse Public License</td><td>Apache-2.0</td></tr>@@ -280,6 +285,9 @@<li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li><li><a href="/compare/xerj-vs-recoll">What's the best local desktop search for a folder of PDFs and docs?</a></li><li><a href="/compare/xerj-vs-ripgrep-all">How do I grep PDFs and Word docs from the command line?</a></li>+ <li><a href="/compare/xerj-vs-houdahspot">XERJ vs HoudahSpot — Spotlight GUI vs an agent index</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-html-export">I saved a help-center as HTML. How do I search it like the real help-center search?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-docfetcher.md b/landing/compare/xerj-vs-docfetcher.mdindex 33c9a083f..49666ef4e 100644--- a/landing/compare/xerj-vs-docfetcher.md+++ b/landing/compare/xerj-vs-docfetcher.md@@ -2,12 +2,16 @@---title: "DocFetcher compared with XERJ for document search"canonical: "https://xerj.org/compare/xerj-vs-docfetcher"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/compare/xerj-vs-docfetcher.md"---# What's a free DocFetcher alternative that an agent can call?+**Short answer** (updated 2026-10-19): What is a free DocFetcher alternative that an agent can call? XERJ: a search engine a program calls over HTTP or MCP. DocFetcher stays the better desktop GUI: it reads Outlook PST files and nested archives, and its portable version carries the index on a USB drive. This is a capability comparison; no benchmark was run.++**Key number:** DocFetcher's download page lists version 1.1.27 under the Eclipse Public License. (as of 2026-10-19; source: [docfetcher.sourceforge.io/download](https://docfetcher.sourceforge.io/download/))+**TL;DR** — DocFetcher is a mature desktop search GUI. It reads Outlook PST files and nested archives, and its portable version carries the index on a USB drive. XERJ is a search engine that a program calls over HTTP or MCP. No head-to-head benchmark was run.## Agent prompt@@ -78,7 +82,7 @@ The command takes no configuration file and no mapping.The node answers the Elasticsearch REST API. `xerj autoindex map` prints a data map of what the folder became. An agent reads that map, then names a real index and a real field.-`xerj mcp` is a stdio MCP server in the same binary. It serves 10 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.+`xerj mcp` is a stdio MCP server in the same binary. It serves 17 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.XERJ is single-node. There is no replication and no failover. The default embedder is lexical feature hashing, not a neural model, and neural retrieval is opt-in through `--embed-mode neural`.@@ -98,7 +102,7 @@ Every row is a documented capability of each tool. No row is a measured result.| automatic index updates | yes, while the application runs | rerun `xerj autoindex` || format detection | file extension, with a regex option | content sniffing per family || HTTP query API | not in the free application | yes, Elasticsearch REST API |-| MCP server for an agent | none | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | none | yes, `xerj mcp`, 17 tools || catalog of refused files | index report in the GUI | `autoindex-catalog`, one reason per file || agent memory in the engine | none | yes, `/_memory/{namespace}` || license | Eclipse Public License | Apache-2.0 |@@ -198,3 +202,6 @@ Not the free desktop application, which has a GUI and no API. A multi-user web i- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)- [What's the best local desktop search for a folder of PDFs and docs?](/compare/xerj-vs-recoll)- [How do I grep PDFs and Word docs from the command line?](/compare/xerj-vs-ripgrep-all)+- [XERJ vs HoudahSpot — Spotlight GUI vs an agent index](/compare/xerj-vs-houdahspot) (same intent: logs and docs)+- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search) (same intent: logs and docs)+- [I saved a help-center as HTML. How do I search it like the real help-center search?](/answers/search-html-export) (same intent: logs and docs)diff --git a/landing/compare/xerj-vs-elasticsearch-local.html b/landing/compare/xerj-vs-elasticsearch-local.htmlindex d9e0aeccb..fcbdcfcb5 100644--- a/landing/compare/xerj-vs-elasticsearch-local.html+++ b/landing/compare/xerj-vs-elasticsearch-local.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>XERJ vs Elasticsearch run on one machine</title>+<title>Elasticsearch-compatible engine that isn't Elasticsearch</title><meta name="description" content="The published board is 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4. All 4 losses are read p99 under a write flood."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/compare/xerj-vs-elasticsearch-local"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="XERJ vs Elasticsearch run on one machine">+<meta property="og:title" content="Elasticsearch-compatible engine that isn't Elasticsearch"><meta property="og:description" content="The published board is 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4. All 4 losses are read p99 under a write flood."><meta property="og:url" content="https://xerj.org/compare/xerj-vs-elasticsearch-local"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="XERJ vs Elasticsearch run on one machine">+<meta name="twitter:title" content="Elasticsearch-compatible engine that isn't Elasticsearch"><meta name="twitter:description" content="The published board is 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4. All 4 losses are read p99 under a write flood."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,7 +70,7 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "XERJ vs Elasticsearch run on one machine",+ "headline": "Elasticsearch-compatible engine that isn't Elasticsearch","description": "The published board is 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4. All 4 losses are read p99 under a write flood.","url": "https://xerj.org/compare/xerj-vs-elasticsearch-local","image": "https://xerj.org/og/xerj-card.png",@@ -156,6 +156,11 @@<div class="kicker"><span>COMPARE · COMPARISON: LOCAL SEARCH ENGINES</span></div><h1>Is there an Elasticsearch-compatible engine that isn't Elasticsearch?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>Is there an Elasticsearch-compatible engine that isn't Elasticsearch? XERJ speaks the Elasticsearch REST API from one binary. One published board measured both on one host: 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4 at 100,000 documents. XERJ is single-node only.</p>+ <p class="key-fact"><strong>Key number:</strong> Elasticsearch has 78,319 GitHub stars and its latest release is v9.5.5 (2026-10-06); the board was measured against 8.13.4. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/elastic/elasticsearch">github.com/elastic/elasticsearch</a>)</span></p>+ </div><p><strong>TL;DR</strong> — One published board measures both engines on one host: 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against a live Elasticsearch 8.13.4 at 100,000 documents. Every one of the 4 losses is read p99 under a write flood. XERJ is single-node only.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -271,6 +276,9 @@<li><a href="/docs/recipes/migrate-from-elasticsearch">Migrate from Elasticsearch</a></li><li><a href="/answers/full-text-search-over-jsonl-files-cli">Full-text search over JSONL files from the CLI: index a folder and query it with BM25</a></li><li><a href="/answers/batch-lookup-cve-ghsa-ids-offline">Batch lookup CVE IDs and GHSA IDs offline, without GitHub API rate limits</a></li>+ <li><a href="/answers/does-xerj-support-s3-alerting-plugins">Does XERJ support S3 storage, alerting or custom plugins yet?</a> <span class="mute">· same intent: search engine alternatives</span></li>+ <li><a href="/compare/xerj-vs-meilisearch">What's a local alternative to Meilisearch that indexes a folder by itself?</a> <span class="mute">· same intent: search engine alternatives</span></li>+ <li><a href="/compare/xerj-vs-typesense">Do I need Typesense for an agent to search my docs?</a> <span class="mute">· same intent: search engine alternatives</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-elasticsearch-local.md b/landing/compare/xerj-vs-elasticsearch-local.mdindex 2615542ab..cfc2c2a7f 100644--- a/landing/compare/xerj-vs-elasticsearch-local.md+++ b/landing/compare/xerj-vs-elasticsearch-local.md@@ -1,6 +1,6 @@<!-- generated by build_articles.py — edit content/compare/xerj-vs-elasticsearch-local.md instead -->----title: "XERJ vs Elasticsearch run on one machine"+title: "Elasticsearch-compatible engine that isn't Elasticsearch"canonical: "https://xerj.org/compare/xerj-vs-elasticsearch-local"updated: "2026-10-19"source: "content/compare/xerj-vs-elasticsearch-local.md"@@ -8,6 +8,10 @@ source: "content/compare/xerj-vs-elasticsearch-local.md"# Is there an Elasticsearch-compatible engine that isn't Elasticsearch?+**Short answer** (updated 2026-10-19): Is there an Elasticsearch-compatible engine that isn't Elasticsearch? XERJ speaks the Elasticsearch REST API from one binary. One published board measured both on one host: 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against Elasticsearch 8.13.4 at 100,000 documents. XERJ is single-node only.++**Key number:** Elasticsearch has 78,319 GitHub stars and its latest release is v9.5.5 (2026-10-06); the board was measured against 8.13.4. (as of 2026-10-19; source: [github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch))+**TL;DR** — One published board measures both engines on one host: 55 wins, 26 ties, 4 losses and 3 not-applicable across 88 cells against a live Elasticsearch 8.13.4 at 100,000 documents. Every one of the 4 losses is read p99 under a write flood. XERJ is single-node only.## Agent prompt@@ -194,3 +198,6 @@ When you read while a heavy writer runs, when you need more than one host, or wh- [Migrate from Elasticsearch](/docs/recipes/migrate-from-elasticsearch)- [Full-text search over JSONL files from the CLI: index a folder and query it with BM25](/answers/full-text-search-over-jsonl-files-cli)- [Batch lookup CVE IDs and GHSA IDs offline, without GitHub API rate limits](/answers/batch-lookup-cve-ghsa-ids-offline)+- [Does XERJ support S3 storage, alerting or custom plugins yet?](/answers/does-xerj-support-s3-alerting-plugins) (same intent: search engine alternatives)+- [What's a local alternative to Meilisearch that indexes a folder by itself?](/compare/xerj-vs-meilisearch) (same intent: search engine alternatives)+- [Do I need Typesense for an agent to search my docs?](/compare/xerj-vs-typesense) (same intent: search engine alternatives)diff --git a/landing/compare/xerj-vs-houdahspot.html b/landing/compare/xerj-vs-houdahspot.htmlindex b20bb6ec0..3d8c65ffa 100644--- a/landing/compare/xerj-vs-houdahspot.html+++ b/landing/compare/xerj-vs-houdahspot.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>XERJ VS HOUDAHSPOT — SPOTLIGHT GUI VS AN AGENT INDEX</div><div class="kicker"><span>COMPARE · COMPARISON: DESKTOP SEARCH</span></div><h1>XERJ vs HoudahSpot — Spotlight GUI vs an agent index</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>HoudahSpot or a local search engine I can script? HoudahSpot is a power-user front end for the Mac's own Spotlight index, with hundreds of attribute filters and saved templates. XERJ is a folder index a program calls over HTTP or MCP. No head-to-head was run, and nothing on this page was tested on macOS.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ's tree-sitter registry covers 36 languages, one of the extractor families a Spotlight importer does not provide. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs">engine/crates/xerj-autoindex/src/extract/code.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — HoudahSpot is a power-user front end for the Mac's own Spotlight index, with hundreds of attribute filters and saved templates. XERJ is a folder index a program calls over HTTP or MCP. No head-to-head was run and nothing here was tested on macOS.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -201,7 +206,7 @@<h2>What XERJ is</h2><p>XERJ is a single Rust binary that runs one search node. <code class="inline">xerj autoindex <folder></code> reads the folder, detects each file family by content, infers a dataset per file shape and writes the documents. It takes no configuration file and no mapping.</p><p>The streaming extractors cover JSON and JSONL, CSV with dialect sniffing, structured logs, <code class="inline">sqldump</code> files, SQLite, PDF, DOCX, HTML, XML, YAML, plain text and gzip variants of those. XERJ builds its own index. It does not read the operating system's.</p>- <p>The node answers the Elasticsearch REST API, and <code class="inline">xerj autoindex map</code> prints a data map of what the folder became. The <code class="inline">xerj mcp</code> subcommand is a stdio MCP server in the same binary, and it serves 10 tools against a running node.</p>+ <p>The node answers the Elasticsearch REST API, and <code class="inline">xerj autoindex map</code> prints a data map of what the folder became. The <code class="inline">xerj mcp</code> subcommand is a stdio MCP server in the same binary, and it serves 17 tools against a running node.</p><p>XERJ is single-node, with no replication and no failover. The default embedder is lexical feature hashing rather than a neural model; neural retrieval is opt-in through <code class="inline">--embed-mode neural</code>. There is no OCR.</p><h2>Capabilities, side by side</h2><p>Every row is a documented capability of each tool. <strong>No row is a measured result.</strong></p>@@ -217,7 +222,7 @@<tr><td>multiple search folders, excluded folders</td><td>yes</td><td>one folder per run, plus ignore rules</td></tr><tr><td>scripting surface</td><td>AppleScript, launcher integrations</td><td>Elasticsearch REST API and MCP</td></tr><tr><td>HTTP query API</td><td>not advertised</td><td>yes</td></tr>- <tr><td>MCP server for an agent</td><td>none</td><td>yes, <code class="inline">xerj mcp</code>, 10 tools</td></tr>+ <tr><td>MCP server for an agent</td><td>none</td><td>yes, <code class="inline">xerj mcp</code>, 17 tools</td></tr><tr><td>typed columns from a CSV, a <code class="inline">sqldump</code> file or SQLite</td><td>not advertised</td><td>yes, a dataset per file shape</td></tr><tr><td>per-file refusal reason</td><td>not advertised</td><td><code class="inline">autoindex-catalog</code>, one reason per file</td></tr><tr><td>agent memory in the engine</td><td>none</td><td>yes, <code class="inline">/_memory/{namespace}</code></td></tr>@@ -248,7 +253,7 @@<h3>HoudahSpot vs a local search engine I can script?</h3><p>HoudahSpot is a GUI over the Mac's metadata store, scriptable through AppleScript. XERJ is a node that answers HTTP and MCP directly, so a program calls it without a wrapper.</p><h3>What's better than HoudahSpot if I want an API for an agent?</h3>- <p>An engine with an API. XERJ answers the Elasticsearch REST API and serves 10 MCP tools from the same binary, so the agent sends a query rather than driving an interface.</p>+ <p>An engine with an API. XERJ answers the Elasticsearch REST API and serves 17 MCP tools from the same binary, so the agent sends a query rather than driving an interface.</p><h3>Advanced Mac file search that a coding agent can call?</h3><p>Index the folder with <code class="inline">xerj autoindex</code> and attach it with <code class="inline">xerj mcp</code>. The agent then gets cited passages with a file path on every hit.</p><h3>Did you compare XERJ and HoudahSpot head to head?</h3>@@ -277,6 +282,9 @@<li><a href="/compare/xerj-vs-docfetcher">What's a free DocFetcher alternative that an agent can call?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li>+ <li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/index-markdown-into-elasticsearch-api">How do I index Markdown into the Elasticsearch API?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/is-pdf-indexing-efficient">Is it efficient to index PDF files?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-houdahspot.md b/landing/compare/xerj-vs-houdahspot.mdindex 6df82e8a5..7b7cb2af8 100644--- a/landing/compare/xerj-vs-houdahspot.md+++ b/landing/compare/xerj-vs-houdahspot.md@@ -2,12 +2,16 @@---title: "HoudahSpot compared with XERJ for file search"canonical: "https://xerj.org/compare/xerj-vs-houdahspot"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/compare/xerj-vs-houdahspot.md"---# XERJ vs HoudahSpot — Spotlight GUI vs an agent index+**Short answer** (updated 2026-10-19): HoudahSpot or a local search engine I can script? HoudahSpot is a power-user front end for the Mac's own Spotlight index, with hundreds of attribute filters and saved templates. XERJ is a folder index a program calls over HTTP or MCP. No head-to-head was run, and nothing on this page was tested on macOS.++**Key number:** XERJ's tree-sitter registry covers 36 languages, one of the extractor families a Spotlight importer does not provide. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/code.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs))+**TL;DR** — HoudahSpot is a power-user front end for the Mac's own Spotlight index, with hundreds of attribute filters and saved templates. XERJ is a folder index a program calls over HTTP or MCP. No head-to-head was run and nothing here was tested on macOS.## Agent prompt@@ -80,7 +84,7 @@ XERJ is a single Rust binary that runs one search node. `xerj autoindex <folder>The streaming extractors cover JSON and JSONL, CSV with dialect sniffing, structured logs, `sqldump` files, SQLite, PDF, DOCX, HTML, XML, YAML, plain text and gzip variants of those. XERJ builds its own index. It does not read the operating system's.-The node answers the Elasticsearch REST API, and `xerj autoindex map` prints a data map of what the folder became. The `xerj mcp` subcommand is a stdio MCP server in the same binary, and it serves 10 tools against a running node.+The node answers the Elasticsearch REST API, and `xerj autoindex map` prints a data map of what the folder became. The `xerj mcp` subcommand is a stdio MCP server in the same binary, and it serves 17 tools against a running node.XERJ is single-node, with no replication and no failover. The default embedder is lexical feature hashing rather than a neural model; neural retrieval is opt-in through `--embed-mode neural`. There is no OCR.@@ -99,7 +103,7 @@ Every row is a documented capability of each tool. **No row is a measured result| multiple search folders, excluded folders | yes | one folder per run, plus ignore rules || scripting surface | AppleScript, launcher integrations | Elasticsearch REST API and MCP || HTTP query API | not advertised | yes |-| MCP server for an agent | none | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | none | yes, `xerj mcp`, 17 tools || typed columns from a CSV, a `sqldump` file or SQLite | not advertised | yes, a dataset per file shape || per-file refusal reason | not advertised | `autoindex-catalog`, one reason per file || agent memory in the engine | none | yes, `/_memory/{namespace}` |@@ -153,7 +157,7 @@ HoudahSpot is a GUI over the Mac's metadata store, scriptable through AppleScrip### What's better than HoudahSpot if I want an API for an agent?-An engine with an API. XERJ answers the Elasticsearch REST API and serves 10 MCP tools from the same binary, so the agent sends a query rather than driving an interface.+An engine with an API. XERJ answers the Elasticsearch REST API and serves 17 MCP tools from the same binary, so the agent sends a query rather than driving an interface.### Advanced Mac file search that a coding agent can call?@@ -195,3 +199,6 @@ Yes. HoudahSpot for a person refining a search by hand, XERJ for the folder a pr- [What's a free DocFetcher alternative that an agent can call?](/compare/xerj-vs-docfetcher)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)+- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search) (same intent: logs and docs)+- [How do I index Markdown into the Elasticsearch API?](/answers/index-markdown-into-elasticsearch-api) (same intent: logs and docs)+- [Is it efficient to index PDF files?](/answers/is-pdf-indexing-efficient) (same intent: logs and docs)diff --git a/landing/compare/xerj-vs-khoj.html b/landing/compare/xerj-vs-khoj.htmlindex 130b4ef22..4ea516dc0 100644--- a/landing/compare/xerj-vs-khoj.html+++ b/landing/compare/xerj-vs-khoj.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>WHAT'S A SIMPLER ALTERNATIVE TO KHOJ IF I ONLY NEED SEARCH AND MEMORY?</div><div class="kicker"><span>COMPARE · COMPARISON: PERSONAL SEARCH</span></div><h1>What's a simpler alternative to Khoj if I only need search and memory?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>What's a simpler alternative to Khoj if I only need search and memory? XERJ: the search and memory engine that sits under an agent you already run. Khoj is a whole application with chat, custom agents, scheduled research, voice, image generation and clients from Obsidian to WhatsApp. No head-to-head was run.</p>+ <p class="key-fact"><strong>Key number:</strong> Khoj has 37,752 GitHub stars, is AGPL-3.0, and its latest release is 2.0.0-beta.28 (2026-03-26). <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/khoj-ai/khoj">github.com/khoj-ai/khoj</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Khoj is a whole application: chat, custom agents, scheduled research, voice, image generation and clients from Obsidian to WhatsApp. XERJ is the search and memory engine that sits under an agent you already run. No head-to-head was run for this page.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -178,7 +183,7 @@<span class="prompt-label">RUN THIS XERJ COMMAND</span><code>xerj mcp --url http://127.0.0.1:9200</code><button type="button" class="prompt-copy" data-copy="xerj mcp --url http://127.0.0.1:9200">COPY COMMAND</button>- <span class="hero-proof">Attach the running node to the agent you already run. This stdio MCP server serves 10 tools and starts no node of its own.</span>+ <span class="hero-proof">Attach the running node to the agent you already run. This stdio MCP server serves 17 tools and starts no node of its own.</span></div><h2>Concede the product surface</h2><p>Khoj is not a search library with a demo page attached. Its own documentation describes chat with local or online models and custom agents with their own persona and tools. It also describes scheduled research delivered by email, voice chat, and image generation through third-party providers.</p>@@ -205,7 +210,7 @@ xerj autoindex ./my-docs --prefix docs --state-dir ./state-docs<p>Read that plainly: on the shipped default, Khoj's retrieval understands a paraphrase and XERJ's does not.</p><h2>Where the agent boundary sits</h2><p>Khoj can connect to a Model Context Protocol server built by somebody else, which makes it a client of that ecosystem. Its documentation does not describe Khoj exposing an MCP server of its own, and it does expose an HTTP API with key or bearer authentication for third-party applications.</p>- <p>XERJ sits on the other side of that line. <code class="inline">xerj mcp</code> is a stdio MCP server in the same binary, serving 10 tools, and <code class="inline">/_memory/{ns}</code> gives an agent namespaced memory in the engine.</p>+ <p>XERJ sits on the other side of that line. <code class="inline">xerj mcp</code> is a stdio MCP server in the same binary, serving 17 tools, and <code class="inline">/_memory/{ns}</code> gives an agent namespaced memory in the engine.</p><h2>The limits you inherit with XERJ</h2><p>XERJ is single-node only. There is no data-plane replication and no failover, so one host is the whole deployment.</p><p>The server retains heap for every document it indexes, which is an open tracked defect. Corpora past a few million documents can exhaust memory on one node.</p>@@ -253,6 +258,9 @@ xerj autoindex ./my-docs --prefix docs --state-dir ./state-docs<li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li><li><a href="/answers/agent-memory-without-postgres-qdrant">What's a simple way to give an agent long-term memory on my laptop without Qdrant?</a></li>+ <li><a href="/compare/xerj-vs-vector-database">Should my agent call a search API or stand up Qdrant for persistent memory?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/evidence-for-agent-memory-links">How can agent-memory links retain evidence?</a> <span class="mute">· same intent: agent memory</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-khoj.md b/landing/compare/xerj-vs-khoj.mdindex 33b323ea7..c60fabcf8 100644--- a/landing/compare/xerj-vs-khoj.md+++ b/landing/compare/xerj-vs-khoj.md@@ -2,12 +2,16 @@---title: "XERJ vs Khoj for searching your own documents"canonical: "https://xerj.org/compare/xerj-vs-khoj"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/compare/xerj-vs-khoj.md"---# What's a simpler alternative to Khoj if I only need search and memory?+**Short answer** (updated 2026-10-19): What's a simpler alternative to Khoj if I only need search and memory? XERJ: the search and memory engine that sits under an agent you already run. Khoj is a whole application with chat, custom agents, scheduled research, voice, image generation and clients from Obsidian to WhatsApp. No head-to-head was run.++**Key number:** Khoj has 37,752 GitHub stars, is AGPL-3.0, and its latest release is 2.0.0-beta.28 (2026-03-26). (as of 2026-10-19; source: [github.com/khoj-ai/khoj](https://github.com/khoj-ai/khoj))+**TL;DR** — Khoj is a whole application: chat, custom agents, scheduled research, voice, image generation and clients from Obsidian to WhatsApp. XERJ is the search and memory engine that sits under an agent you already run. No head-to-head was run for this page.## Agent prompt@@ -36,7 +40,7 @@ xerj autoindex ./my-docs --prefix docs --state-dir ./state-docs### Command 3-Note: Attach the running node to the agent you already run. This stdio MCP server serves 10 tools and starts no node of its own.+Note: Attach the running node to the agent you already run. This stdio MCP server serves 17 tools and starts no node of its own.```shxerj mcp --url http://127.0.0.1:9200@@ -91,7 +95,7 @@ Read that plainly: on the shipped default, Khoj's retrieval understands a paraphKhoj can connect to a Model Context Protocol server built by somebody else, which makes it a client of that ecosystem. Its documentation does not describe Khoj exposing an MCP server of its own, and it does expose an HTTP API with key or bearer authentication for third-party applications.-XERJ sits on the other side of that line. `xerj mcp` is a stdio MCP server in the same binary, serving 10 tools, and `/_memory/{ns}` gives an agent namespaced memory in the engine.+XERJ sits on the other side of that line. `xerj mcp` is a stdio MCP server in the same binary, serving 17 tools, and `/_memory/{ns}` gives an agent namespaced memory in the engine.## The limits you inherit with XERJ@@ -172,3 +176,6 @@ Khoj is AGPL-3.0, which obliges you to publish your source if you offer a modifi- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)- [What's a simple way to give an agent long-term memory on my laptop without Qdrant?](/answers/agent-memory-without-postgres-qdrant)+- [Should my agent call a search API or stand up Qdrant for persistent memory?](/compare/xerj-vs-vector-database) (same intent: agent memory)+- [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions) (same intent: agent memory)+- [How can agent-memory links retain evidence?](/answers/evidence-for-agent-memory-links) (same intent: agent memory)diff --git a/landing/compare/xerj-vs-localsynapse.html b/landing/compare/xerj-vs-localsynapse.htmlindex b00261991..e04171ec9 100644--- a/landing/compare/xerj-vs-localsynapse.html+++ b/landing/compare/xerj-vs-localsynapse.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-10-03",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>WHAT'S A LOCAL MCP SEARCH ENGINE FOR CLAUDE?</div><div class="kicker"><span>COMPARE · COMPARISON: LOCAL MCP SEARCH</span></div><h1>What's a local MCP search engine for Claude?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-03</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>What's a local MCP search engine for Claude? Two candidates: LocalSynapse wins the desktop experience, whole-drive indexing and mail shapes beyond mbox and eml. XERJ wins data files, Excel sheets read as typed tables, and the Elasticsearch query surface. No head-to-head was run for this comparison.</p>+ <p class="key-fact"><strong>Key number:</strong> LocalSynapse released v2.21.0 on 2026-10-16; its GitHub repository hosts release artifacts and had 10 stars. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/LocalSynapse/LocalSynapse">github.com/LocalSynapse/LocalSynapse</a>)</span></p>+ </div><p><strong>TL;DR</strong> — LocalSynapse wins the desktop experience: a search window you double-click, whole-drive indexing, and mail shapes beyond mbox and eml that XERJ has no extractor for. XERJ wins data files — Excel sheets included, read as typed tables — and the Elasticsearch query surface. No head-to-head was run for this page.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -178,7 +183,7 @@<span class="prompt-label">RUN THIS XERJ COMMAND</span><code>xerj mcp --url http://127.0.0.1:9200</code><button type="button" class="prompt-copy" data-copy="xerj mcp --url http://127.0.0.1:9200">COPY COMMAND</button>- <span class="hero-proof">Attach the running node over stdio MCP. Same binary, 10 tools, no desktop window.</span>+ <span class="hero-proof">Attach the running node over stdio MCP. Same binary, 17 tools, no desktop window.</span></div><h2>Concede the desktop</h2><p>LocalSynapse is a product a person installs and opens. The same binary is a search window and an MCP server, and its site states that it runs on Windows and macOS.</p>@@ -191,11 +196,11 @@<h2>What XERJ reads instead</h2><p>The list holds JSON and JSONL, CSV with dialect detection, structured logs, SQL exports, SQLite and Excel workbooks. It also holds PDF, DOCX, PowerPoint, HTML, XML, YAML, plain text, mail, code and gzip variants.</p><p>The data end of that list is where the two products part company. A SQLite database, a semicolon CSV with a decimal comma, and a multi-gigabyte SQL export are shapes a document-first indexer usually skips.</p>- <p>Code is the other one. Each code document carries a <code class="inline">defs</code> field and a <code class="inline">symbols</code> list with names, kinds and line numbers, across 34 languages.</p>+ <p>Code is the other one. Each code document carries a <code class="inline">defs</code> field and a <code class="inline">symbols</code> list with names, kinds and line numbers, across 36 languages.</p><h2>Two different answers to "how does the agent ask?"</h2><p>LocalSynapse documents an MCP server over stdio that opens no network port, with four tools: <code class="inline">search_files</code>, <code class="inline">get_file_content</code>, <code class="inline">list_indexed_files</code> and <code class="inline">get_pipeline_status</code>. That is a clean, small surface, and for many agents it is enough.</p><p>XERJ answers over the Elasticsearch REST API. An agent writes the query DSL it already knows: <code class="inline">match_phrase</code>, <code class="inline">terms</code>, <code class="inline">range</code>, aggregations and <code class="inline">_source</code> narrowing.</p>- <p><code class="inline">xerj mcp</code> serves 10 tools over stdio on top of that, and <code class="inline">/_memory/{ns}</code> gives an agent namespaced memory in the engine.</p>+ <p><code class="inline">xerj mcp</code> serves 17 tools over stdio on top of that, and <code class="inline">/_memory/{ns}</code> gives an agent namespaced memory in the engine.</p><p>Pick the surface that matches your caller. A small tool list is easier for a simple agent, and a query language is more useful for one that asks precise questions.</p><h2>Retrieval, stated honestly on both sides</h2><p>LocalSynapse combines full-text BM25 with a local embedder, BGE-M3 running through ONNX Runtime on the CPU. It stores its index in a local SQLite database.</p>@@ -229,7 +234,7 @@<h3>Can XERJ read a spreadsheet?</h3><p>Yes, since v1.0.0-rc.81. Each .xlsx sheet becomes its own dataset with one record per row and typed fields, and a .pptx deck becomes one record per slide. A sheet is read as one table, merged cells are not expanded, and legacy .xls must be saved as .xlsx first.</p><h3>How many MCP tools does each side expose?</h3>- <p>LocalSynapse documents four. XERJ serves 10 through xerj mcp, including memory tools.</p>+ <p>LocalSynapse documents four. XERJ serves 17 through xerj mcp, including memory tools.</p><h3>Is either one open source?</h3><p>XERJ is Apache-2.0 with published source. LocalSynapse is Apache-2.0 but its repository says the source tree is no longer published from version 2.15.0.</p><h3>Is there a measured comparison on this page?</h3>@@ -251,6 +256,8 @@<li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a></li><li><a href="/answers/set-mcp-memory-storage-path">How do I set the MCP memory storage path?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li>+ <li><a href="/answers/what-is-xerj">What is XERJ?</a> <span class="mute">· same intent: Find the right tool</span></li>+ <li><a href="/compare/xerj-vs-web-agent-search">How do I let an agent search a folder on my laptop instead of crawling the web?</a> <span class="mute">· same intent: Find the right tool</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-localsynapse.md b/landing/compare/xerj-vs-localsynapse.mdindex 0314600ee..72346f718 100644--- a/landing/compare/xerj-vs-localsynapse.md+++ b/landing/compare/xerj-vs-localsynapse.md@@ -2,12 +2,16 @@---title: "XERJ vs LocalSynapse for MCP local file search"canonical: "https://xerj.org/compare/xerj-vs-localsynapse"-updated: "2026-10-03"+updated: "2026-10-19"source: "content/compare/xerj-vs-localsynapse.md"---# What's a local MCP search engine for Claude?+**Short answer** (updated 2026-10-19): What's a local MCP search engine for Claude? Two candidates: LocalSynapse wins the desktop experience, whole-drive indexing and mail shapes beyond mbox and eml. XERJ wins data files, Excel sheets read as typed tables, and the Elasticsearch query surface. No head-to-head was run for this comparison.++**Key number:** LocalSynapse released v2.21.0 on 2026-10-16; its GitHub repository hosts release artifacts and had 10 stars. (as of 2026-10-19; source: [github.com/LocalSynapse/LocalSynapse](https://github.com/LocalSynapse/LocalSynapse))+**TL;DR** — LocalSynapse wins the desktop experience: a search window you double-click, whole-drive indexing, and mail shapes beyond mbox and eml that XERJ has no extractor for. XERJ wins data files — Excel sheets included, read as typed tables — and the Elasticsearch query surface. No head-to-head was run for this page.## Agent prompt@@ -36,7 +40,7 @@ xerj autoindex ./work --prefix work --state-dir ./state-work### Command 3-Note: Attach the running node over stdio MCP. Same binary, 10 tools, no desktop window.+Note: Attach the running node over stdio MCP. Same binary, 17 tools, no desktop window.```shxerj mcp --url http://127.0.0.1:9200@@ -64,7 +68,7 @@ The list holds JSON and JSONL, CSV with dialect detection, structured logs, SQLThe data end of that list is where the two products part company. A SQLite database, a semicolon CSV with a decimal comma, and a multi-gigabyte SQL export are shapes a document-first indexer usually skips.-Code is the other one. Each code document carries a `defs` field and a `symbols` list with names, kinds and line numbers, across 34 languages.+Code is the other one. Each code document carries a `defs` field and a `symbols` list with names, kinds and line numbers, across 36 languages.## Two different answers to "how does the agent ask?"@@ -72,7 +76,7 @@ LocalSynapse documents an MCP server over stdio that opens no network port, withXERJ answers over the Elasticsearch REST API. An agent writes the query DSL it already knows: `match_phrase`, `terms`, `range`, aggregations and `_source` narrowing.-`xerj mcp` serves 10 tools over stdio on top of that, and `/_memory/{ns}` gives an agent namespaced memory in the engine.+`xerj mcp` serves 17 tools over stdio on top of that, and `/_memory/{ns}` gives an agent namespaced memory in the engine.Pick the surface that matches your caller. A small tool list is easier for a simple agent, and a query language is more useful for one that asks precise questions.@@ -140,7 +144,7 @@ Yes, since v1.0.0-rc.81. Each .xlsx sheet becomes its own dataset with one recor### How many MCP tools does each side expose?-LocalSynapse documents four. XERJ serves 10 through xerj mcp, including memory tools.+LocalSynapse documents four. XERJ serves 17 through xerj mcp, including memory tools.### Is either one open source?@@ -169,3 +173,5 @@ Give it a local MCP server over an index of those files. Both sides here run on- [I need my agent to find a passage and cite the file, not dump the whole tree. How?](/answers/code-search-mcp-for-claude-code)- [How do I set the MCP memory storage path?](/answers/set-mcp-memory-storage-path)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)+- [What is XERJ?](/answers/what-is-xerj) (same intent: Find the right tool)+- [How do I let an agent search a folder on my laptop instead of crawling the web?](/compare/xerj-vs-web-agent-search) (same intent: Find the right tool)diff --git a/landing/compare/xerj-vs-meilisearch.html b/landing/compare/xerj-vs-meilisearch.htmlindex e6f685813..ec1330858 100644--- a/landing/compare/xerj-vs-meilisearch.html+++ b/landing/compare/xerj-vs-meilisearch.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>WHAT'S A LOCAL ALTERNATIVE TO MEILISEARCH THAT INDEXES A FOLDER BY ITSELF?</div><div class="kicker"><span>COMPARE · COMPARISON: SEARCH ENGINES</span></div><h1>What's a local alternative to Meilisearch that indexes a folder by itself?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>What's a local alternative to Meilisearch that indexes a folder by itself? XERJ reads a folder of mixed files with one command, where Meilisearch expects you to build and POST the documents. Meilisearch wins typo-tolerant instant search, and its own defaults document that win. No head-to-head was run.</p>+ <p class="key-fact"><strong>Key number:</strong> Meilisearch has 59,612 GitHub stars and released v1.55.0 on 2026-10-12. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/meilisearch/meilisearch">github.com/meilisearch/meilisearch</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Meilisearch wins typo-tolerant instant search, and its own defaults document the win. XERJ wins the step before the query: it reads a folder of mixed files with one command, where Meilisearch expects you to build and POST the documents. No head-to-head was run for this page.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -215,7 +220,7 @@<p>Choose Meilisearch when you want a managed plan. XERJ has none.</p><h2>When to choose XERJ instead</h2><p>Choose XERJ when the corpus is a folder on a disk and nobody has built a pipeline for it. One command turns mixed formats into typed indices.</p>- <p>Choose XERJ when the caller is an agent rather than a person. The same binary also holds namespaced agent memory and an MCP server that serves 10 tools.</p>+ <p>Choose XERJ when the caller is an agent rather than a person. The same binary also holds namespaced agent memory and an MCP server that serves 17 tools.</p><p>Choose XERJ when the files hold shapes Meilisearch never accepts. A SQLite database, a hostile CSV with a decimal comma and a folder of DOCX contracts all qualify.</p><h2>What was not measured</h2><p>No head-to-head was run for this page. There is no timing here, no recall figure and no typo-query score, because no Meilisearch node was installed to produce one.</p>@@ -252,6 +257,9 @@<li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li><li><a href="/answers/do-search-embeddings-help">When should I turn on neural embeddings, and when is the lexical default enough?</a></li>+ <li><a href="/compare/xerj-vs-typesense">Do I need Typesense for an agent to search my docs?</a> <span class="mute">· same intent: search engine alternatives</span></li>+ <li><a href="/compare/xerj-vs-elasticsearch-local">Is there an Elasticsearch-compatible engine that isn't Elasticsearch?</a> <span class="mute">· same intent: search engine alternatives</span></li>+ <li><a href="/answers/does-xerj-support-s3-alerting-plugins">Does XERJ support S3 storage, alerting or custom plugins yet?</a> <span class="mute">· same intent: search engine alternatives</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-meilisearch.md b/landing/compare/xerj-vs-meilisearch.mdindex 82cb1a9af..9177792d5 100644--- a/landing/compare/xerj-vs-meilisearch.md+++ b/landing/compare/xerj-vs-meilisearch.md@@ -2,12 +2,16 @@---title: "XERJ vs Meilisearch for local and agent search"canonical: "https://xerj.org/compare/xerj-vs-meilisearch"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/compare/xerj-vs-meilisearch.md"---# What's a local alternative to Meilisearch that indexes a folder by itself?+**Short answer** (updated 2026-10-19): What's a local alternative to Meilisearch that indexes a folder by itself? XERJ reads a folder of mixed files with one command, where Meilisearch expects you to build and POST the documents. Meilisearch wins typo-tolerant instant search, and its own defaults document that win. No head-to-head was run.++**Key number:** Meilisearch has 59,612 GitHub stars and released v1.55.0 on 2026-10-12. (as of 2026-10-19; source: [github.com/meilisearch/meilisearch](https://github.com/meilisearch/meilisearch))+**TL;DR** — Meilisearch wins typo-tolerant instant search, and its own defaults document the win. XERJ wins the step before the query: it reads a folder of mixed files with one command, where Meilisearch expects you to build and POST the documents. No head-to-head was run for this page.## Agent prompt@@ -112,7 +116,7 @@ Choose Meilisearch when you want a managed plan. XERJ has none.Choose XERJ when the corpus is a folder on a disk and nobody has built a pipeline for it. One command turns mixed formats into typed indices.-Choose XERJ when the caller is an agent rather than a person. The same binary also holds namespaced agent memory and an MCP server that serves 10 tools.+Choose XERJ when the caller is an agent rather than a person. The same binary also holds namespaced agent memory and an MCP server that serves 17 tools.Choose XERJ when the files hold shapes Meilisearch never accepts. A SQLite database, a hostile CSV with a decimal comma and a folder of DOCX contracts all qualify.@@ -171,3 +175,6 @@ Call Meilisearch when a person types into a search field. Call XERJ when an agen- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)- [When should I turn on neural embeddings, and when is the lexical default enough?](/answers/do-search-embeddings-help)+- [Do I need Typesense for an agent to search my docs?](/compare/xerj-vs-typesense) (same intent: search engine alternatives)+- [Is there an Elasticsearch-compatible engine that isn't Elasticsearch?](/compare/xerj-vs-elasticsearch-local) (same intent: search engine alternatives)+- [Does XERJ support S3 storage, alerting or custom plugins yet?](/answers/does-xerj-support-s3-alerting-plugins) (same intent: search engine alternatives)diff --git a/landing/compare/xerj-vs-obsidian-omnisearch.html b/landing/compare/xerj-vs-obsidian-omnisearch.htmlindex df850c938..4116cdf01 100644--- a/landing/compare/xerj-vs-obsidian-omnisearch.html+++ b/landing/compare/xerj-vs-obsidian-omnisearch.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>HOW DO I SEARCH AN OBSIDIAN VAULT FROM OUTSIDE OBSIDIAN?</div><div class="kicker"><span>COMPARE · COMPARISON: NOTES AND VAULTS</span></div><h1>How do I search an Obsidian vault from outside Obsidian?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>How do I search an Obsidian vault from outside Obsidian? Index the vault folder with XERJ; it reads it with Obsidian closed and answers an agent. Inside Obsidian, Omnisearch wins: an instant search interface, BM25 ranking, and PDFs and images through the Text Extractor plugin. No head-to-head was run.</p>+ <p class="key-fact"><strong>Key number:</strong> Omnisearch has 2,169 GitHub stars, is GPL-3.0, and released 1.31.0 on 2026-09-05. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/scambier/obsidian-omnisearch">github.com/scambier/obsidian-omnisearch</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Omnisearch wins inside Obsidian: an instant search interface, BM25 ranking, and PDFs and images reached through the Text Extractor plugin. XERJ reads the same folder with Obsidian closed and answers an agent. No head-to-head was run for this page.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -197,7 +202,7 @@<h2>Agent access is not a place where XERJ stands alone</h2><p>The Omnisearch README points at a third-party MCP server that detects Omnisearch and exposes it as a BM25-ranked search mode for agents reading a vault. That path exists and it works.</p><p>The difference is what it depends on. That route needs Obsidian running and the local HTTP server enabled.</p>- <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary as the engine. It serves 10 tools, and it needs no editor at all.</p>+ <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary as the engine. It serves 17 tools, and it needs no editor at all.</p><h2>What XERJ reads in a vault, and how</h2><p>Thirteen families are covered. For a vault the ones that matter are plain text and markdown, PDF, DOCX, HTML, CSV and JSON.</p><p>Ranking is BM25, and a vector clause can be fused into the same query with Reciprocal Rank Fusion or a weighted linear sum. The default embedder is lexical feature hashing, not neural, so the fused vector side carries no meaning-based signal until <code class="inline">--embed-mode neural</code> is turned on.</p>@@ -248,6 +253,9 @@<li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li><li><a href="/answers/search-word-documents-in-a-folder">How do I search through a folder of contracts in .docx?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li>+ <li><a href="/answers/index-markdown-into-elasticsearch-api">How do I index Markdown into the Elasticsearch API?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/notion-export-duplicate-search-results">Why does my Notion export duplicate titles?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/cheap-low-volume-log-search">What can I use for low-volume log search?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-obsidian-omnisearch.md b/landing/compare/xerj-vs-obsidian-omnisearch.mdindex 8fa3a3562..6ed0a1019 100644--- a/landing/compare/xerj-vs-obsidian-omnisearch.md+++ b/landing/compare/xerj-vs-obsidian-omnisearch.md@@ -2,12 +2,16 @@---title: "XERJ vs Omnisearch for an Obsidian vault"canonical: "https://xerj.org/compare/xerj-vs-obsidian-omnisearch"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/compare/xerj-vs-obsidian-omnisearch.md"---# How do I search an Obsidian vault from outside Obsidian?+**Short answer** (updated 2026-10-19): How do I search an Obsidian vault from outside Obsidian? Index the vault folder with XERJ; it reads it with Obsidian closed and answers an agent. Inside Obsidian, Omnisearch wins: an instant search interface, BM25 ranking, and PDFs and images through the Text Extractor plugin. No head-to-head was run.++**Key number:** Omnisearch has 2,169 GitHub stars, is GPL-3.0, and released 1.31.0 on 2026-09-05. (as of 2026-10-19; source: [github.com/scambier/obsidian-omnisearch](https://github.com/scambier/obsidian-omnisearch))+**TL;DR** — Omnisearch wins inside Obsidian: an instant search interface, BM25 ranking, and PDFs and images reached through the Text Extractor plugin. XERJ reads the same folder with Obsidian closed and answers an agent. No head-to-head was run for this page.## Agent prompt@@ -76,7 +80,7 @@ The Omnisearch README points at a third-party MCP server that detects OmnisearchThe difference is what it depends on. That route needs Obsidian running and the local HTTP server enabled.-`xerj mcp` is a stdio MCP server in the same binary as the engine. It serves 10 tools, and it needs no editor at all.+`xerj mcp` is a stdio MCP server in the same binary as the engine. It serves 17 tools, and it needs no editor at all.## What XERJ reads in a vault, and how@@ -164,3 +168,6 @@ Yes, and that is the usual answer. Omnisearch serves you inside the editor, and- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)- [How do I search through a folder of contracts in .docx?](/answers/search-word-documents-in-a-folder)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)+- [How do I index Markdown into the Elasticsearch API?](/answers/index-markdown-into-elasticsearch-api) (same intent: logs and docs)+- [Why does my Notion export duplicate titles?](/answers/notion-export-duplicate-search-results) (same intent: logs and docs)+- [What can I use for low-volume log search?](/answers/cheap-low-volume-log-search) (same intent: logs and docs)diff --git a/landing/compare/xerj-vs-pagefind.html b/landing/compare/xerj-vs-pagefind.htmlindex b4903fa1e..f08c45933 100644--- a/landing/compare/xerj-vs-pagefind.html+++ b/landing/compare/xerj-vs-pagefind.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>PAGEFIND VS INDEXING A LOCAL HTML DUMP FOR AN AGENT?</div><div class="kicker"><span>COMPARE · COMPARISON: SITE AND EXPORT SEARCH</span></div><h1>Pagefind vs indexing a local HTML dump for an agent?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>Pagefind or a local index for a folder of saved HTML? Pagefind wins search on a built static website: no server, a chunked index and a small download for the visitor. XERJ wins when an agent must query a saved HTML export on disk beside the PDFs next to it. No head-to-head was run.</p>+ <p class="key-fact"><strong>Key number:</strong> Pagefind has 5,519 GitHub stars, is MIT-licensed, and released v1.5.2 on 2026-04-12. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/Pagefind/pagefind">github.com/Pagefind/pagefind</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Pagefind wins search on a built static website: no server, a chunked index and a small download for the visitor. XERJ wins when an agent must query a saved HTML export on disk alongside the PDFs next to it. No head-to-head was run for this page.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -194,7 +199,7 @@</code></pre><p>The command reads a content signature rather than the file extension. It infers field types, writes explicit mappings, and files what it learned in a catalog index.</p><p>Thirteen families are covered. The list holds HTML, plain text, PDF, DOCX and CSV. It also holds JSON and JSONL, structured logs, SQL exports, SQLite, XML, YAML, code and gzip variants.</p>- <p>The result is queryable over the Elasticsearch REST API, and <code class="inline">xerj mcp</code> serves 10 tools to an agent over stdio. A <code class="inline">match_phrase</code> query returns the file path and the matching passage rather than the whole page.</p>+ <p>The result is queryable over the Elasticsearch REST API, and <code class="inline">xerj mcp</code> serves 17 tools to an agent over stdio. A <code class="inline">match_phrase</code> query returns the file path and the matching passage rather than the whole page.</p><h2>What XERJ is not</h2><p>XERJ is not a static-site plugin. It ships no browser bundle, no client-side index and no ready-made search field for a website.</p><p>Putting XERJ behind a public site would mean running a single-node process and exposing it, which is the opposite of what Pagefind was built to avoid. Do not read this page as a suggestion to do that.</p>@@ -245,6 +250,9 @@<li><a href="/answers/search-confluence-html-export">How do I search a Confluence export?</a></li><li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a></li><li><a href="/answers/notion-export-duplicate-search-results">Why does my Notion export duplicate titles?</a></li>+ <li><a href="/answers/read-indexed-email-and-pdf-folder">I indexed a folder of email and PDFs. How do I actually read what it found?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-recoll">What's the best local desktop search for a folder of PDFs and docs?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/index-markdown-into-elasticsearch-api">How do I index Markdown into the Elasticsearch API?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-pagefind.md b/landing/compare/xerj-vs-pagefind.mdindex 9545543eb..f15ea9fc4 100644--- a/landing/compare/xerj-vs-pagefind.md+++ b/landing/compare/xerj-vs-pagefind.md@@ -2,12 +2,16 @@---title: "XERJ vs Pagefind for a folder of saved HTML"canonical: "https://xerj.org/compare/xerj-vs-pagefind"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/compare/xerj-vs-pagefind.md"---# Pagefind vs indexing a local HTML dump for an agent?+**Short answer** (updated 2026-10-19): Pagefind or a local index for a folder of saved HTML? Pagefind wins search on a built static website: no server, a chunked index and a small download for the visitor. XERJ wins when an agent must query a saved HTML export on disk beside the PDFs next to it. No head-to-head was run.++**Key number:** Pagefind has 5,519 GitHub stars, is MIT-licensed, and released v1.5.2 on 2026-04-12. (as of 2026-10-19; source: [github.com/Pagefind/pagefind](https://github.com/Pagefind/pagefind))+**TL;DR** — Pagefind wins search on a built static website: no server, a chunked index and a small download for the visitor. XERJ wins when an agent must query a saved HTML export on disk alongside the PDFs next to it. No head-to-head was run for this page.## Agent prompt@@ -70,7 +74,7 @@ The command reads a content signature rather than the file extension. It infersThirteen families are covered. The list holds HTML, plain text, PDF, DOCX and CSV. It also holds JSON and JSONL, structured logs, SQL exports, SQLite, XML, YAML, code and gzip variants.-The result is queryable over the Elasticsearch REST API, and `xerj mcp` serves 10 tools to an agent over stdio. A `match_phrase` query returns the file path and the matching passage rather than the whole page.+The result is queryable over the Elasticsearch REST API, and `xerj mcp` serves 17 tools to an agent over stdio. A `match_phrase` query returns the file path and the matching passage rather than the whole page.## What XERJ is not@@ -158,3 +162,6 @@ It depends who is asking. Pagefind serves your readers in the browser on a built- [How do I search a Confluence export?](/answers/search-confluence-html-export)- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder)- [Why does my Notion export duplicate titles?](/answers/notion-export-duplicate-search-results)+- [I indexed a folder of email and PDFs. How do I actually read what it found?](/answers/read-indexed-email-and-pdf-folder) (same intent: logs and docs)+- [What's the best local desktop search for a folder of PDFs and docs?](/compare/xerj-vs-recoll) (same intent: logs and docs)+- [How do I index Markdown into the Elasticsearch API?](/answers/index-markdown-into-elasticsearch-api) (same intent: logs and docs)diff --git a/landing/compare/xerj-vs-recoll.html b/landing/compare/xerj-vs-recoll.htmlindex 3e60c3177..6523aa4b2 100644--- a/landing/compare/xerj-vs-recoll.html+++ b/landing/compare/xerj-vs-recoll.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>WHAT'S THE BEST LOCAL DESKTOP SEARCH FOR A FOLDER OF PDFS AND DOCS?</div><div class="kicker"><span>COMPARE · COMPARISON: DESKTOP SEARCH</span></div><h1>What's the best local desktop search for a folder of PDFs and docs?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>What is the best local desktop search for a folder of PDFs and docs? For a person at a desk, Recoll: a GUI, email folders and attachments, OCR hooks and open-at-page. For an agent, XERJ, a search engine called over HTTP or MCP. No head-to-head benchmark was run; this page compares documented capabilities.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ reads at most 100,000 pages per PDF and runs no OCR; Recoll's OCR goes through tesseract or ABBYY FineReader. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/resources.rs">engine/crates/xerj-autoindex/src/resources.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Recoll is the better choice for a person at a desk. It has a GUI, email handled in the application — mail folders, attachments, nesting — OCR hooks and open-at-page. XERJ is a search engine that an agent calls over HTTP or MCP. No head-to-head benchmark was run, so this page compares documented capabilities.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -201,7 +206,7 @@<p>The command takes no configuration file and no mapping.</p><p>The node answers the Elasticsearch REST API. A <code class="inline">match_phrase</code> query and a filter on a keyword field work over plain HTTP. <code class="inline">xerj autoindex map</code> prints a data map of what the folder became.</p><p>An agent reads that map first. It then names a real index and a real field in the query.</p>- <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary. It serves 10 tools against a node you already started. Agent memory lives in the engine under <code class="inline">/_memory/{namespace}</code>.</p>+ <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary. It serves 17 tools against a node you already started. Agent memory lives in the engine under <code class="inline">/_memory/{namespace}</code>.</p><p>XERJ is single-node. There is no replication and no failover. The index is as durable as the one host it lives on.</p><p>The default embedder is lexical feature hashing, not a neural model. Neural retrieval is opt-in through <code class="inline">--embed-mode neural</code>.</p><h2>Capabilities, side by side</h2>@@ -218,7 +223,7 @@<tr><td>format detection</td><td>file name and MIME configuration</td><td>content sniffing per family</td></tr><tr><td>helper programs on the host</td><td>many handlers are external</td><td>none, the binary parses in process</td></tr><tr><td>HTTP query API</td><td>not in the core application</td><td>yes, Elasticsearch REST API</td></tr>- <tr><td>MCP server for an agent</td><td>not in the core application</td><td>yes, <code class="inline">xerj mcp</code>, 10 tools</td></tr>+ <tr><td>MCP server for an agent</td><td>not in the core application</td><td>yes, <code class="inline">xerj mcp</code>, 17 tools</td></tr><tr><td>catalog of refused files</td><td>index failures are reported</td><td><code class="inline">autoindex-catalog</code>, one reason per file</td></tr><tr><td>agent memory in the engine</td><td>no</td><td>yes, <code class="inline">/_memory/{namespace}</code></td></tr></tbody>@@ -238,7 +243,7 @@<p>Choose Elasticsearch instead when the documents must live on more than one host. XERJ has no replication and no failover. XERJ speaks the same REST API on one node.</p><h2>When XERJ is the better fit</h2><p>Choose XERJ when the caller is a program. An agent that speaks HTTP or MCP needs no wrapper and no subprocess protocol.</p>- <p><code class="inline">xerj mcp</code> serves 10 tools. A coding agent can start the node itself.</p>+ <p><code class="inline">xerj mcp</code> serves 17 tools. A coding agent can start the node itself.</p><p>Choose XERJ when the folder is mixed. Format detection reads content, not the file extension. A CSV file with the wrong file extension still lands in a typed dataset.</p><p>Refused files land in <code class="inline">autoindex-catalog</code> with a reason string. A missing file is explainable, not silent.</p><p>Choose XERJ when the answer must carry provenance. Every document carries <code class="inline">ax_path</code>, <code class="inline">ax_file</code>, <code class="inline">ax_format</code> and four more keyword fields. A hit names its source file, so an agent can cite it.</p>@@ -257,7 +262,7 @@<h3>Is Recoll enough for AI agents or do I need an API?</h3><p>Recoll is enough if you write the wrapper. It answers on the command line through recollq and through a Python API, so an agent can call it through a subprocess you maintain. XERJ answers HTTP and MCP with no wrapper.</p><h3>How do I search my documents folder from Claude or ChatGPT?</h3>- <p>Index the folder with <code class="inline">xerj autoindex</code>, then attach the folder to the agent through <code class="inline">xerj mcp</code>, a stdio MCP server that serves 10 tools against a running node.</p>+ <p>Index the folder with <code class="inline">xerj autoindex</code>, then attach the folder to the agent through <code class="inline">xerj mcp</code>, a stdio MCP server that serves 17 tools against a running node.</p><h3>Did you run a head-to-head benchmark between XERJ and Recoll?</h3><p>No. No shared corpus was frozen and no recall or timing numbers were measured, so this page publishes documented capabilities and no win counts.</p><h3>Which tool indexes email, mbox and attachments?</h3>@@ -283,6 +288,9 @@<li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li><li><a href="/compare/xerj-vs-ripgrep-all">How do I grep PDFs and Word docs from the command line?</a></li><li><a href="/compare/xerj-vs-docfetcher">What's a free DocFetcher alternative that an agent can call?</a></li>+ <li><a href="/answers/read-indexed-email-and-pdf-folder">I indexed a folder of email and PDFs. How do I actually read what it found?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/is-pdf-indexing-efficient">Is it efficient to index PDF files?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/compare/xerj-vs-houdahspot">XERJ vs HoudahSpot — Spotlight GUI vs an agent index</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-recoll.md b/landing/compare/xerj-vs-recoll.mdindex fd6f66c10..bd4fbf440 100644--- a/landing/compare/xerj-vs-recoll.md+++ b/landing/compare/xerj-vs-recoll.md@@ -2,12 +2,16 @@---title: "Recoll compared with XERJ for document search"canonical: "https://xerj.org/compare/xerj-vs-recoll"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/compare/xerj-vs-recoll.md"---# What's the best local desktop search for a folder of PDFs and docs?+**Short answer** (updated 2026-10-19): What is the best local desktop search for a folder of PDFs and docs? For a person at a desk, Recoll: a GUI, email folders and attachments, OCR hooks and open-at-page. For an agent, XERJ, a search engine called over HTTP or MCP. No head-to-head benchmark was run; this page compares documented capabilities.++**Key number:** XERJ reads at most 100,000 pages per PDF and runs no OCR; Recoll's OCR goes through tesseract or ABBYY FineReader. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/resources.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/resources.rs))+**TL;DR** — Recoll is the better choice for a person at a desk. It has a GUI, email handled in the application — mail folders, attachments, nesting — OCR hooks and open-at-page. XERJ is a search engine that an agent calls over HTTP or MCP. No head-to-head benchmark was run, so this page compares documented capabilities.## Agent prompt@@ -80,7 +84,7 @@ The node answers the Elasticsearch REST API. A `match_phrase` query and a filterAn agent reads that map first. It then names a real index and a real field in the query.-`xerj mcp` is a stdio MCP server in the same binary. It serves 10 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.+`xerj mcp` is a stdio MCP server in the same binary. It serves 17 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.XERJ is single-node. There is no replication and no failover. The index is as durable as the one host it lives on.@@ -101,7 +105,7 @@ Every row is a documented capability of each tool. No row is a measured result.| format detection | file name and MIME configuration | content sniffing per family || helper programs on the host | many handlers are external | none, the binary parses in process || HTTP query API | not in the core application | yes, Elasticsearch REST API |-| MCP server for an agent | not in the core application | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | not in the core application | yes, `xerj mcp`, 17 tools || catalog of refused files | index failures are reported | `autoindex-catalog`, one reason per file || agent memory in the engine | no | yes, `/_memory/{namespace}` |@@ -135,7 +139,7 @@ Choose Elasticsearch instead when the documents must live on more than one host.Choose XERJ when the caller is a program. An agent that speaks HTTP or MCP needs no wrapper and no subprocess protocol.-`xerj mcp` serves 10 tools. A coding agent can start the node itself.+`xerj mcp` serves 17 tools. A coding agent can start the node itself.Choose XERJ when the folder is mixed. Format detection reads content, not the file extension. A CSV file with the wrong file extension still lands in a typed dataset.@@ -173,7 +177,7 @@ Recoll is enough if you write the wrapper. It answers on the command line throug### How do I search my documents folder from Claude or ChatGPT?-Index the folder with `xerj autoindex`, then attach the folder to the agent through `xerj mcp`, a stdio MCP server that serves 10 tools against a running node.+Index the folder with `xerj autoindex`, then attach the folder to the agent through `xerj mcp`, a stdio MCP server that serves 17 tools against a running node.### Did you run a head-to-head benchmark between XERJ and Recoll?@@ -206,3 +210,6 @@ No. XERJ has no OCR, so a PDF with no text layer produces no text. Recoll has OC- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)- [How do I grep PDFs and Word docs from the command line?](/compare/xerj-vs-ripgrep-all)- [What's a free DocFetcher alternative that an agent can call?](/compare/xerj-vs-docfetcher)+- [I indexed a folder of email and PDFs. How do I actually read what it found?](/answers/read-indexed-email-and-pdf-folder) (same intent: logs and docs)+- [Is it efficient to index PDF files?](/answers/is-pdf-indexing-efficient) (same intent: logs and docs)+- [XERJ vs HoudahSpot — Spotlight GUI vs an agent index](/compare/xerj-vs-houdahspot) (same intent: logs and docs)diff --git a/landing/compare/xerj-vs-ripgrep-all.html b/landing/compare/xerj-vs-ripgrep-all.htmlindex 55687f995..fec3c6d5e 100644--- a/landing/compare/xerj-vs-ripgrep-all.html+++ b/landing/compare/xerj-vs-ripgrep-all.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>HOW DO I GREP PDFS AND WORD DOCS FROM THE COMMAND LINE?</div><div class="kicker"><span>COMPARE · COMPARISON: DESKTOP SEARCH</span></div><h1>How do I grep PDFs and Word docs from the command line?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>How do I grep PDFs and Word docs from the command line? For one question today, ripgrep-all: it converts PDFs and Office files as it goes, walks into archives, and needs no daemon or index. For an agent asking many questions, XERJ indexes the folder once. No head-to-head benchmark was run.</p>+ <p class="key-fact"><strong>Key number:</strong> ripgrep-all has 9,883 GitHub stars and its latest release is v0.10.10 (2025-11-09). <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/phiresky/ripgrep-all">github.com/phiresky/ripgrep-all</a>)</span></p>+ </div><p><strong>TL;DR</strong> — ripgrep-all is the better choice for one question, today. It converts PDFs and Office files as it goes, walks into archives, and wants no daemon and no index. XERJ indexes the same folder once for an agent to query many times. No head-to-head benchmark was run.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -213,7 +218,7 @@<p>XERJ is a single Rust binary that runs one search node. <code class="inline">xerj autoindex <folder></code> reads the folder and detects each file family by content. It infers a dataset per file shape and writes the documents.</p><p>The command takes no configuration file and no mapping. It also needs no helper program on the host, because the binary parses the formats in process.</p><p>The node answers the Elasticsearch REST API. <code class="inline">xerj autoindex map</code> prints a data map of what the folder became. An agent reads that map, then names a real index and a real field.</p>- <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary. It serves 10 tools against a node you already started. Agent memory lives in the engine under <code class="inline">/_memory/{namespace}</code>.</p>+ <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary. It serves 17 tools against a node you already started. Agent memory lives in the engine under <code class="inline">/_memory/{namespace}</code>.</p><p>XERJ is single-node. There is no replication and no failover. The default embedder is lexical feature hashing, not a neural model, and neural retrieval is opt-in through <code class="inline">--embed-mode neural</code>.</p><h2>Capabilities, side by side</h2><p>Every row is a documented capability of each tool. No row is a measured result.</p>@@ -232,7 +237,7 @@<tr><td>ranking of results</td><td>none, matches in file order</td><td>BM25 over the extracted text</td></tr><tr><td>filter by file family or path</td><td>shell globs and ripgrep flags</td><td>keyword fields, <code class="inline">ax_format</code> and <code class="inline">ax_path</code></td></tr><tr><td>HTTP query API</td><td>none</td><td>yes, Elasticsearch REST API</td></tr>- <tr><td>MCP server for an agent</td><td>none</td><td>yes, <code class="inline">xerj mcp</code>, 10 tools</td></tr>+ <tr><td>MCP server for an agent</td><td>none</td><td>yes, <code class="inline">xerj mcp</code>, 17 tools</td></tr><tr><td>catalog of refused files</td><td>messages on standard error</td><td><code class="inline">autoindex-catalog</code>, one reason per file</td></tr><tr><td>agent memory in the engine</td><td>none</td><td>yes, <code class="inline">/_memory/{namespace}</code></td></tr></tbody>@@ -252,7 +257,7 @@<p>Choose Elasticsearch instead when the documents must live on more than one host. XERJ has no replication and no failover. XERJ speaks the same REST API on one node.</p><h2>When XERJ is the better fit</h2><p>Choose XERJ when the same folder answers many questions. The parse happens once, and every later query reads the index rather than the PDFs.</p>- <p>Choose XERJ when the caller is a program. An agent that speaks HTTP or MCP needs no wrapper and no output parser. <code class="inline">xerj mcp</code> serves 10 tools.</p>+ <p>Choose XERJ when the caller is a program. An agent that speaks HTTP or MCP needs no wrapper and no output parser. <code class="inline">xerj mcp</code> serves 17 tools.</p><p>Choose XERJ when the order of the answers matters. rga returns every match in file order. BM25 puts the best documents first.</p><p>Choose XERJ when the answer must carry provenance. Every document carries <code class="inline">ax_path</code>, <code class="inline">ax_file</code>, <code class="inline">ax_format</code> and four more keyword fields, so an agent can cite the source file.</p><p>Choose XERJ when a refused file must be explainable. Files that XERJ does not parse land in <code class="inline">autoindex-catalog</code> with a reason string, rather than passing in silence.</p>@@ -296,6 +301,9 @@<li><a href="/answers/full-text-search-sqlite-database">How do I full-text search a SQLite database I just copied onto disk?</a></li><li><a href="/compare/xerj-vs-recoll">What's the best local desktop search for a folder of PDFs and docs?</a></li><li><a href="/compare/xerj-vs-ripgrep-for-code-agents">Is ripgrep enough for a coding agent, or do I need a code index?</a></li>+ <li><a href="/answers/read-indexed-email-and-pdf-folder">I indexed a folder of email and PDFs. How do I actually read what it found?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-word-documents-in-a-folder">How do I search through a folder of contracts in .docx?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/is-pdf-indexing-efficient">Is it efficient to index PDF files?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-ripgrep-all.md b/landing/compare/xerj-vs-ripgrep-all.mdindex 54fbf8146..0453824f4 100644--- a/landing/compare/xerj-vs-ripgrep-all.md+++ b/landing/compare/xerj-vs-ripgrep-all.md@@ -2,12 +2,16 @@---title: "ripgrep-all compared with XERJ for PDFs and docs"canonical: "https://xerj.org/compare/xerj-vs-ripgrep-all"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/compare/xerj-vs-ripgrep-all.md"---# How do I grep PDFs and Word docs from the command line?+**Short answer** (updated 2026-10-19): How do I grep PDFs and Word docs from the command line? For one question today, ripgrep-all: it converts PDFs and Office files as it goes, walks into archives, and needs no daemon or index. For an agent asking many questions, XERJ indexes the folder once. No head-to-head benchmark was run.++**Key number:** ripgrep-all has 9,883 GitHub stars and its latest release is v0.10.10 (2025-11-09). (as of 2026-10-19; source: [github.com/phiresky/ripgrep-all](https://github.com/phiresky/ripgrep-all))+**TL;DR** — ripgrep-all is the better choice for one question, today. It converts PDFs and Office files as it goes, walks into archives, and wants no daemon and no index. XERJ indexes the same folder once for an agent to query many times. No head-to-head benchmark was run.## Agent prompt@@ -89,7 +93,7 @@ The command takes no configuration file and no mapping. It also needs no helperThe node answers the Elasticsearch REST API. `xerj autoindex map` prints a data map of what the folder became. An agent reads that map, then names a real index and a real field.-`xerj mcp` is a stdio MCP server in the same binary. It serves 10 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.+`xerj mcp` is a stdio MCP server in the same binary. It serves 17 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.XERJ is single-node. There is no replication and no failover. The default embedder is lexical feature hashing, not a neural model, and neural retrieval is opt-in through `--embed-mode neural`.@@ -111,7 +115,7 @@ Every row is a documented capability of each tool. No row is a measured result.| ranking of results | none, matches in file order | BM25 over the extracted text || filter by file family or path | shell globs and ripgrep flags | keyword fields, `ax_format` and `ax_path` || HTTP query API | none | yes, Elasticsearch REST API |-| MCP server for an agent | none | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | none | yes, `xerj mcp`, 17 tools || catalog of refused files | messages on standard error | `autoindex-catalog`, one reason per file || agent memory in the engine | none | yes, `/_memory/{namespace}` |@@ -145,7 +149,7 @@ Choose Elasticsearch instead when the documents must live on more than one host.Choose XERJ when the same folder answers many questions. The parse happens once, and every later query reads the index rather than the PDFs.-Choose XERJ when the caller is a program. An agent that speaks HTTP or MCP needs no wrapper and no output parser. `xerj mcp` serves 10 tools.+Choose XERJ when the caller is a program. An agent that speaks HTTP or MCP needs no wrapper and no output parser. `xerj mcp` serves 17 tools.Choose XERJ when the order of the answers matters. rga returns every match in file order. BM25 puts the best documents first.@@ -214,3 +218,6 @@ Not with the shipped adapters. Its config file accepts custom subprocess adapter- [How do I full-text search a SQLite database I just copied onto disk?](/answers/full-text-search-sqlite-database)- [What's the best local desktop search for a folder of PDFs and docs?](/compare/xerj-vs-recoll)- [Is ripgrep enough for a coding agent, or do I need a code index?](/compare/xerj-vs-ripgrep-for-code-agents)+- [I indexed a folder of email and PDFs. How do I actually read what it found?](/answers/read-indexed-email-and-pdf-folder) (same intent: logs and docs)+- [How do I search through a folder of contracts in .docx?](/answers/search-word-documents-in-a-folder) (same intent: logs and docs)+- [Is it efficient to index PDF files?](/answers/is-pdf-indexing-efficient) (same intent: logs and docs)diff --git a/landing/compare/xerj-vs-ripgrep-for-code-agents.html b/landing/compare/xerj-vs-ripgrep-for-code-agents.htmlindex b4a6d1e53..0fa2a3ebe 100644--- a/landing/compare/xerj-vs-ripgrep-for-code-agents.html+++ b/landing/compare/xerj-vs-ripgrep-for-code-agents.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>XERJ compared with ripgrep for code agents</title>+<title>ripgrep vs a code index for coding agents: 30 tasks</title><meta name="description" content="30 disclosed tasks on one 331-file code tree. The two tools agree on 18. ripgrep wins 5 named tasks outright, including a substring inside an identifier."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/compare/xerj-vs-ripgrep-for-code-agents"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="XERJ compared with ripgrep for code agents">+<meta property="og:title" content="ripgrep vs a code index for coding agents: 30 tasks"><meta property="og:description" content="30 disclosed tasks on one 331-file code tree. The two tools agree on 18. ripgrep wins 5 named tasks outright, including a substring inside an identifier."><meta property="og:url" content="https://xerj.org/compare/xerj-vs-ripgrep-for-code-agents"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="XERJ compared with ripgrep for code agents">+<meta name="twitter:title" content="ripgrep vs a code index for coding agents: 30 tasks"><meta name="twitter:description" content="30 disclosed tasks on one 331-file code tree. The two tools agree on 18. ripgrep wins 5 named tasks outright, including a substring inside an identifier."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,7 +70,7 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "XERJ compared with ripgrep for code agents",+ "headline": "ripgrep vs a code index for coding agents: 30 tasks","description": "30 disclosed tasks on one 331-file code tree. The two tools agree on 18. ripgrep wins 5 named tasks outright, including a substring inside an identifier.","url": "https://xerj.org/compare/xerj-vs-ripgrep-for-code-agents","image": "https://xerj.org/og/xerj-card.png",@@ -156,6 +156,11 @@<div class="kicker"><span>COMPARE · COMPARISON: CODE RETRIEVAL</span></div><h1>Is ripgrep enough for a coding agent, or do I need a code index?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>Is ripgrep enough for a coding agent, or do I need a code index? Keep ripgrep for one-off questions and add an index when an agent asks one tree many questions. On one 331-file tree the two named the same files on 18 of 30 disclosed tasks, and ripgrep 14.1.1 won 5 outright.</p>+ <p class="key-fact"><strong>Key number:</strong> ripgrep has 69,257 GitHub stars and its latest release is 15.2.0 (2026-07-15); the 30-task run used 14.1.1. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/BurntSushi/ripgrep">github.com/BurntSushi/ripgrep</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Keep ripgrep for one-off questions and reach for the index when an agent asks one tree many questions. On one 331-file code tree the two named the same files on 18 of 30 disclosed tasks. Five of the 30 went to ripgrep 14.1.1 outright. On a substring inside an identifier it found 7 files and the index found 0.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -232,7 +237,7 @@ T28 ripgrep-only: xerj-api/tests/sq8_codes_follow_document_updates.rs, xerj-comm<tr><td>T18</td><td>the phrase <code class="inline">index not found</code></td><td>3 files</td><td><strong>4 files</strong></td></tr></tbody></table>- <p>For T22 and T20 ripgrep needs a language-specific regular expression, here <code class="inline">struct\s+Ctx</code> and <code class="inline">pub\s+async\s+fn\s+run</code>. XERJ queries the extracted <code class="inline">defs</code> field, which is language-independent and covers 34 languages with one query.</p>+ <p>For T22 and T20 ripgrep needs a language-specific regular expression, here <code class="inline">struct\s+Ctx</code> and <code class="inline">pub\s+async\s+fn\s+run</code>. XERJ queries the extracted <code class="inline">defs</code> field, which is language-independent and covers 36 languages with one query.</p><pre class="code"><code class="language-sh">curl -s -XPOST 'http://127.0.0.1:9510/c07-*/_search' -H 'content-type: application/json' -d '{"query":{"match":{"defs":"Ctx"}},"size":100,"_source":["ax_path"],"track_total_hits":true}'</code></pre><h2>A bigger number is not a better answer</h2>@@ -264,7 +269,7 @@ T28 ripgrep-only: xerj-api/tests/sq8_codes_follow_document_updates.rs, xerj-comm<p>Choose ripgrep for real regular expressions over raw bytes. Choose it for case-insensitive literals across mixed file types, and for a tree that changed 1 second ago. An index answers from the last run, and ripgrep answers from the disk.</p><p>Choose ripgrep for tiny trees and for one-off questions. Several hundred queries against one snapshot is the threshold. Under it, the 5.717-second build and a live node have no return.</p><h2>When the index is worth its cost</h2>- <p>Choose the index when an agent asks one tree many questions per session. Choose it when the questions are about symbols rather than bytes. One <code class="inline">defs</code> query replaces a per-language regular expression and covers 34 languages.</p>+ <p>Choose the index when an agent asks one tree many questions per session. Choose it when the questions are about symbols rather than bytes. One <code class="inline">defs</code> query replaces a per-language regular expression and covers 36 languages.</p><p>Choose the index when you want structure alongside text. The index carries <code class="inline">language</code>, <code class="inline">symbol_count</code>, aggregations and <code class="inline">_source</code> narrowing. ripgrep returns lines, and lines are all it returns.</p><h2>The limits you inherit either way</h2><p>XERJ is single-node here and everywhere. There is no replication and no failover, so the index is exactly as durable as the 1 host it lives on.</p>@@ -299,6 +304,9 @@ T28 ripgrep-only: xerj-api/tests/sq8_codes_follow_document_updates.rs, xerj-comm<li><a href="/answers/syntax-aware-code-search-refactoring">How do I run syntax-aware code search?</a></li><li><a href="/answers/code-search-mcp-for-claude-code">I need my agent to find a passage and cite the file, not dump the whole tree. How?</a></li><li><a href="/answers/local-code-search-mcp-fewer-tokens-than-grep">Local code search MCP for Claude Code that uses fewer tokens than grep</a></li>+ <li><a href="/answers/audit-php-codebase-with-an-index">How do I audit a PHP codebase with an index instead of grepping 1,400 files?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/compare/xerj-vs-ast-grep">ast-grep vs a code index for an agent?</a> <span class="mute">· same intent: code search for agents</span></li>+ <li><a href="/answers/index-reference-library-for-coding-agent">How do I set up reference coding so the agent retrieves a mechanism before writing code?</a> <span class="mute">· same intent: code search for agents</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-ripgrep-for-code-agents.md b/landing/compare/xerj-vs-ripgrep-for-code-agents.mdindex 7a854026b..6650400c4 100644--- a/landing/compare/xerj-vs-ripgrep-for-code-agents.md+++ b/landing/compare/xerj-vs-ripgrep-for-code-agents.md@@ -1,6 +1,6 @@<!-- generated by build_articles.py — edit content/compare/xerj-vs-ripgrep-for-code-agents.md instead -->----title: "XERJ compared with ripgrep for code agents"+title: "ripgrep vs a code index for coding agents: 30 tasks"canonical: "https://xerj.org/compare/xerj-vs-ripgrep-for-code-agents"updated: "2026-10-19"source: "content/compare/xerj-vs-ripgrep-for-code-agents.md"@@ -8,6 +8,10 @@ source: "content/compare/xerj-vs-ripgrep-for-code-agents.md"# Is ripgrep enough for a coding agent, or do I need a code index?+**Short answer** (updated 2026-10-19): Is ripgrep enough for a coding agent, or do I need a code index? Keep ripgrep for one-off questions and add an index when an agent asks one tree many questions. On one 331-file tree the two named the same files on 18 of 30 disclosed tasks, and ripgrep 14.1.1 won 5 outright.++**Key number:** ripgrep has 69,257 GitHub stars and its latest release is 15.2.0 (2026-07-15); the 30-task run used 14.1.1. (as of 2026-10-19; source: [github.com/BurntSushi/ripgrep](https://github.com/BurntSushi/ripgrep))+**TL;DR** — Keep ripgrep for one-off questions and reach for the index when an agent asks one tree many questions. On one 331-file code tree the two named the same files on 18 of 30 disclosed tasks. Five of the 30 went to ripgrep 14.1.1 outright. On a substring inside an identifier it found 7 files and the index found 0.## Agent prompt@@ -111,7 +115,7 @@ The index won on symbol definitions and on analyzed phrases.| T26 | the alternation `(HNSW\|IVF\|PQ)` | 17 files | **24 files** || T18 | the phrase `index not found` | 3 files | **4 files** |-For T22 and T20 ripgrep needs a language-specific regular expression, here `struct\s+Ctx` and `pub\s+async\s+fn\s+run`. XERJ queries the extracted `defs` field, which is language-independent and covers 34 languages with one query.+For T22 and T20 ripgrep needs a language-specific regular expression, here `struct\s+Ctx` and `pub\s+async\s+fn\s+run`. XERJ queries the extracted `defs` field, which is language-independent and covers 36 languages with one query.```shcurl -s -XPOST 'http://127.0.0.1:9510/c07-*/_search' -H 'content-type: application/json' -d '{"query":{"match":{"defs":"Ctx"}},"size":100,"_source":["ax_path"],"track_total_hits":true}'@@ -163,7 +167,7 @@ Choose ripgrep for tiny trees and for one-off questions. Several hundred queries## When the index is worth its cost-Choose the index when an agent asks one tree many questions per session. Choose it when the questions are about symbols rather than bytes. One `defs` query replaces a per-language regular expression and covers 34 languages.+Choose the index when an agent asks one tree many questions per session. Choose it when the questions are about symbols rather than bytes. One `defs` query replaces a per-language regular expression and covers 36 languages.Choose the index when you want structure alongside text. The index carries `language`, `symbol_count`, aggregations and `_source` narrowing. ripgrep returns lines, and lines are all it returns.@@ -223,3 +227,6 @@ Order of magnitude, several hundred on this tree. The derived figure was about 7- [How do I run syntax-aware code search?](/answers/syntax-aware-code-search-refactoring)- [I need my agent to find a passage and cite the file, not dump the whole tree. How?](/answers/code-search-mcp-for-claude-code)- [Local code search MCP for Claude Code that uses fewer tokens than grep](/answers/local-code-search-mcp-fewer-tokens-than-grep)+- [How do I audit a PHP codebase with an index instead of grepping 1,400 files?](/answers/audit-php-codebase-with-an-index) (same intent: code search for agents)+- [ast-grep vs a code index for an agent?](/compare/xerj-vs-ast-grep) (same intent: code search for agents)+- [How do I set up reference coding so the agent retrieves a mechanism before writing code?](/answers/index-reference-library-for-coding-agent) (same intent: code search for agents)diff --git a/landing/compare/xerj-vs-spotlight.html b/landing/compare/xerj-vs-spotlight.htmlindex b8d008e13..c912b04b1 100644--- a/landing/compare/xerj-vs-spotlight.html+++ b/landing/compare/xerj-vs-spotlight.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-09-26",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>XERJ VS MACOS SPOTLIGHT FOR FOLDER CONTENT AN AGENT CAN QUERY</div><div class="kicker"><span>COMPARE · COMPARISON: DESKTOP SEARCH</span></div><h1>XERJ vs macOS Spotlight for folder content an agent can query</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-09-26</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>Spotlight can't find text inside my project files; what else is there? XERJ indexes a project folder, code and data files included, for an agent to query over HTTP or MCP. Spotlight remains the Mac's zero-setup system index with whole-disk reach and wide metadata. No head-to-head was run, and nothing here was tested on macOS.</p>+ <p class="key-fact"><strong>Key number:</strong> XERJ's tree-sitter registry extracts definitions in 36 languages, pinned by a unit test. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs">engine/crates/xerj-autoindex/src/extract/code.rs</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Spotlight is the Mac's system-wide index: zero setup, whole-disk reach and wide file metadata. XERJ is a folder index an agent calls over HTTP or MCP. No head-to-head was run for this page and nothing here was tested on macOS.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -198,7 +203,7 @@<p>XERJ is a single Rust binary that runs one search node. <code class="inline">xerj autoindex <folder></code> reads the folder, detects each file family by content, infers a dataset per file shape and writes the documents. It takes no configuration file and no mapping.</p><p>The streaming extractors cover JSON and JSONL, CSV with dialect sniffing, structured logs, <code class="inline">sqldump</code> files, SQLite, PDF, DOCX, HTML, XML, YAML, plain text and gzip variants of those.</p><p>The node answers the Elasticsearch REST API. A <code class="inline">match_phrase</code> query and a filter on a keyword field work over plain HTTP. The <code class="inline">xerj autoindex map</code> command prints a data map of what the folder became, and an agent reads it before naming an index and a field.</p>- <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary and serves 10 tools against a node you already started. Agent memory lives in the engine under <code class="inline">/_memory/{namespace}</code>.</p>+ <p><code class="inline">xerj mcp</code> is a stdio MCP server in the same binary and serves 17 tools against a node you already started. Agent memory lives in the engine under <code class="inline">/_memory/{namespace}</code>.</p><p>XERJ is single-node. There is no replication and no failover. The default embedder is lexical feature hashing rather than a neural model, and neural retrieval is opt-in through <code class="inline">--embed-mode neural</code>. There is no OCR.</p><h2>Capabilities, side by side</h2><p>Every row is a documented capability of each tool. <strong>No row is a measured result</strong>, and no row is a claim about your Mac.</p>@@ -214,7 +219,7 @@<tr><td>live updates as files change</td><td>yes, and <code class="inline">mdfind -live</code> reports them</td><td>rerun <code class="inline">xerj autoindex</code></td></tr><tr><td>query language</td><td>metadata query expressions</td><td>Elasticsearch query DSL over HTTP</td></tr><tr><td>HTTP query API</td><td>not documented for the system store</td><td>yes, Elasticsearch REST API</td></tr>- <tr><td>MCP server for an agent</td><td>none</td><td>yes, <code class="inline">xerj mcp</code>, 10 tools</td></tr>+ <tr><td>MCP server for an agent</td><td>none</td><td>yes, <code class="inline">xerj mcp</code>, 17 tools</td></tr><tr><td>typed columns from a CSV or a <code class="inline">sqldump</code> file</td><td>not described in the documentation</td><td>yes, a dataset per file shape</td></tr><tr><td>per-file refusal reason</td><td>not described in the documentation</td><td><code class="inline">autoindex-catalog</code>, one reason per file</td></tr><tr><td>agent memory in the engine</td><td>none</td><td>yes, <code class="inline">/_memory/{namespace}</code></td></tr>@@ -245,7 +250,7 @@<h3>Spotlight can't find text inside my project files. What else is there?</h3><p>Index the folder yourself. <code class="inline">xerj autoindex</code> sniffs each file by content and indexes the text, and it does not depend on an importer existing for that file type on your machine.</p><h3>How do I full-text search a folder on a Mac from an agent?</h3>- <p>Give the agent an index it can call. <code class="inline">xerj autoindex</code> builds one from the folder and <code class="inline">xerj mcp</code> serves 10 tools against the running node over stdio, so no subprocess wrapper is needed.</p>+ <p>Give the agent an index it can call. <code class="inline">xerj autoindex</code> builds one from the folder and <code class="inline">xerj mcp</code> serves 17 tools against the running node over stdio, so no subprocess wrapper is needed.</p><h3>Is Spotlight enough for searching PDFs and code?</h3><p>For a person at a keyboard, often yes, and it is already running. For an agent that needs typed fields, a per-file refusal reason and an HTTP API, it is a different job.</p><h3>Did you benchmark XERJ against Spotlight?</h3>@@ -273,6 +278,9 @@<li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li><li><a href="/answers/why-autoindex-skipped-files">Why would a folder search miss files that I can see on disk?</a></li><li><a href="/answers/give-chatgpt-claude-local-file-access">Can ChatGPT search a folder on my laptop, or do I need something else?</a></li>+ <li><a href="/answers/is-pdf-indexing-efficient">Is it efficient to index PDF files?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/search-word-documents-in-a-folder">How do I search through a folder of contracts in .docx?</a> <span class="mute">· same intent: logs and docs</span></li>+ <li><a href="/answers/read-indexed-email-and-pdf-folder">I indexed a folder of email and PDFs. How do I actually read what it found?</a> <span class="mute">· same intent: logs and docs</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-spotlight.md b/landing/compare/xerj-vs-spotlight.mdindex 0b384ba2a..c3d657819 100644--- a/landing/compare/xerj-vs-spotlight.md+++ b/landing/compare/xerj-vs-spotlight.md@@ -2,12 +2,16 @@---title: "Spotlight compared with XERJ for folder content"canonical: "https://xerj.org/compare/xerj-vs-spotlight"-updated: "2026-09-26"+updated: "2026-10-19"source: "content/compare/xerj-vs-spotlight.md"---# XERJ vs macOS Spotlight for folder content an agent can query+**Short answer** (updated 2026-10-19): Spotlight can't find text inside my project files; what else is there? XERJ indexes a project folder, code and data files included, for an agent to query over HTTP or MCP. Spotlight remains the Mac's zero-setup system index with whole-disk reach and wide metadata. No head-to-head was run, and nothing here was tested on macOS.++**Key number:** XERJ's tree-sitter registry extracts definitions in 36 languages, pinned by a unit test. (as of 2026-10-19; source: [engine/crates/xerj-autoindex/src/extract/code.rs](https://github.com/xerj-org/xerj/blob/main/engine/crates/xerj-autoindex/src/extract/code.rs))+**TL;DR** — Spotlight is the Mac's system-wide index: zero setup, whole-disk reach and wide file metadata. XERJ is a folder index an agent calls over HTTP or MCP. No head-to-head was run for this page and nothing here was tested on macOS.## Agent prompt@@ -74,7 +78,7 @@ The streaming extractors cover JSON and JSONL, CSV with dialect sniffing, structThe node answers the Elasticsearch REST API. A `match_phrase` query and a filter on a keyword field work over plain HTTP. The `xerj autoindex map` command prints a data map of what the folder became, and an agent reads it before naming an index and a field.-`xerj mcp` is a stdio MCP server in the same binary and serves 10 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.+`xerj mcp` is a stdio MCP server in the same binary and serves 17 tools against a node you already started. Agent memory lives in the engine under `/_memory/{namespace}`.XERJ is single-node. There is no replication and no failover. The default embedder is lexical feature hashing rather than a neural model, and neural retrieval is opt-in through `--embed-mode neural`. There is no OCR.@@ -93,7 +97,7 @@ Every row is a documented capability of each tool. **No row is a measured result| live updates as files change | yes, and `mdfind -live` reports them | rerun `xerj autoindex` || query language | metadata query expressions | Elasticsearch query DSL over HTTP || HTTP query API | not documented for the system store | yes, Elasticsearch REST API |-| MCP server for an agent | none | yes, `xerj mcp`, 10 tools |+| MCP server for an agent | none | yes, `xerj mcp`, 17 tools || typed columns from a CSV or a `sqldump` file | not described in the documentation | yes, a dataset per file shape || per-file refusal reason | not described in the documentation | `autoindex-catalog`, one reason per file || agent memory in the engine | none | yes, `/_memory/{namespace}` |@@ -147,7 +151,7 @@ Index the folder yourself. `xerj autoindex` sniffs each file by content and inde### How do I full-text search a folder on a Mac from an agent?-Give the agent an index it can call. `xerj autoindex` builds one from the folder and `xerj mcp` serves 10 tools against the running node over stdio, so no subprocess wrapper is needed.+Give the agent an index it can call. `xerj autoindex` builds one from the folder and `xerj mcp` serves 17 tools against the running node over stdio, so no subprocess wrapper is needed.### Is Spotlight enough for searching PDFs and code?@@ -188,3 +192,6 @@ Yes, and on a Mac that is the sensible answer. Spotlight for finding the file, X- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)- [Why would a folder search miss files that I can see on disk?](/answers/why-autoindex-skipped-files)- [Can ChatGPT search a folder on my laptop, or do I need something else?](/answers/give-chatgpt-claude-local-file-access)+- [Is it efficient to index PDF files?](/answers/is-pdf-indexing-efficient) (same intent: logs and docs)+- [How do I search through a folder of contracts in .docx?](/answers/search-word-documents-in-a-folder) (same intent: logs and docs)+- [I indexed a folder of email and PDFs. How do I actually read what it found?](/answers/read-indexed-email-and-pdf-folder) (same intent: logs and docs)diff --git a/landing/compare/xerj-vs-typesense.html b/landing/compare/xerj-vs-typesense.htmlindex 3c9309613..054e5eb74 100644--- a/landing/compare/xerj-vs-typesense.html+++ b/landing/compare/xerj-vs-typesense.html@@ -76,7 +76,7 @@"image": "https://xerj.org/og/xerj-card.png","inLanguage": "en","datePublished": "2026-08-22",- "dateModified": "2026-08-23",+ "dateModified": "2026-10-19","author": {"@type": "Person","name": "XERJ documentation team"@@ -155,7 +155,12 @@<div class="breadcrumb"><a href="/">HOME</a><span class="sep">·</span><a href="/compare/">COMPARISONS</a><span class="sep">·</span>DO I NEED TYPESENSE FOR AN AGENT TO SEARCH MY DOCS?</div><div class="kicker"><span>COMPARE · COMPARISON: SEARCH ENGINES</span></div><h1>Do I need Typesense for an agent to search my docs?</h1>- <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>Do I need Typesense for an agent to search my docs? Not for a folder of mixed files: XERJ reads it with one command, where Typesense expects extracted JSON. Typesense wins faceted product browsing, and its own documentation names that a headline use case. No faceting head-to-head was measured.</p>+ <p class="key-fact"><strong>Key number:</strong> Typesense has 27,008 GitHub stars, is GPL-3.0, and released v30.2 on 2026-04-19. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/typesense/typesense">github.com/typesense/typesense</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Typesense wins faceted product browsing, and its own documentation names that as a headline use case. XERJ wins the step before the query, because it reads a folder of mixed files with one command. No faceting head-to-head was measured for this page.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -205,7 +210,7 @@<h2>Licenses and who runs it</h2><p>The Typesense server is GPL-3.0. XERJ is Apache-2.0. If you plan to embed either one in a product, read both license texts rather than this sentence.</p><p>Typesense Cloud sells a dedicated cluster at a fixed hourly cost rather than charging per document or per search. XERJ ships self-hosted only, with no managed product at all, so a managed plan is a reason to pick Typesense.</p>- <p>Typesense documents conversational search and natural-language search as first-party features. Its documentation index lists no MCP server page, so treat any MCP server for Typesense as a community project until the vendor documents one. XERJ ships <code class="inline">xerj mcp</code> in the same binary, serving 10 tools.</p>+ <p>Typesense documents conversational search and natural-language search as first-party features. Its documentation index lists no MCP server page, so treat any MCP server for Typesense as a community project until the vendor documents one. XERJ ships <code class="inline">xerj mcp</code> in the same binary, serving 17 tools.</p><h2>The limits you inherit with XERJ</h2><p>XERJ is single-node only. There is no data-plane replication, no failover and no multi-region mode, so one host is the whole deployment.</p><p>The server retains heap for every document it indexes, which is an open tracked defect. Corpora past a few million documents can exhaust memory on one node.</p>@@ -253,6 +258,9 @@<li><a href="/answers/index-csv-with-many-columns">How do I index a CSV with many columns?</a></li><li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li>+ <li><a href="/compare/xerj-vs-meilisearch">What's a local alternative to Meilisearch that indexes a folder by itself?</a> <span class="mute">· same intent: search engine alternatives</span></li>+ <li><a href="/answers/search-engine-without-docker">Is there a single-binary local search engine I can just run?</a> <span class="mute">· same intent: search engine alternatives</span></li>+ <li><a href="/answers/does-xerj-support-s3-alerting-plugins">Does XERJ support S3 storage, alerting or custom plugins yet?</a> <span class="mute">· same intent: search engine alternatives</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-typesense.md b/landing/compare/xerj-vs-typesense.mdindex 19b615d47..837897de5 100644--- a/landing/compare/xerj-vs-typesense.md+++ b/landing/compare/xerj-vs-typesense.md@@ -2,12 +2,16 @@---title: "XERJ vs Typesense when the corpus is a folder"canonical: "https://xerj.org/compare/xerj-vs-typesense"-updated: "2026-08-23"+updated: "2026-10-19"source: "content/compare/xerj-vs-typesense.md"---# Do I need Typesense for an agent to search my docs?+**Short answer** (updated 2026-10-19): Do I need Typesense for an agent to search my docs? Not for a folder of mixed files: XERJ reads it with one command, where Typesense expects extracted JSON. Typesense wins faceted product browsing, and its own documentation names that a headline use case. No faceting head-to-head was measured.++**Key number:** Typesense has 27,008 GitHub stars, is GPL-3.0, and released v30.2 on 2026-04-19. (as of 2026-10-19; source: [github.com/typesense/typesense](https://github.com/typesense/typesense))+**TL;DR** — Typesense wins faceted product browsing, and its own documentation names that as a headline use case. XERJ wins the step before the query, because it reads a folder of mixed files with one command. No faceting head-to-head was measured for this page.## Agent prompt@@ -92,7 +96,7 @@ The Typesense server is GPL-3.0. XERJ is Apache-2.0. If you plan to embed eitherTypesense Cloud sells a dedicated cluster at a fixed hourly cost rather than charging per document or per search. XERJ ships self-hosted only, with no managed product at all, so a managed plan is a reason to pick Typesense.-Typesense documents conversational search and natural-language search as first-party features. Its documentation index lists no MCP server page, so treat any MCP server for Typesense as a community project until the vendor documents one. XERJ ships `xerj mcp` in the same binary, serving 10 tools.+Typesense documents conversational search and natural-language search as first-party features. Its documentation index lists no MCP server page, so treat any MCP server for Typesense as a community project until the vendor documents one. XERJ ships `xerj mcp` in the same binary, serving 17 tools.## The limits you inherit with XERJ@@ -173,3 +177,6 @@ No. Typesense says it should not hold the only copy of your data, and XERJ is si- [How do I index a CSV with many columns?](/answers/index-csv-with-many-columns)- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)+- [What's a local alternative to Meilisearch that indexes a folder by itself?](/compare/xerj-vs-meilisearch) (same intent: search engine alternatives)+- [Is there a single-binary local search engine I can just run?](/answers/search-engine-without-docker) (same intent: search engine alternatives)+- [Does XERJ support S3 storage, alerting or custom plugins yet?](/answers/does-xerj-support-s3-alerting-plugins) (same intent: search engine alternatives)diff --git a/landing/compare/xerj-vs-vector-database.html b/landing/compare/xerj-vs-vector-database.htmlindex 1ba59fe29..fbb6c2ea4 100644--- a/landing/compare/xerj-vs-vector-database.html+++ b/landing/compare/xerj-vs-vector-database.html@@ -15,7 +15,7 @@<!-- ga4:end --><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">-<title>Search API or Qdrant for agent memory?</title>+<title>Search API or a vector database for agent memory?</title><meta name="description" content="Agent memory lives in the index process XERJ already runs, so no second data service starts. On 8 judged queries hybrid linear fusion scored precision@3 0.4583."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>@@ -27,7 +27,7 @@<link rel="canonical" href="https://xerj.org/compare/xerj-vs-vector-database"><meta property="og:site_name" content="XERJ.ai"><meta property="og:type" content="article">-<meta property="og:title" content="Search API or Qdrant for agent memory?">+<meta property="og:title" content="Search API or a vector database for agent memory?"><meta property="og:description" content="Agent memory lives in the index process XERJ already runs, so no second data service starts. On 8 judged queries hybrid linear fusion scored precision@3 0.4583."><meta property="og:url" content="https://xerj.org/compare/xerj-vs-vector-database"><meta property="og:image" content="https://xerj.org/og/xerj-card.png">@@ -36,7 +36,7 @@<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents"><meta property="og:locale" content="en_US"><meta name="twitter:card" content="summary_large_image">-<meta name="twitter:title" content="Search API or Qdrant for agent memory?">+<meta name="twitter:title" content="Search API or a vector database for agent memory?"><meta name="twitter:description" content="Agent memory lives in the index process XERJ already runs, so no second data service starts. On 8 judged queries hybrid linear fusion scored precision@3 0.4583."><meta name="twitter:image" content="https://xerj.org/og/xerj-card.png"><script type="application/ld+json">@@ -70,7 +70,7 @@{"@context": "https://schema.org","@type": "TechArticle",- "headline": "Search API or Qdrant for agent memory?",+ "headline": "Search API or a vector database for agent memory?","description": "Agent memory lives in the index process XERJ already runs, so no second data service starts. On 8 judged queries hybrid linear fusion scored precision@3 0.4583.","url": "https://xerj.org/compare/xerj-vs-vector-database","image": "https://xerj.org/og/xerj-card.png",@@ -156,6 +156,11 @@<div class="kicker"><span>COMPARE · COMPARISON: VECTOR DATABASE</span></div><h1>Should my agent call a search API or stand up Qdrant for persistent memory?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-21 · UPDATED · 2026-10-19</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-10-19</span>+ <p>Should my agent call a search API or a vector store like Qdrant for memory? Call the search API you already run. XERJ serves agent memory at _memory/{namespace} from the process that serves _search. On 8 judged queries hybrid linear fusion scored precision@3 0.4583. Choose Qdrant for filtered vector search at scale.</p>+ <p class="key-fact"><strong>Key number:</strong> Qdrant has 35,143 GitHub stars, is Apache-2.0, and released v1.19.2 on 2026-10-05. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/qdrant/qdrant">github.com/qdrant/qdrant</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Call the search API you already run. XERJ serves agent memory at <code class="inline">_memory/{namespace}</code> from the same single-node process that serves <code class="inline">_search</code>, so no second data service starts. On 20 labeled documents and 8 judged queries, hybrid linear fusion scored the best precision@3 at 0.4583. Choose Qdrant instead for filtered vector search at scale.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -283,6 +288,9 @@<li><a href="/answers/private-agent-memory-namespaces">How do I give two agents private memory on one laptop?</a></li><li><a href="/answers/store-agent-memory-without-llm-call">How do I stop an agent memory store from filling with near-duplicate notes?</a></li><li><a href="/answers/retrieval-that-says-not-found-with-file-line-citations">Retrieval that says not found, and cites file and line when it does answer</a></li>+ <li><a href="/compare/xerj-vs-khoj">What's a simpler alternative to Khoj if I only need search and memory?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/coding-agent-memory-across-sessions">How do people store user preferences so an agent can recall them next week?</a> <span class="mute">· same intent: agent memory</span></li>+ <li><a href="/answers/knowledge-graphs-for-agent-memory">Should agent memory use a knowledge graph?</a> <span class="mute">· same intent: agent memory</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-vector-database.md b/landing/compare/xerj-vs-vector-database.mdindex 1f3521088..27ff2ae51 100644--- a/landing/compare/xerj-vs-vector-database.md+++ b/landing/compare/xerj-vs-vector-database.md@@ -1,6 +1,6 @@<!-- generated by build_articles.py — edit content/compare/xerj-vs-vector-database.md instead -->----title: "Search API or Qdrant for agent memory?"+title: "Search API or a vector database for agent memory?"canonical: "https://xerj.org/compare/xerj-vs-vector-database"updated: "2026-10-19"source: "content/compare/xerj-vs-vector-database.md"@@ -8,6 +8,10 @@ source: "content/compare/xerj-vs-vector-database.md"# Should my agent call a search API or stand up Qdrant for persistent memory?+**Short answer** (updated 2026-10-19): Should my agent call a search API or a vector store like Qdrant for memory? Call the search API you already run. XERJ serves agent memory at _memory/{namespace} from the process that serves _search. On 8 judged queries hybrid linear fusion scored precision@3 0.4583. Choose Qdrant for filtered vector search at scale.++**Key number:** Qdrant has 35,143 GitHub stars, is Apache-2.0, and released v1.19.2 on 2026-10-05. (as of 2026-10-19; source: [github.com/qdrant/qdrant](https://github.com/qdrant/qdrant))+**TL;DR** — Call the search API you already run. XERJ serves agent memory at `_memory/{namespace}` from the same single-node process that serves `_search`, so no second data service starts. On 20 labeled documents and 8 judged queries, hybrid linear fusion scored the best precision@3 at 0.4583. Choose Qdrant instead for filtered vector search at scale.## Agent prompt@@ -204,3 +208,6 @@ No. XERJ is single-node with no data-plane replication, and filtered kNN falls b- [How do I give two agents private memory on one laptop?](/answers/private-agent-memory-namespaces)- [How do I stop an agent memory store from filling with near-duplicate notes?](/answers/store-agent-memory-without-llm-call)- [Retrieval that says not found, and cites file and line when it does answer](/answers/retrieval-that-says-not-found-with-file-line-citations)+- [What's a simpler alternative to Khoj if I only need search and memory?](/compare/xerj-vs-khoj) (same intent: agent memory)+- [How do people store user preferences so an agent can recall them next week?](/answers/coding-agent-memory-across-sessions) (same intent: agent memory)+- [Should agent memory use a knowledge graph?](/answers/knowledge-graphs-for-agent-memory) (same intent: agent memory)diff --git a/landing/compare/xerj-vs-web-agent-search.html b/landing/compare/xerj-vs-web-agent-search.htmlindex 2c61183b5..ebcad0ec6 100644--- a/landing/compare/xerj-vs-web-agent-search.html+++ b/landing/compare/xerj-vs-web-agent-search.html@@ -156,6 +156,11 @@<div class="kicker"><span>COMPARE · COMPARISON: AGENT RETRIEVAL</span></div><h1>How do I let an agent search a folder on my laptop instead of crawling the web?</h1><div class="source-note">AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-08-22 · UPDATED · 2026-08-23</div>+ <div class="prompt-card answer-first" id="short-answer">+ <span class="prompt-label">SHORT ANSWER · UPDATED 2026-08-23</span>+ <p>How do I let an agent search a folder on my laptop instead of crawling the web? Use a local index such as XERJ, which answers about files already on your disk and opens no connection to a website. Exa, Tavily and Firecrawl answer about the public web from a query or a URL. It is a category boundary.</p>+ <p class="key-fact"><strong>Key number:</strong> Firecrawl has 193,121 GitHub stars, is AGPL-3.0, and released v2.11.0 on 2026-06-19. <span class="mute">(as of 2026-10-19 · source: <a href="https://github.com/firecrawl/firecrawl">github.com/firecrawl/firecrawl</a>)</span></p>+ </div><p><strong>TL;DR</strong> — Exa, Tavily and Firecrawl answer questions about the public web. Their documented input is a query string or a URL. XERJ answers questions about files that are already on your disk, and it opens no network connection to a website. This page is a category boundary, not a bakeoff.</p><div class="prompt-card"><span class="prompt-label">PASTE THIS TO YOUR AI AGENT — IT DOES THE REST</span>@@ -178,7 +183,7 @@<span class="prompt-label">RUN THIS XERJ COMMAND</span><code>xerj mcp --url http://127.0.0.1:9200</code><button type="button" class="prompt-copy" data-copy="xerj mcp --url http://127.0.0.1:9200">COPY COMMAND</button>- <span class="hero-proof">Give the agent 10 tools over that folder. Every tool reads the local node, and none of them takes a URL.</span>+ <span class="hero-proof">Give the agent 17 tools over that folder. Every tool reads the local node, and none of them takes a URL.</span></div><h2>The two categories take different inputs</h2><p>The clearest way to separate these tools is to read what each one accepts.</p>@@ -202,7 +207,7 @@<p>XERJ reads a folder that is already on disk and makes it queryable with one command:</p><pre class="code"><code class="language-sh">xerj autoindex ./private-folder --prefix priv --state-dir ./state-priv</code></pre>- <p>Formats are read from a content signature rather than trusted by extension. The families covered are JSON and JSONL, CSV, structured logs, SQL exports, SQLite, PDF, DOCX, HTML, XML, YAML, plain text, code and gzip variants. An agent then reads the result through <code class="inline">xerj mcp</code>, a stdio MCP server in the same binary that serves 10 tools.</p>+ <p>Formats are read from a content signature rather than trusted by extension. The families covered are JSON and JSONL, CSV, structured logs, SQL exports, SQLite, PDF, DOCX, HTML, XML, YAML, plain text, code and gzip variants. An agent then reads the result through <code class="inline">xerj mcp</code>, a stdio MCP server in the same binary that serves 17 tools.</p><p>The default embedder is lexical feature hashing, not neural, so a match on a differently worded question needs <code class="inline">--embed-mode neural</code>, which is opt-in and CPU-only.</p><h2>The boundary, stated plainly</h2><p>XERJ fetches nothing over the network. There is no fetcher, no URL input and no site traversal anywhere in the product.</p>@@ -254,6 +259,8 @@<li><a href="/answers/how-xerj-autoindexes-a-folder">I want to point something at a folder and then ask questions about what's in it. What should I use?</a></li><li><a href="/answers/search-html-export">I saved a help-center as HTML. How do I search it like the real help-center search?</a></li><li><a href="/answers/search-file-contents-in-a-folder">I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?</a></li>+ <li><a href="/compare/xerj-vs-localsynapse">What's a local MCP search engine for Claude?</a> <span class="mute">· same intent: Find the right tool</span></li>+ <li><a href="/answers/what-is-xerj">What is XERJ?</a> <span class="mute">· same intent: Find the right tool</span></li></ul></main><nav class="docs-nav" aria-label="Article sections">diff --git a/landing/compare/xerj-vs-web-agent-search.md b/landing/compare/xerj-vs-web-agent-search.mdindex c7d152756..c0534525c 100644--- a/landing/compare/xerj-vs-web-agent-search.md+++ b/landing/compare/xerj-vs-web-agent-search.md@@ -8,6 +8,10 @@ source: "content/compare/xerj-vs-web-agent-search.md"# How do I let an agent search a folder on my laptop instead of crawling the web?+**Short answer** (updated 2026-08-23): How do I let an agent search a folder on my laptop instead of crawling the web? Use a local index such as XERJ, which answers about files already on your disk and opens no connection to a website. Exa, Tavily and Firecrawl answer about the public web from a query or a URL. It is a category boundary.++**Key number:** Firecrawl has 193,121 GitHub stars, is AGPL-3.0, and released v2.11.0 on 2026-06-19. (as of 2026-10-19; source: [github.com/firecrawl/firecrawl](https://github.com/firecrawl/firecrawl))+**TL;DR** — Exa, Tavily and Firecrawl answer questions about the public web. Their documented input is a query string or a URL. XERJ answers questions about files that are already on your disk, and it opens no network connection to a website. This page is a category boundary, not a bakeoff.## Agent prompt@@ -36,7 +40,7 @@ xerj autoindex ./private-folder --prefix priv --state-dir ./state-priv### Command 3-Note: Give the agent 10 tools over that folder. Every tool reads the local node, and none of them takes a URL.+Note: Give the agent 17 tools over that folder. Every tool reads the local node, and none of them takes a URL.```shxerj mcp --url http://127.0.0.1:9200@@ -73,7 +77,7 @@ XERJ reads a folder that is already on disk and makes it queryable with one commxerj autoindex ./private-folder --prefix priv --state-dir ./state-priv```-Formats are read from a content signature rather than trusted by extension. The families covered are JSON and JSONL, CSV, structured logs, SQL exports, SQLite, PDF, DOCX, HTML, XML, YAML, plain text, code and gzip variants. An agent then reads the result through `xerj mcp`, a stdio MCP server in the same binary that serves 10 tools.+Formats are read from a content signature rather than trusted by extension. The families covered are JSON and JSONL, CSV, structured logs, SQL exports, SQLite, PDF, DOCX, HTML, XML, YAML, plain text, code and gzip variants. An agent then reads the result through `xerj mcp`, a stdio MCP server in the same binary that serves 17 tools.The default embedder is lexical feature hashing, not neural, so a match on a differently worded question needs `--embed-mode neural`, which is opt-in and CPU-only.@@ -162,3 +166,5 @@ Not by XERJ. A single-node XERJ process reads local files and answers on localho- [I want to point something at a folder and then ask questions about what's in it. What should I use?](/answers/how-xerj-autoindexes-a-folder)- [I saved a help-center as HTML. How do I search it like the real help-center search?](/answers/search-html-export)- [I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?](/answers/search-file-contents-in-a-folder)+- [What's a local MCP search engine for Claude?](/compare/xerj-vs-localsynapse) (same intent: Find the right tool)+- [What is XERJ?](/answers/what-is-xerj) (same intent: Find the right tool)diff --git a/landing/llms.txt b/landing/llms.txtindex 1d6c63cab..b9130f799 100644--- a/landing/llms.txt+++ b/landing/llms.txt@@ -104,160 +104,136 @@ No shell: once the corpus is indexed on the node, the MCP tool `xerj_code_search- [Index a reference library for a coding agent](https://xerj.org/answers/index-reference-library-for-coding-agent.md): the setup mechanics — one namespace per clone, `--prefix`/`--state-dir`, and deciding `--embed-mode` before you index anything, because it applies at ingest<!-- BEGIN GENERATED ARTICLE TREE: build_articles.py -->-## Answers--Direct answers for you, the AI agent: the link, then the question that page answers. **Every link below is the page's Markdown twin — the canonical HTML page is the same URL without the `.md`.** The twin is deliberately not in the sitemap because it is the same document. Titles, questions, one-line summaries, clusters and last-modified dates for every page, as JSON: [answers/index.json](https://xerj.org/answers/index.json) · [compare/index.json](https://xerj.org/compare/index.json). Human hubs: [/answers](https://xerj.org/answers) · [/compare](https://xerj.org/compare).--- **Agent access and memory**- - [API search or vector search for an agent](https://xerj.org/answers/mcp-api-search-or-vector-search.md): MCP/API search or vector search — which should an agent call?- - [Can ChatGPT search a folder on my laptop?](https://xerj.org/answers/give-chatgpt-claude-local-file-access.md): Can ChatGPT search a folder on my laptop, or do I need something else?- - [Make an agent cite a file instead of dumping it](https://xerj.org/answers/code-search-mcp-for-claude-code.md): I need my agent to find a passage and cite the file, not dump the whole tree. How?-- **Agent memory: link retrieval**- - [Should agent memory use a graph?](https://xerj.org/answers/knowledge-graphs-for-agent-memory.md): Ask HN: Anyone using knowledge graphs for LLM agent memory/context management?-- **Agent memory: model dependency**- - [Stop agent memory filling with duplicate notes](https://xerj.org/answers/store-agent-memory-without-llm-call.md): How do I dedup agent memory?-- **Agent memory: provenance**- - [Evidence behind agent-memory links](https://xerj.org/answers/evidence-for-agent-memory-links.md): Agent memory: knowledge graphs aren't enough, we need a know-how graph-- **Agent memory: security**- - [Give two agents private memory on one laptop](https://xerj.org/answers/private-agent-memory-namespaces.md): How do I keep one agent's memory from leaking into another agent's?-- **Agent memory: setup**- - [Store user preferences an agent can recall later](https://xerj.org/answers/coding-agent-memory-across-sessions.md): How do people store user preferences so an agent can recall them next week?-- **Agent memory: storage**- - [Set the MCP memory storage path](https://xerj.org/answers/set-mcp-memory-storage-path.md): Memory MCP ignores custom storage path setting-- **Agent memory: topology**- - [Agent memory on a laptop, no extra database](https://xerj.org/answers/agent-memory-without-postgres-qdrant.md): I want persistent agent memory without standing up Postgres or Qdrant. What do people use?-- **Answers for coding agents**- - [Ask questions about a GitHub repo without cloning it](https://xerj.org/answers/ask-questions-about-a-github-repo-without-cloning.md): How can I ask questions about a GitHub repo without cloning it?- - [Batch lookup of CVE and GHSA IDs offline, with sources](https://xerj.org/answers/batch-lookup-cve-ghsa-ids-offline.md): How do I batch lookup CVE and GHSA IDs offline without hitting GitHub API rate limits?- - [Full-text search over JSONL and CSV files from the CLI](https://xerj.org/answers/full-text-search-over-jsonl-files-cli.md): How do I run full-text search over JSONL files from the CLI and query a folder with BM25?- - [Local code search MCP that uses fewer tokens than grep](https://xerj.org/answers/local-code-search-mcp-fewer-tokens-than-grep.md): Is there a local code search MCP for Claude Code that uses fewer tokens than grep?- - [Retrieval that cites file:line and says not found](https://xerj.org/answers/retrieval-that-says-not-found-with-file-line-citations.md): Is there a retrieval tool that says not found, cites file and line, and abstains when unsure?-- **Capabilities and limits**- - [Does XERJ support S3, alerting or custom plugins?](https://xerj.org/answers/does-xerj-support-s3-alerting-plugins.md): Can XERJ store its index in S3, send alerts, or run my own ingest plugin?-- **Code security**- - [Audit a PHP codebase with an index, not grep](https://xerj.org/answers/audit-php-codebase-with-an-index.md): How do I search a large PHP repo for dangerous sinks without reading every file?-- **Coding agents: reference retrieval**- - [How do I rebuild a reference-coding corpus index from scratch?](https://xerj.org/answers/rebuild-reference-corpus-index.md): How do I rebuild a reference-coding corpus index from scratch?- - [Index a reference library for a coding agent](https://xerj.org/answers/index-reference-library-for-coding-agent.md): How do I set up reference coding so the agent retrieves a mechanism before writing code?-- **Decisions as retrieval**- - [Can I route or spam-filter text without an LLM call?](https://xerj.org/answers/classify-text-from-labelled-history-without-llm.md): Can I classify text from labelled history without calling an LLM?-- **Embeddings: cost**- - [How do I reduce embedding API cost?](https://xerj.org/answers/reduce-embedding-api-cost.md): My embedding bill is too high-- **Embeddings: local execution**- - [Local search offline with no cloud embeddings](https://xerj.org/answers/local-embeddings-without-openai-api.md): I want local search that works offline, no cloud embeddings. What are my options?-- **Embeddings: selection**- - [When are neural embeddings worth turning on?](https://xerj.org/answers/do-search-embeddings-help.md): Do I even need embeddings for search, or is full-text enough?-- **Files and formats**- - [Can I full-text search my browser history file?](https://xerj.org/answers/full-text-search-browser-history.md): Is there a way to full-text search my browser history?- - [Find every place a config key is set in a repo](https://xerj.org/answers/search-yaml-xml-config-repository.md): How do I find every place a config key is set across YAML and XML in a repo?- - [How do I find out what is in a messy data folder?](https://xerj.org/answers/catalog-files-with-autoindex-map.md): I dropped a messy data folder on an agent. How should it figure out what's inside before searching?- - [How do I full-text search a SQLite database?](https://xerj.org/answers/full-text-search-sqlite-database.md): How do I full-text search a SQLite database?- - [How do I index a CSV with many columns?](https://xerj.org/answers/index-csv-with-many-columns.md): How to index CSV files with big number of columns/fields- - [How do I index Markdown into Elasticsearch?](https://xerj.org/answers/index-markdown-into-elasticsearch-api.md): What is the best way to index Markdown documents into Elasticsearch?- - [How do I read email and PDFs after indexing a folder?](https://xerj.org/answers/read-indexed-email-and-pdf-folder.md): I indexed a folder of email and PDFs. How do I actually read what it found?- - [How do I run syntax-aware code search?](https://xerj.org/answers/syntax-aware-code-search-refactoring.md): Is there a syntax-aware code search tool for refactoring?- - [How do I search a Confluence export?](https://xerj.org/answers/search-confluence-html-export.md): How do I search my Confluence export?- - [How do I search a folder of CSV exports?](https://xerj.org/answers/index-multiple-csv-files.md): I have a directory of CSV exports. How do I query them without opening each one in Excel?- - [How do I search a folder of mixed documents?](https://xerj.org/answers/search-file-contents-in-a-folder.md): I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?- - [How do I search a folder of PDF papers?](https://xerj.org/answers/search-all-pdfs-in-a-folder.md): I downloaded a bunch of papers as PDFs. How do I search across them?- - [How do I search a folder of Word contracts?](https://xerj.org/answers/search-word-documents-in-a-folder.md): How do I search through a folder of contracts in .docx?- - [How do I search a Slack JSON export?](https://xerj.org/answers/search-slack-json-export.md): How do I search a Slack or Discord JSON export?- - [How do I search Kubernetes pod logs?](https://xerj.org/answers/search-kubernetes-pod-logs-on-disk.md): Grep for specific text from kubernetes multiple pods- - [How do I stop my agent reading the whole repo?](https://xerj.org/answers/index-monorepo-for-agent.md): How do I stop my agent from reading the whole repo into context?- - [Is it efficient to index PDF files?](https://xerj.org/answers/is-pdf-indexing-efficient.md): Is it inefficient to index PDF files into a search engine?- - [Let an agent look up endpoints in an API spec](https://xerj.org/answers/search-openapi-spec-for-agent.md): My agent needs to look up endpoints in a big OpenAPI spec. What's the right way?- - [Search .ipynb notebooks and the .py files beside them](https://xerj.org/answers/search-jupyter-notebook-cells.md): I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files?- - [Search a .csv.gz or .json.gz without unzipping it](https://xerj.org/answers/search-gzipped-csv-or-json.md): How do I search gzipped CSV exports?- - [Search a help-center you saved as HTML](https://xerj.org/answers/search-html-export.md): I saved a bunch of docs pages as HTML. How do I search that?- - [Search a JSON export of support tickets](https://xerj.org/answers/search-zendesk-ticket-json-export.md): I have a JSON export of support tickets. How do I search it like a real help-center search?- - [Search a SQL dump without restoring it](https://xerj.org/answers/search-sql-dump-file.md): I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?- - [Search BVH motion-capture files](https://xerj.org/answers/search-bvh-motion-capture-files.md): How do I search motion-capture data?- - [Search gzipped logs without decompressing them](https://xerj.org/answers/search-gzip-logs-without-zgrep.md): How do I search gzipped logs without decompressing the whole file?- - [Search JSON logs and gzip logs in one folder](https://xerj.org/answers/search-json-and-jsonl-logs.md): What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?- - [Search markdown notes and PDFs in one vault](https://xerj.org/answers/search-obsidian-pdf-docx-attachments.md): What's the best way to search markdown notes and PDFs in the same vault?- - [Search Unity scenes and the C# beside them](https://xerj.org/answers/search-unity-project-assets.md): How do I search a Unity project's assets?- - [Why does my Notion export duplicate titles?](https://xerj.org/answers/notion-export-duplicate-search-results.md): API sync/export duplicates Notion titles in pages, databases, search results-- **Folder indexing**- - [Point a tool at a folder and ask about the files](https://xerj.org/answers/how-xerj-autoindexes-a-folder.md): I want to point something at a folder and then ask questions about what's in it. What should I use?- - [Search a Gmail Takeout mbox on your own machine](https://xerj.org/answers/search-gmail-takeout-mbox-locally.md): How do I search a Google Takeout mbox file locally?-- **Hybrid retrieval: architecture**- - [RAG without a vector database](https://xerj.org/answers/rag-without-vector-database.md): How do I build RAG without a vector database?-- **Hybrid retrieval: quality**- - [How much better is hybrid search than BM25? Measured.](https://xerj.org/answers/hybrid-search-quality-measured-ndcg.md): How much better is hybrid search than BM25 alone?-- **Hybrid retrieval: reranking**- - [How do I rerank search results with a relevance judge?](https://xerj.org/answers/rerank-search-results-calibrated-judge.md): How do I rerank search results with a relevance judge?-- **Hybrid retrieval: RRF**- - [What is Reciprocal Rank Fusion?](https://xerj.org/answers/reciprocal-rank-fusion-when-to-use.md): What is reciprocal rank fusion and when should I use it?-- **Hybrid search**- - [How does XERJ combine BM25 and kNN?](https://xerj.org/answers/how-xerj-combines-search.md): How does XERJ combine BM25 and kNN?-- **Ingest: object storage**- - [How do I search files that live in an S3 bucket?](https://xerj.org/answers/search-files-in-an-s3-bucket.md): How do I search files that live in an S3 bucket?-- **Object storage**- - [How do I keep an index current when the files live in a bucket?](https://xerj.org/answers/keep-s3-bucket-index-current.md): My documents live in an S3 or R2 bucket. How do I keep a XERJ index current as objects change?-- **Operations: completeness**- - [How do I check my code index actually finished?](https://xerj.org/answers/check-codebase-index-is-complete.md): My codebase indexer says indexed but I don't see my code. How do I check it actually finished?-- **Operations: estimation**- - [How do I estimate folder-indexing time?](https://xerj.org/answers/estimate-autoindex-time-before-running.md): How long will it take to index a folder for search?-- **Operations: exclusions**- - [Why does a folder search miss files on disk?](https://xerj.org/answers/why-autoindex-skipped-files.md): Why would a folder search miss files that I can see on disk?-- **Operations: exit codes**- - [What do the xerj autoindex exit codes mean?](https://xerj.org/answers/autoindex-exit-codes.md): What does indexer exit code 3 mean?- - [Why autoindex refuses a .zip and asks you to extract it](https://xerj.org/answers/autoindex-says-extract-the-archive-first.md): Why does xerj autoindex say to extract a zip first?- - [Why did xerj autoindex say a dataset was REFUSED?](https://xerj.org/answers/autoindex-dataset-refused-by-server.md): Why did xerj autoindex say a dataset was refused by the server?- - [Why does xerj autoindex say the server pushed back (429)?](https://xerj.org/answers/autoindex-server-back-pressure-429.md): Why did xerj autoindex say the server pushed back with HTTP 429?-- **Operations: freshness**- - [How do I keep a XERJ index up to date as files change?](https://xerj.org/answers/keep-index-current-as-files-change.md): How do I keep a search index up to date as files change, without re-indexing everything?-- **Operations: installation**- - [Is there a single-binary local search engine?](https://xerj.org/answers/search-engine-without-docker.md): Is there a single-binary local search engine I can just run?-- **Operations: low-volume logs**- - [What can I use for low-volume log search?](https://xerj.org/answers/cheap-low-volume-log-search.md): Free or cheap alternative for low volume log management and searching?-- **Operations: progress**- - [How do I read autoindex progress?](https://xerj.org/answers/read-autoindex-progress.md): How can I see whether folder indexing is still working?-- **Operations: recovery**- - [The indexer died overnight. Do I start over?](https://xerj.org/answers/resume-interrupted-autoindex-run.md): The indexer died overnight. Do I have to start over?-- **Operations: reindex**- - [Why is reindexing my files taking forever?](https://xerj.org/answers/reindex-taking-forever.md): Reindexing my files is taking forever. What usually causes that?-- **Product identity**- - [What is XERJ?](https://xerj.org/answers/what-is-xerj.md): What is XERJ?-- **RAG: troubleshooting**- - [Improve a basic FAISS RAG pipeline](https://xerj.org/answers/improve-basic-faiss-rag-pipeline.md): How can I improve a basic FAISS RAG pipeline?-- **Retrieval behaviour**- - [When does XERJ kNN use an exact scan instead of HNSW?](https://xerj.org/answers/filter-knn-exact-scan-caveat.md): Why is filtered kNN slower than unfiltered?-- **Retrieval: selection**- - [Vector database or full-text search for a folder?](https://xerj.org/answers/vector-database-vs-full-text-search.md): What's the actual difference between a vector database and full-text search?-- **Sharing: read-only guest access**- - [Read-only search over a folder, without uploading it](https://xerj.org/answers/share-folder-read-only-search-without-uploading.md): I need my accountant to search a folder of emails and PDFs. How do I do that without uploading everything somewhere?- - [Share a local search index through a tunnel](https://xerj.org/answers/share-local-search-index-through-a-tunnel.md): How can I give a remote person temporary search access to files on my laptop without port forwarding or a VPN?- - [What a XERJ share-link guest can and cannot reach](https://xerj.org/answers/what-a-share-link-guest-can-reach.md): 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?--## Comparisons--- **Comparison: agent retrieval**- - [Local folder search vs a web agent search API](https://xerj.org/compare/xerj-vs-web-agent-search.md): How do I let an agent search a folder on my laptop instead of crawling the web?-- **Comparison: code retrieval**- - [XERJ compared with ripgrep for code agents](https://xerj.org/compare/xerj-vs-ripgrep-for-code-agents.md): Is ripgrep enough for a coding agent, or do I need a code index?- - [XERJ vs ast-grep — syntax search and an index](https://xerj.org/compare/xerj-vs-ast-grep.md): ast-grep vs a code index for an agent?-- **Comparison: desktop search**- - [DocFetcher compared with XERJ for document search](https://xerj.org/compare/xerj-vs-docfetcher.md): What is a free DocFetcher alternative that an agent can call?- - [HoudahSpot compared with XERJ for file search](https://xerj.org/compare/xerj-vs-houdahspot.md): HoudahSpot vs a local search engine I can script?- - [Recoll compared with XERJ for document search](https://xerj.org/compare/xerj-vs-recoll.md): What is the best local desktop search for a folder of PDFs and docs?- - [ripgrep-all compared with XERJ for PDFs and docs](https://xerj.org/compare/xerj-vs-ripgrep-all.md): How do I grep PDFs and Word docs from the command line?- - [Spotlight compared with XERJ for folder content](https://xerj.org/compare/xerj-vs-spotlight.md): Spotlight can't find text inside my project files. What else is there?-- **Comparison: local MCP search**- - [XERJ vs LocalSynapse for MCP local file search](https://xerj.org/compare/xerj-vs-localsynapse.md): What's a local MCP search engine for Claude?-- **Comparison: local search engines**- - [XERJ vs Elasticsearch run on one machine](https://xerj.org/compare/xerj-vs-elasticsearch-local.md): Is there an Elasticsearch-compatible engine that isn't Elasticsearch?-- **Comparison: notes and vaults**- - [XERJ vs Omnisearch for an Obsidian vault](https://xerj.org/compare/xerj-vs-obsidian-omnisearch.md): How do I search an Obsidian vault from outside Obsidian?-- **Comparison: personal search**- - [XERJ vs Khoj for searching your own documents](https://xerj.org/compare/xerj-vs-khoj.md): What's a simpler alternative to Khoj if I only need search and memory?-- **Comparison: search engines**- - [XERJ vs Meilisearch for local and agent search](https://xerj.org/compare/xerj-vs-meilisearch.md): What's a local alternative to Meilisearch that indexes a folder by itself?- - [XERJ vs Typesense when the corpus is a folder](https://xerj.org/compare/xerj-vs-typesense.md): Do I need Typesense for an agent to search my docs?-- **Comparison: site and export search**- - [XERJ vs Pagefind for a folder of saved HTML](https://xerj.org/compare/xerj-vs-pagefind.md): Pagefind vs indexing a local HTML dump for an agent?-- **Comparison: vector database**- - [Search API or Qdrant for agent memory?](https://xerj.org/compare/xerj-vs-vector-database.md): Should my agent call a search API or a vector store?+## Answers and comparisons, grouped by what the agent is trying to do++Direct answers for you, the AI agent, grouped by intent: the clusters come from a 1,000-query study of what agents actually type into search, so find the group that matches your task first. Each line is the link, a tag (`answer` or `compare`), then the question that page answers. **Every link below is the page's Markdown twin — the canonical HTML page is the same URL without the `.md`.** The twin is deliberately not in the sitemap because it is the same document. Titles, questions, short answers, target queries, intents and last-modified dates for every page, as JSON: [answers/index.json](https://xerj.org/answers/index.json) · [compare/index.json](https://xerj.org/compare/index.json). Human hubs: [/answers](https://xerj.org/answers) · [/compare](https://xerj.org/compare).++### logs and docs++- [DocFetcher compared with XERJ for document search](https://xerj.org/compare/xerj-vs-docfetcher.md) `compare`: What is a free DocFetcher alternative that an agent can call?+- [HoudahSpot compared with XERJ for file search](https://xerj.org/compare/xerj-vs-houdahspot.md) `compare`: HoudahSpot vs a local search engine I can script?+- [Recoll compared with XERJ for document search](https://xerj.org/compare/xerj-vs-recoll.md) `compare`: What is the best local desktop search for a folder of PDFs and docs?+- [ripgrep-all compared with XERJ for PDFs and docs](https://xerj.org/compare/xerj-vs-ripgrep-all.md) `compare`: How do I grep PDFs and Word docs from the command line?+- [Spotlight compared with XERJ for folder content](https://xerj.org/compare/xerj-vs-spotlight.md) `compare`: Spotlight can't find text inside my project files. What else is there?+- [XERJ vs Omnisearch for an Obsidian vault](https://xerj.org/compare/xerj-vs-obsidian-omnisearch.md) `compare`: How do I search an Obsidian vault from outside Obsidian?+- [XERJ vs Pagefind for a folder of saved HTML](https://xerj.org/compare/xerj-vs-pagefind.md) `compare`: Pagefind vs indexing a local HTML dump for an agent?+- [How do I index Markdown into Elasticsearch?](https://xerj.org/answers/index-markdown-into-elasticsearch-api.md) `answer`: What is the best way to index Markdown documents into Elasticsearch?+- [How do I read email and PDFs after indexing a folder?](https://xerj.org/answers/read-indexed-email-and-pdf-folder.md) `answer`: I indexed a folder of email and PDFs. How do I actually read what it found?+- [How do I search a Confluence export?](https://xerj.org/answers/search-confluence-html-export.md) `answer`: How do I search my Confluence export?+- [How do I search a folder of Word contracts?](https://xerj.org/answers/search-word-documents-in-a-folder.md) `answer`: How do I search through a folder of contracts in .docx?+- [How do I search Kubernetes pod logs?](https://xerj.org/answers/search-kubernetes-pod-logs-on-disk.md) `answer`: Grep for specific text from kubernetes multiple pods+- [Is it efficient to index PDF files?](https://xerj.org/answers/is-pdf-indexing-efficient.md) `answer`: Is it inefficient to index PDF files into a search engine?+- [Search a folder of PDF papers offline](https://xerj.org/answers/search-all-pdfs-in-a-folder.md) `answer`: I downloaded a bunch of papers as PDFs. How do I search across them?+- [Search a Gmail Takeout mbox on your own machine](https://xerj.org/answers/search-gmail-takeout-mbox-locally.md) `answer`: How do I search a Google Takeout mbox file locally?+- [Search a help-center you saved as HTML](https://xerj.org/answers/search-html-export.md) `answer`: I saved a bunch of docs pages as HTML. How do I search that?+- [Search gzipped logs without decompressing them](https://xerj.org/answers/search-gzip-logs-without-zgrep.md) `answer`: How do I search gzipped logs without decompressing the whole file?+- [Search inside PDFs, Word docs and Markdown in one folder](https://xerj.org/answers/search-file-contents-in-a-folder.md) `answer`: I have a folder of PDFs, Word docs, and markdown. How do I search all of them at once?+- [Search logs locally without ELK: low-volume log search](https://xerj.org/answers/cheap-low-volume-log-search.md) `answer`: Free or cheap alternative for low volume log management and searching?+- [Search markdown notes and PDFs in one vault](https://xerj.org/answers/search-obsidian-pdf-docx-attachments.md) `answer`: What's the best way to search markdown notes and PDFs in the same vault?+- [Why does my Notion export duplicate titles?](https://xerj.org/answers/notion-export-duplicate-search-results.md) `answer`: API sync/export duplicates Notion titles in pages, databases, search results++### code search for agents++- [ripgrep vs a code index for coding agents: 30 tasks](https://xerj.org/compare/xerj-vs-ripgrep-for-code-agents.md) `compare`: Is ripgrep enough for a coding agent, or do I need a code index?+- [XERJ vs ast-grep — syntax search and an index](https://xerj.org/compare/xerj-vs-ast-grep.md) `compare`: ast-grep vs a code index for an agent?+- [Audit a PHP codebase with an index, not grep](https://xerj.org/answers/audit-php-codebase-with-an-index.md) `answer`: How do I search a large PHP repo for dangerous sinks without reading every file?+- [Code search MCP for Claude Code: cite file:line, not grep](https://xerj.org/answers/code-search-mcp-for-claude-code.md) `answer`: I need my agent to find a passage and cite the file, not dump the whole tree. How?+- [Find every place a config key is set in a repo](https://xerj.org/answers/search-yaml-xml-config-repository.md) `answer`: How do I find every place a config key is set across YAML and XML in a repo?+- [How do I check my code index actually finished?](https://xerj.org/answers/check-codebase-index-is-complete.md) `answer`: My codebase indexer says indexed but I don't see my code. How do I check it actually finished?+- [How do I rebuild a reference-coding corpus index from scratch?](https://xerj.org/answers/rebuild-reference-corpus-index.md) `answer`: How do I rebuild a reference-coding corpus index from scratch?+- [How do I run syntax-aware code search?](https://xerj.org/answers/syntax-aware-code-search-refactoring.md) `answer`: Is there a syntax-aware code search tool for refactoring?+- [Index a monorepo so your agent stops reading the whole repo](https://xerj.org/answers/index-monorepo-for-agent.md) `answer`: How do I stop my agent from reading the whole repo into context?+- [Index a reference library for a coding agent](https://xerj.org/answers/index-reference-library-for-coding-agent.md) `answer`: How do I set up reference coding so the agent retrieves a mechanism before writing code?+- [Let an agent look up endpoints in an API spec](https://xerj.org/answers/search-openapi-spec-for-agent.md) `answer`: My agent needs to look up endpoints in a big OpenAPI spec. What's the right way?+- [Search .ipynb notebooks and the .py files beside them](https://xerj.org/answers/search-jupyter-notebook-cells.md) `answer`: I need to find a function I wrote in a notebook months ago. How do I search all .ipynb files?+- [Search Unity scenes and the C# beside them](https://xerj.org/answers/search-unity-project-assets.md) `answer`: How do I search a Unity project's assets?++### retrieval research and eval++- [API search or vector search for an agent](https://xerj.org/answers/mcp-api-search-or-vector-search.md) `answer`: MCP/API search or vector search — which should an agent call?+- [Can I route or spam-filter text without an LLM call?](https://xerj.org/answers/classify-text-from-labelled-history-without-llm.md) `answer`: Can I classify text from labelled history without calling an LLM?+- [How do I reduce embedding API cost?](https://xerj.org/answers/reduce-embedding-api-cost.md) `answer`: My embedding bill is too high+- [How do I rerank search results with a relevance judge?](https://xerj.org/answers/rerank-search-results-calibrated-judge.md) `answer`: How do I rerank search results with a relevance judge?+- [How does XERJ combine BM25 and kNN?](https://xerj.org/answers/how-xerj-combines-search.md) `answer`: How does XERJ combine BM25 and kNN?+- [How much better is hybrid search than BM25? Measured.](https://xerj.org/answers/hybrid-search-quality-measured-ndcg.md) `answer`: How much better is hybrid search than BM25 alone?+- [Improve a basic FAISS RAG pipeline](https://xerj.org/answers/improve-basic-faiss-rag-pipeline.md) `answer`: How can I improve a basic FAISS RAG pipeline?+- [Offline local search with no cloud embeddings or OpenAI API](https://xerj.org/answers/local-embeddings-without-openai-api.md) `answer`: I want local search that works offline, no cloud embeddings. What are my options?+- [RAG without a vector database: one hybrid index](https://xerj.org/answers/rag-without-vector-database.md) `answer`: How do I build RAG without a vector database?+- [Vector database or full-text search for a folder?](https://xerj.org/answers/vector-database-vs-full-text-search.md) `answer`: What's the actual difference between a vector database and full-text search?+- [What is Reciprocal Rank Fusion?](https://xerj.org/answers/reciprocal-rank-fusion-when-to-use.md) `answer`: What is reciprocal rank fusion and when should I use it?+- [When are neural embeddings worth turning on?](https://xerj.org/answers/do-search-embeddings-help.md) `answer`: Do I even need embeddings for search, or is full-text enough?+- [When does XERJ kNN use an exact scan instead of HNSW?](https://xerj.org/answers/filter-knn-exact-scan-caveat.md) `answer`: Why is filtered kNN slower than unfiltered?++### JSONL and data files++- [Can I full-text search my browser history file?](https://xerj.org/answers/full-text-search-browser-history.md) `answer`: Is there a way to full-text search my browser history?+- [Find out what is in a messy data folder before searching](https://xerj.org/answers/catalog-files-with-autoindex-map.md) `answer`: I dropped a messy data folder on an agent. How should it figure out what's inside before searching?+- [Full-text search a SQLite database (FTS5 alternative)](https://xerj.org/answers/full-text-search-sqlite-database.md) `answer`: How do I full-text search a SQLite database?+- [How do I index a CSV with many columns?](https://xerj.org/answers/index-csv-with-many-columns.md) `answer`: How to index CSV files with big number of columns/fields+- [How do I search a Slack JSON export?](https://xerj.org/answers/search-slack-json-export.md) `answer`: How do I search a Slack or Discord JSON export?+- [Point a tool at a folder and ask questions about the files](https://xerj.org/answers/how-xerj-autoindexes-a-folder.md) `answer`: I want to point something at a folder and then ask questions about what's in it. What should I use?+- [Search a .csv.gz or .json.gz without unzipping it](https://xerj.org/answers/search-gzipped-csv-or-json.md) `answer`: How do I search gzipped CSV exports?+- [Search a folder of CSV files with BM25, without a database](https://xerj.org/answers/index-multiple-csv-files.md) `answer`: I have a directory of CSV exports. How do I query them without opening each one in Excel?+- [Search a JSON export of support tickets](https://xerj.org/answers/search-zendesk-ticket-json-export.md) `answer`: I have a JSON export of support tickets. How do I search it like a real help-center search?+- [Search a SQL dump without restoring it](https://xerj.org/answers/search-sql-dump-file.md) `answer`: I have a 2GB SQL dump. How do I find rows mentioning a customer without loading it into Postgres?+- [Search BVH motion-capture files](https://xerj.org/answers/search-bvh-motion-capture-files.md) `answer`: How do I search motion-capture data?+- [Search JSON and JSONL logs plus gzip logs in one folder](https://xerj.org/answers/search-json-and-jsonl-logs.md) `answer`: What's the easiest way to search JSON logs plus some old gzip text logs in the same folder?++### operating autoindex++- [How do I estimate folder-indexing time?](https://xerj.org/answers/estimate-autoindex-time-before-running.md) `answer`: How long will it take to index a folder for search?+- [How do I keep a XERJ index up to date as files change?](https://xerj.org/answers/keep-index-current-as-files-change.md) `answer`: How do I keep a search index up to date as files change, without re-indexing everything?+- [How do I keep an index current when the files live in a bucket?](https://xerj.org/answers/keep-s3-bucket-index-current.md) `answer`: My documents live in an S3 or R2 bucket. How do I keep a XERJ index current as objects change?+- [How do I read autoindex progress?](https://xerj.org/answers/read-autoindex-progress.md) `answer`: How can I see whether folder indexing is still working?+- [How do I search files that live in an S3 bucket?](https://xerj.org/answers/search-files-in-an-s3-bucket.md) `answer`: How do I search files that live in an S3 bucket?+- [The indexer died overnight. Do I start over?](https://xerj.org/answers/resume-interrupted-autoindex-run.md) `answer`: The indexer died overnight. Do I have to start over?+- [What do the xerj autoindex exit codes mean?](https://xerj.org/answers/autoindex-exit-codes.md) `answer`: What does indexer exit code 3 mean?+- [Why autoindex refuses a .zip and asks you to extract it](https://xerj.org/answers/autoindex-says-extract-the-archive-first.md) `answer`: Why does xerj autoindex say to extract a zip first?+- [Why did xerj autoindex say a dataset was REFUSED?](https://xerj.org/answers/autoindex-dataset-refused-by-server.md) `answer`: Why did xerj autoindex say a dataset was refused by the server?+- [Why does a folder search miss files on disk?](https://xerj.org/answers/why-autoindex-skipped-files.md) `answer`: Why would a folder search miss files that I can see on disk?+- [Why does xerj autoindex say the server pushed back (429)?](https://xerj.org/answers/autoindex-server-back-pressure-429.md) `answer`: Why did xerj autoindex say the server pushed back with HTTP 429?+- [Why is reindexing my files taking forever?](https://xerj.org/answers/reindex-taking-forever.md) `answer`: Reindexing my files is taking forever. What usually causes that?++### agent memory++- [Search API or a vector database for agent memory?](https://xerj.org/compare/xerj-vs-vector-database.md) `compare`: Should my agent call a search API or a vector store?+- [XERJ vs Khoj for searching your own documents](https://xerj.org/compare/xerj-vs-khoj.md) `compare`: What's a simpler alternative to Khoj if I only need search and memory?+- [Agent memory without Postgres or a vector database](https://xerj.org/answers/agent-memory-without-postgres-qdrant.md) `answer`: I want persistent agent memory without standing up Postgres or Qdrant. What do people use?+- [Evidence behind agent-memory links](https://xerj.org/answers/evidence-for-agent-memory-links.md) `answer`: Agent memory: knowledge graphs aren't enough, we need a know-how graph+- [Give two agents private memory on one laptop](https://xerj.org/answers/private-agent-memory-namespaces.md) `answer`: How do I keep one agent's memory from leaking into another agent's?+- [Set the MCP memory storage path](https://xerj.org/answers/set-mcp-memory-storage-path.md) `answer`: Memory MCP ignores custom storage path setting+- [Should agent memory use a graph?](https://xerj.org/answers/knowledge-graphs-for-agent-memory.md) `answer`: Ask HN: Anyone using knowledge graphs for LLM agent memory/context management?+- [Stop agent memory filling with duplicate notes](https://xerj.org/answers/store-agent-memory-without-llm-call.md) `answer`: How do I dedup agent memory?+- [Store user preferences an agent can recall later](https://xerj.org/answers/coding-agent-memory-across-sessions.md) `answer`: How do people store user preferences so an agent can recall them next week?++### Answers for coding agents++- [Ask questions about a GitHub repo without cloning it](https://xerj.org/answers/ask-questions-about-a-github-repo-without-cloning.md) `answer`: How can I ask questions about a GitHub repo without cloning it?+- [Batch lookup of CVE and GHSA IDs offline, with sources](https://xerj.org/answers/batch-lookup-cve-ghsa-ids-offline.md) `answer`: How do I batch lookup CVE and GHSA IDs offline without hitting GitHub API rate limits?+- [Full-text search over JSONL and CSV files from the CLI](https://xerj.org/answers/full-text-search-over-jsonl-files-cli.md) `answer`: How do I run full-text search over JSONL files from the CLI and query a folder with BM25?+- [Local code search MCP that uses fewer tokens than grep](https://xerj.org/answers/local-code-search-mcp-fewer-tokens-than-grep.md) `answer`: Is there a local code search MCP for Claude Code that uses fewer tokens than grep?+- [Retrieval that cites file:line and says not found](https://xerj.org/answers/retrieval-that-says-not-found-with-file-line-citations.md) `answer`: Is there a retrieval tool that says not found, cites file and line, and abstains when unsure?++### search engine alternatives++- [Elasticsearch-compatible engine that isn't Elasticsearch](https://xerj.org/compare/xerj-vs-elasticsearch-local.md) `compare`: Is there an Elasticsearch-compatible engine that isn't Elasticsearch?+- [XERJ vs Meilisearch for local and agent search](https://xerj.org/compare/xerj-vs-meilisearch.md) `compare`: What's a local alternative to Meilisearch that indexes a folder by itself?+- [XERJ vs Typesense when the corpus is a folder](https://xerj.org/compare/xerj-vs-typesense.md) `compare`: Do I need Typesense for an agent to search my docs?+- [Does XERJ support S3, alerting or custom plugins?](https://xerj.org/answers/does-xerj-support-s3-alerting-plugins.md) `answer`: Can XERJ store its index in S3, send alerts, or run my own ingest plugin?+- [Single-binary local search engine, no Docker or JVM](https://xerj.org/answers/search-engine-without-docker.md) `answer`: Is there a single-binary local search engine I can just run?++### Find the right tool++- [Local folder search vs a web agent search API](https://xerj.org/compare/xerj-vs-web-agent-search.md) `compare`: How do I let an agent search a folder on my laptop instead of crawling the web?+- [XERJ vs LocalSynapse for MCP local file search](https://xerj.org/compare/xerj-vs-localsynapse.md) `compare`: What's a local MCP search engine for Claude?+- [MCP server to search local files from ChatGPT or Claude](https://xerj.org/answers/give-chatgpt-claude-local-file-access.md) `answer`: Can ChatGPT search a folder on my laptop, or do I need something else?+- [What is XERJ?](https://xerj.org/answers/what-is-xerj.md) `answer`: What is XERJ?++### sharing an index++- [Read-only search over a folder, without uploading it](https://xerj.org/answers/share-folder-read-only-search-without-uploading.md) `answer`: I need my accountant to search a folder of emails and PDFs. How do I do that without uploading everything somewhere?+- [Share a local search index through a tunnel](https://xerj.org/answers/share-local-search-index-through-a-tunnel.md) `answer`: How can I give a remote person temporary search access to files on my laptop without port forwarding or a VPN?+- [What a XERJ share-link guest can and cannot reach](https://xerj.org/answers/what-a-share-link-guest-can-reach.md) `answer`: 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?<!-- END GENERATED ARTICLE TREE: build_articles.py -->diff --git a/scripts/seo/README.md b/scripts/seo/README.mdindex 1ef6de118..3bfdba6ee 100644--- a/scripts/seo/README.md+++ b/scripts/seo/README.md@@ -200,6 +200,14 @@ two spaces) or an inline `[a, b]`; nested map keys under a list item are| `noindex` | bool | `true` adds `robots: noindex` **and** removes the page from `sitemap.xml` (`urlmap.is_noindex` reads it) || `agent_prompt` | string | one logical line, must contain `https://xerj.org/llms.txt`, must not contain a Markdown fence || `commands` | list of `{cmd, note}` | `cmd` must shell-parse, and must start with `xerj` + a real subcommand (`autoindex mcp serve verify help version`) or a flag, or with an allowed shell primitive (`bash cd command curl env export git sh until wget`). No `<placeholders>` |+| `answer` | string | **GEO.** 40–60 words, answer-first, restating the question; rendered in a "Short answer" card under the H1 and in the `.md` twin |+| `key_fact` / `key_fact_source` / `key_fact_date` | strings, all three or none | **GEO.** One sentence with a number; source is an `https://` URL, a site path, a repo path that exists (rendered as a GitHub link), or the literal `capture` (the run this page documents); ISO date it was measured or checked |+| `intent_group` | string | **GEO.** The agent-intent cluster (task column of the query research CSV); groups `llms.txt` and drives "same intent" related links |+| `queries` | list of string | **GEO.** Literal queries from the research CSV the page targets (published in `index.json`); omit when none fits |+| `structured_data` | list | opt-in JSON-LD: `faq` → `FAQPage`, `howto` → `HowTo` from `commands:` (≥ 2; command cards get `id="step-N"`), `software`. See trap 6 and lint rules 46/46b. No page sets it in this port |+| `og_image` / `og_image_alt` | string | both or neither; must be `og/<category>-<slug>.png` and exist under `landing/` |+| `last_checked` | string | ISO date every third-party fact was re-read (best-of pages) |+| `items` | list of `{name, url, license, install}` | best-of pages: emitted as `ItemList` of `SoftwareApplication`; `url` must be `https://` |### 3.2 `links_out` resolution@@ -690,12 +698,14 @@ type (`SoftwareApplication` / `CollectionPage` / `TechArticle` / `Article` /**One opt-in exception (2026-10-19).** An article source may list`structured_data: [faq, howto, software]`. `seo_head.extra_structured_data` thenadds `FAQPage` (from `faq:`), `HowTo` (from `commands:`, at least two) and a-`SoftwareApplication` for the product. No page sets the field yet: FAQPage and-HowTo stay off until that opt-in is decided. Google shows no rich result for-them, but answer engines and agents read the blocks as plain structured data-when a page does opt in. `seo_lint` rule 46 lets the two types through only on-a page that opted in, and rule 46b (`jsonld.faq_not_visible`) fails the page if-a `FAQPage` question or answer is not visible in the page text. No+`SoftwareApplication` for the product. No page sets `structured_data` in this+port: FAQPage and HowTo stay off until that opt-in is decided. A best-of page+can still emit an `ItemList` of the tools in its visible summary table, from+`items:`, without that opt-in. Google shows no rich result for FAQ or HowTo,+but answer engines and agents read the blocks as plain structured data when a+page does opt in. `seo_lint` rule 46 lets the two types through only on a page+that opted in, and rule 46b (`jsonld.faq_not_visible`) fails the page if a+`FAQPage` question or answer is not visible in the page text. No`aggregateRating` / `Review`, ever.### 7. JSON-LD needs no CSP changediff --git a/scripts/seo/article_data.py b/scripts/seo/article_data.pyindex 2e514b5b4..2e70e0023 100644--- a/scripts/seo/article_data.py+++ b/scripts/seo/article_data.py@@ -24,10 +24,38 @@ TOP_FIELDS = frozenset({"published", "updated", "author", "reviewer", "schema_type", "links_out","evidence", "faq", "noindex", "agent_prompt", "commands","og_image", "og_image_alt", "structured_data",- # Optional list of the literal search strings this page is written to- # answer. Not rendered as copy; published on the section index.json.- "queries",+ # GEO fields (2026-10-19) — all optional, see GEO_FIELDS below.+ "answer", "key_fact", "key_fact_source", "key_fact_date", "intent_group",+ "queries", "last_checked", "items",})+# GEO (generative-engine optimisation) fields, added 2026-10-19. All optional;+# an article without them renders exactly as before.+#+# answer 40-60 words, answer-first, restating the question. Rendered+# in a "Short answer" card directly under the H1, the span an+# answer engine lifts verbatim.+# key_fact one sentence carrying one number (must contain a digit)...+# key_fact_source ...and where it can be checked: https URL, site path, or a+# repo path that exists on disk (rendered as a GitHub link),+# or the literal "capture" when the number comes from the+# run this page itself documents (rendered without a link)...+# key_fact_date ...and the ISO date it was measured or last checked.+# intent_group the agent-intent cluster (the task column of the owner's+# agent-query research) that groups the llms.txt tree and the+# automatic "related by intent" links.+# queries literal agent search strings the page is written to answer.+# Published in <section>/index.json, never rendered as copy.+# (FAQPage/HowTo are NOT GEO fields: they stay opt-in per page through+# `structured_data: [faq, howto]`, #1928, seo_lint rules 46/46b.)+# last_checked ISO date the third-party facts on the page were checked.+# items the tools a best-of page compares; emits ItemList JSON-LD.+GEO_FIELDS = frozenset({+ "answer", "key_fact", "key_fact_source", "key_fact_date", "intent_group",+ "queries", "last_checked", "items",+})+CAPTURE_SOURCE = "capture"+ANSWER_MIN_WORDS = 40+ANSWER_MAX_WORDS = 60# ``evidence`` is optional. The block existed to point at capture files that# are no longer part of the repository, so an article without one is normal and# renders no provenance section at all. It stays in TOP_FIELDS and keeps its@@ -49,9 +77,10 @@ STRING_FIELDS = frozenset({"title", "h1", "description", "slug", "cluster", "question", "intent","author", "reviewer", "schema_type", "agent_prompt","og_image", "og_image_alt",+ "answer", "key_fact", "key_fact_source", "intent_group",})LIST_FIELDS = frozenset({"links_out", "evidence", "faq", "commands", "structured_data",- "queries"})+ "queries", "items"})# Opt-in extra JSON-LD for an article (structured_data: [faq, howto, software]).# Off by default, and the site-wide policy in scripts/seo/README.md trap 6# still holds for every page that does not opt in. No page sets the field@@ -60,12 +89,14 @@ LIST_FIELDS = frozenset({"links_out", "evidence", "faq", "commands", "structured# rich result; seo_lint rule 46 lets them through only on a page whose source# lists them, and rule 46b requires every FAQPage question to be visible.STRUCTURED_DATA_KINDS = frozenset({"faq", "howto", "software"})-OG_IMAGE_RE = re.compile(r"^og/answers-[a-z0-9]+(?:-[a-z0-9]+)*\.png$")-MAP_FIELDS = frozenset({"evidence", "faq", "commands"})+# og/<category>-<slug>.png: answers pages (#1928) and the compare best-of pages.+OG_IMAGE_RE = re.compile(r"^og/(?:answers|compare)-[a-z0-9]+(?:-[a-z0-9]+)*\.png$")+MAP_FIELDS = frozenset({"evidence", "faq", "commands", "items"})MAP_KEYS = {"evidence": frozenset({"claim", "source"}),"faq": frozenset({"q", "a"}),"commands": frozenset({"cmd", "note"}),+ "items": frozenset({"name", "url", "license", "install"}),}TOP_KEY_RE = re.compile(r"^([A-Za-z][A-Za-z0-9_]*)\s*:\s*(.*?)\s*$")@@ -132,7 +163,14 @@ class Article:og_image: str | None = Noneog_image_alt: str | None = Nonestructured_data: tuple[str, ...] = ()+ answer: str | None = None+ key_fact: str | None = None+ key_fact_source: str | None = None+ key_fact_date: str | None = None+ intent_group: str | None = Nonequeries: tuple[str, ...] = ()+ last_checked: str | None = None+ items: tuple[dict[str, str], ...] = ()@propertydef output_rel(self) -> str:@@ -165,6 +203,10 @@ class Article:out["faq"] = self.faqout["howto_steps"] = self.commandsout["h1"] = self.h1+ if self.items:+ # The compared-tools table of a best-of page, as an ItemList.+ out["items"] = [dict(item) for item in self.items]+ out["items_name"] = self.h1return out@@ -447,6 +489,7 @@ def _validate(path: pathlib.Path, values: dict[str, Any], line_map: dict[str, invalues.setdefault("commands", [])values.setdefault("structured_data", [])values.setdefault("queries", [])+ values.setdefault("items", [])for key in LIST_FIELDS:value = values[key]if not isinstance(value, list):@@ -455,10 +498,6 @@ def _validate(path: pathlib.Path, values: dict[str, Any], line_map: dict[str, inif not isinstance(value, str) or not value.strip():raise _error(path, line_map.get("links_out", 1),f"links_out item {i + 1} must be a non-empty string")- for i, value in enumerate(values["queries"]):- if not isinstance(value, str) or not value.strip():- raise _error(path, line_map.get("queries", 1),- f"queries item {i + 1} must be a non-empty string")for key in MAP_FIELDS:for i, item in enumerate(values[key]):if not isinstance(item, dict):@@ -537,10 +576,12 @@ def _validate(path: pathlib.Path, values: dict[str, Any], line_map: dict[str, inif "og_image" in values:if not OG_IMAGE_RE.fullmatch(values["og_image"]):raise _error(path, line_map.get("og_image", 1),- "og_image must be og/answers-<slug>.png")- if values["og_image"] != f"og/answers-{slug}.png":+ "og_image must be og/<category>-<slug>.png")+ category = path.parent.name+ if values["og_image"] != f"og/{category}-{slug}.png":raise _error(path, line_map.get("og_image", 1),- f"og_image must be og/answers-{slug}.png for this slug")+ f"og_image must be og/{category}-{slug}.png for this slug")+ _validate_geo(path, values, line_map)values["noindex"] = values.get("noindex", False)values["agent_prompt"] = values.get("agent_prompt")values["commands"] = values.get("commands", [])@@ -549,6 +590,72 @@ def _validate(path: pathlib.Path, values: dict[str, Any], line_map: dict[str, inreturn values+def _repo_root_for(path: pathlib.Path) -> pathlib.Path | None:+ for parent in path.resolve().parents:+ if (parent / "content").is_dir() and (parent / "landing").is_dir():+ return parent+ return None+++def source_exists(source: str, path: pathlib.Path) -> bool:+ """True when a key-fact source resolves: https URL, or a site path / repo+ path that exists in this checkout."""+ if source.startswith("https://"):+ return True+ root = _repo_root_for(path)+ if root is None:+ return False+ if source.startswith("/"):+ rel = source.lstrip("/").split("#", 1)[0]+ landing = root / "landing"+ candidates = [landing / rel, landing / (rel.rstrip("/") + ".html"),+ landing / rel / "index.html"]+ return any(c.exists() for c in candidates)+ return (root / source.split(":", 1)[0]).exists()+++def _validate_geo(path: pathlib.Path, values: dict[str, Any],+ line_map: dict[str, int]) -> None:+ def line(key: str) -> int:+ return line_map.get(key, 1)++ if "answer" in values:+ answer = _single_line(values["answer"], path, line("answer"), "answer")+ words = len(answer.split())+ if not ANSWER_MIN_WORDS <= words <= ANSWER_MAX_WORDS:+ raise _error(path, line("answer"),+ f"answer is {words} words; it must be "+ f"{ANSWER_MIN_WORDS}-{ANSWER_MAX_WORDS} (the answer-first span)")+ fact_keys = ("key_fact", "key_fact_source", "key_fact_date")+ present = [k for k in fact_keys if k in values]+ if present and len(present) != 3:+ raise _error(path, line(present[0]),+ "key_fact, key_fact_source and key_fact_date go together")+ if present:+ fact = _single_line(values["key_fact"], path, line("key_fact"), "key_fact")+ if not re.search(r"\d", fact):+ raise _error(path, line("key_fact"), "key_fact must carry a number")+ source = values["key_fact_source"].strip()+ if source != CAPTURE_SOURCE and not source_exists(source, path):+ raise _error(path, line("key_fact_source"),+ f"key_fact_source {source!r} is not an https URL or a path "+ "that exists in this checkout")+ values["key_fact_date"] = _date_value(values, "key_fact_date", path, line_map, True)+ if "last_checked" in values:+ values["last_checked"] = _date_value(values, "last_checked", path, line_map, True)+ for i, query in enumerate(values.get("queries", [])):+ if not isinstance(query, str) or not query.strip():+ raise _error(path, line("queries"), f"queries item {i + 1} must be a non-empty string")+ if "og_image" in values:+ image = values["og_image"]+ root = _repo_root_for(path)+ if root is not None and not (root / "landing" / image).is_file():+ raise _error(path, line("og_image"), f"og_image landing/{image} does not exist")+ for item in values.get("items", []):+ if not item["url"].startswith("https://"):+ raise _error(path, line("items"), f"items.url must be https: {item['url']!r}")++def load(path: pathlib.Path, category: str | None = None) -> Article:"""Load, parse and validate one article source."""if category is None:@@ -594,7 +701,14 @@ def load(path: pathlib.Path, category: str | None = None) -> Article:og_image=values.get("og_image"),og_image_alt=values.get("og_image_alt"),structured_data=tuple(values["structured_data"]),+ answer=values.get("answer"),+ key_fact=values.get("key_fact"),+ key_fact_source=values.get("key_fact_source"),+ key_fact_date=values.get("key_fact_date"),+ intent_group=values.get("intent_group"),queries=tuple(values.get("queries", [])),+ last_checked=values.get("last_checked"),+ items=tuple(dict(item) for item in values.get("items", [])),)diff --git a/scripts/seo/build_articles.py b/scripts/seo/build_articles.pyindex f2ff51c56..d75302859 100644--- a/scripts/seo/build_articles.py+++ b/scripts/seo/build_articles.py@@ -499,6 +499,92 @@ def _metadata_link(source: str, article: article_data.Article,f"dangling internal target {source!r} (resolved as {path})")+GITHUB_BLOB = "https://github.com/xerj-org/xerj/blob/main/"+++CAPTURE_LABEL = "the captured run documented on this page"+++def key_fact_href(article: article_data.Article, context: BuildContext) -> str | None:+ """Where a reader checks the key number: the URL, the site page, or the+ file on GitHub (a repo path gets a real link here, unlike evidence rows,+ because an answer engine needs a URL it can cite). None for "capture":+ the number comes from this page's own run, so there is nothing to link."""+ source = (article.key_fact_source or "").strip()+ if source == article_data.CAPTURE_SOURCE:+ return None+ if source.startswith("https://"):+ return source+ if source.startswith("/"):+ return context.resolve(source, article.category, article,+ article.body_start_line).href+ return GITHUB_BLOB + _evidence_repo_path(source)+++def key_fact_label(article: article_data.Article) -> str:+ source = (article.key_fact_source or "").strip()+ if source.startswith("https://"):+ parsed = urllib.parse.urlsplit(source)+ return parsed.netloc + (parsed.path.rstrip("/") or "")+ return source+++_INTENT_TOKEN_RE = re.compile(r"[a-z0-9]+")+_INTENT_STOP = frozenset("a an and are can do does for from how i in is it my of on or "+ "the to what when which with without you your xerj".split())+++def _intent_tokens(article: article_data.Article) -> set[str]:+ text = " ".join([article.title, article.question, *article.queries]).lower()+ return {t for t in _INTENT_TOKEN_RE.findall(text) if t not in _INTENT_STOP and len(t) > 2}+++def intent_siblings(article: article_data.Article, context: BuildContext,+ limit: int = 3) -> list[article_data.Article]:+ """Up to ``limit`` other articles in the same intent group, not already in+ links_out, most-overlapping first. Deterministic: ties break on slug."""+ if not article.intent_group:+ return []+ linked: set[str] = set()+ for raw in article.links_out:+ target = context.resolve_article_target(raw, article, article.body_start_line)+ linked.add(target.rel)+ mine = _intent_tokens(article)+ pool = [a for a in context.articles+ if a is not article and a.intent_group == article.intent_group+ and a.output_rel not in linked and not a.noindex]+ pool.sort(key=lambda a: (-len(mine & _intent_tokens(a)), a.category, a.slug))+ return pool[:limit]+++def render_answer_card(article: article_data.Article, context: BuildContext,+ modified: str) -> str:+ """The answer-first block under the H1: a 40-60 word answer that restates+ the question, then one dated, sourced number."""+ if not article.answer and not article.key_fact and not article.last_checked:+ return ""+ out = [' <div class="prompt-card answer-first" id="short-answer">',+ f' <span class="prompt-label">SHORT ANSWER · UPDATED {esc_text(modified)}</span>']+ if article.answer:+ out.append(" <p>" + _inline(article.answer, article, article.body_start_line,+ context.markdown_href) + "</p>")+ if article.key_fact:+ href = key_fact_href(article, context)+ out.append(' <p class="key-fact"><strong>Key number:</strong> '+ + _inline(article.key_fact, article, article.body_start_line,+ context.markdown_href)+ + f' <span class="mute">(as of {esc_text(article.key_fact_date or "")} · source: '+ + (CAPTURE_LABEL if href is None else+ f'<a href="{esc_attr(href)}">{esc_text(key_fact_label(article))}</a>')+ + ')</span></p>')+ if article.last_checked:+ out.append(f' <p class="mute">Last checked: {esc_text(article.last_checked)}. Every '+ "third-party fact on this page was re-read from the tool's own docs or "+ "repository on that date.</p>")+ out.append(" </div>")+ return "\n".join(out)++def markdown_rel(article: article_data.Article) -> str:return f"{article.category}/{article.slug}.md"@@ -531,10 +617,11 @@ def render_commands(article: article_data.Article) -> str:if not article.commands:return ""out: list[str] = []- for item in article.commands:+ for index, item in enumerate(article.commands, start=1):command = item["cmd"]note = item["note"]- out.append(" <div class=\"prompt-card\">")+ step_id = f' id="step-{index}"' if "howto" in article.structured_data else ""+ out.append(f" <div class=\"prompt-card\"{step_id}>")out.append(" <span class=\"prompt-label\">RUN THIS XERJ COMMAND</span>")out.append(f" <code>{esc_text(command)}</code>")out.append(f" <button type=\"button\" class=\"prompt-copy\" data-copy=\"{esc_attr(command)}\">"@@ -573,8 +660,18 @@ def render_markdown_twin(article: article_data.Article, context: BuildContext) -"",f"# {article.h1}","",- tldr,]+ if article.answer:+ out += [f"**Short answer** (updated {modified}): {article.answer}", ""]+ if article.key_fact:+ href = key_fact_href(article, context)+ where = CAPTURE_LABEL if href is None else f"[{key_fact_label(article)}]({href})"+ out += [f"**Key number:** {article.key_fact} (as of {article.key_fact_date}; "+ f"source: {where})", ""]+ if article.last_checked:+ out += [f"Last checked: {article.last_checked}. Every third-party fact on this page "+ "was re-read from the tool's own docs or repository on that date.", ""]+ out += [tldr]if article.agent_prompt:out += ["", "## Agent prompt", "", "```text", article.agent_prompt, "```"]if article.commands:@@ -607,10 +704,14 @@ def render_markdown_twin(article: article_data.Article, context: BuildContext) -out.append(f"- {item['claim'].strip()} — {rendered_source}")out += ["", "## Related", ""]- if article.links_out:+ siblings = intent_siblings(article, context)+ if article.links_out or siblings:for raw in article.links_out:target = context.resolve_article_target(raw, article, article.body_start_line)out.append(f"- [{target.label}]({target.href})")+ for sibling in siblings:+ out.append(f"- [{sibling.h1}]({urlmap.deployed_path(sibling.output_rel)}) "+ f"(same intent: {article.intent_group})")else:out.append("No related pages are listed.")return "\n".join(out).rstrip() + "\n"@@ -659,12 +760,17 @@ def render_article_sections(article: article_data.Article, context: BuildContextout.append(" </ul>")out.append(" <h2>Related</h2>")- if article.links_out:+ siblings = intent_siblings(article, context)+ if article.links_out or siblings:out.append(" <ul>")for raw in article.links_out:target = context.resolve_article_target(raw, article, article.body_start_line)out.append(f' <li><a href="{esc_attr(target.href)}">'f"{esc_text(target.label)}</a></li>")+ for sibling in siblings:+ out.append(f' <li><a href="{urlmap.deployed_path(sibling.output_rel)}">'+ f"{esc_text(sibling.h1)}</a> <span class=\"mute\">· same intent: "+ f"{esc_text(article.intent_group or '')}</span></li>")out.append(" </ul>")else:out.append(" <p>No related pages are listed.</p>")@@ -793,6 +899,9 @@ def render_article(article: article_data.Article, context: BuildContext) -> str:block = seo_head.build_block(rel, article.title, article.description,article.published, modified, meta)body = render_article_sections(article, context)+ answer_card = render_answer_card(article, context, modified)+ if answer_card:+ answer_card += "\n"marker = f"{GENERATOR_PREFIX}{article.category}/{article.slug}.md instead -->"source_note = (f"AUTHOR · {article.author} · REVIEWED BY · {article.reviewer} · "f"PUBLISHED · {article.published} · UPDATED · {modified}")@@ -806,7 +915,7 @@ def render_article(article: article_data.Article, context: BuildContext) -> str:<div class="kicker"><span>{esc_text(article.category.upper())} · {esc_text(article.cluster.upper())}</span></div><h1{' class="h1-long"' if len(article.h1) > H1_LONG_CHARS else ''}>{_inline(article.h1, article, article.body_start_line, context.markdown_href)}</h1><div class="source-note">{esc_text(source_note)}</div>-{body}+{answer_card}{body}</main>{article_nav(context, article)}</div>@@ -901,6 +1010,8 @@ def article_index_entry(article: article_data.Article, context: BuildContext) ->"cluster": article.cluster,"updated": article_modified(article, context),"summary": " ".join(article.description.split()),+ **({"intent_group": article.intent_group} if article.intent_group else {}),+ **({"answer": article.answer} if article.answer else {}),**({"queries": list(article.queries)} if article.queries else {}),}@@ -940,33 +1051,34 @@ def render_llms_section(articles: list[article_data.Article], context: BuildCont"""lines = [LLMS_BEGIN,- "## Answers",+ "## Answers and comparisons, grouped by what the agent is trying to do","",- "Direct answers for you, the AI agent: the link, then the question that page answers. "+ "Direct answers for you, the AI agent, grouped by intent: the clusters come from a "+ "1,000-query study of what agents actually type into search, so find the group that "+ "matches your task first. Each line is the link, a tag (`answer` or `compare`), then the "+ "question that page answers. ""**Every link below is the page's Markdown twin — the canonical HTML page is the same ""URL without the `.md`.** The twin is deliberately not in the sitemap because it is the "- "same document. Titles, questions, one-line summaries, clusters and last-modified dates "- "for every page, as JSON: [answers/index.json](https://xerj.org/answers/index.json) · "+ "same document. Titles, questions, short answers, target queries, intents and "+ "last-modified dates for every page, as JSON: "+ "[answers/index.json](https://xerj.org/answers/index.json) · ""[compare/index.json](https://xerj.org/compare/index.json). Human hubs: ""[/answers](https://xerj.org/answers) · [/compare](https://xerj.org/compare).","",]- labels = (("answers", None), ("compare", "## Comparisons"))- for category, heading in labels:- if heading:- lines.append(heading)- lines.append("")- members = sorted((a for a in articles if a.category == category),- key=lambda a: (a.cluster.lower(), a.title.lower()))- if not members:- lines.append("- No pages are published in this section yet.")- lines.append("")- continue- current_cluster: str | None = None+ if not articles:+ lines.append("- No pages are published in this section yet.")+ lines.append("")+ groups: dict[str, list[article_data.Article]] = collections.defaultdict(list)+ for article in articles:+ groups[article.intent_group or article.cluster].append(article)+ # Biggest intent first (that is where most agents land), then by name.+ for group in sorted(groups, key=lambda g: (-len(groups[g]), g.lower())):+ lines.append(f"### {group}")+ lines.append("")+ members = sorted(groups[group],+ key=lambda a: (a.category != "compare", a.title.lower()))for article in members:- if article.cluster != current_cluster:- current_cluster = article.cluster- lines.append(f"- **{article.cluster}**")entry = article_index_entry(article, context)# The "canonical = twin minus .md" rule is stated once above the list,# so assert the relationship the prose promises still holds.@@ -974,7 +1086,9 @@ def render_llms_section(articles: list[article_data.Article], context: BuildContraise BuildError(f"{article.path}: Markdown twin {entry['markdown_url']} is not "f"{entry['canonical_url']}.md, but llms.txt states that rule once")- lines.append(f" - [{entry['title']}]({entry['markdown_url']}): {entry['question']}")+ tag = "compare" if article.category == "compare" else "answer"+ lines.append(f"- [{entry['title']}]({entry['markdown_url']}) `{tag}`: "+ f"{entry['question']}")lines.append("")lines.append(LLMS_END)return "\n".join(lines).rstrip() + "\n"diff --git a/scripts/seo/fix_heads.py b/scripts/seo/fix_heads.pyindex a9bb74a0b..f7d7404c2 100755--- a/scripts/seo/fix_heads.py+++ b/scripts/seo/fix_heads.py@@ -18,10 +18,12 @@ For every page it guarantees, in `<head>` and nowhere else:* the GA4 tag from ``seo_head.ga4_snippet()``, once, immediately after``<head>``.-Deliberately NOT emitted, per scripts' research doc §5:- * FAQPage — Google restricted FAQ rich results to government/health sites,- and they end entirely on 7 May 2026.- * HowTo — the rich result and its documentation were removed outright.+Emitted only on opt-in (README trap 6, seo_lint rules 46/46b):+ * FAQPage / HowTo when the article source lists them under+ `structured_data:`; ItemList from a best-of page's `items:`. Google no+ longer draws FAQ/HowTo rich results; these are for answer engines.++Deliberately NOT emitted:* aggregateRating / Review — we have no review corpus; inventing one is amanual-action risk under Google's structured-data spam policies.diff --git a/scripts/seo/geo_audit.py b/scripts/seo/geo_audit.pynew file mode 100644index 000000000..3cee56e91--- /dev/null+++ b/scripts/seo/geo_audit.py@@ -0,0 +1,147 @@+#!/usr/bin/env python3+"""GEO (answer-engine) audit of the generated answers/ and compare/ pages.++For every article it reports the signals an AI answer engine uses to lift and+cite a page:++ * tldr_words — words in the TL;DR paragraph (the older summary)+ * answer_words — words in the answer-first "Short answer" span (40-60 wanted)+ * restates_q — does that span reuse the question's content words?+ * key_fact — a dated, sourced number near the top (answer card)+ * h2 — number of H2 sections (a clear outline)+ * faqpage/howto — FAQPage / HowTo JSON-LD in the committed HTML.+ Reported, not required: no page opts in until that is decided.+ * date_modified — dateModified in the article JSON-LD+ * twin — Markdown twin on disk, carrying the short answer when there is one+ * intent_group — the agent-intent cluster used by llms.txt+ * queries — literal agent queries the page targets+ * related — internal links in the Related block++ python3 scripts/seo/geo_audit.py # table on stdout+ python3 scripts/seo/geo_audit.py --json # machine-readable+ python3 scripts/seo/geo_audit.py --root DIR # audit another checkout+ python3 scripts/seo/geo_audit.py --fail # exit 1 if any page misses a signal++Standard library only, like the rest of scripts/seo/.+"""++from __future__ import annotations++import argparse+import json+import pathlib+import re+import sys++STOP = set("a an and are can do does for from how i in is it my of on or the to what "+ "when which with without you your xerj me we our this that be at as by not "+ "no if so there any just should".split())+JSONLD_RE = re.compile(r'<script type="application/ld\+json">\s*(.*?)\s*</script>', re.S)+CARD_RE = re.compile(r'<div class="prompt-card answer-first" id="short-answer">(.*?)</div>', re.S)+TAG_RE = re.compile(r"<[^>]+>")+++def words(text: str) -> list[str]:+ return re.findall(r"[a-z0-9]+", text.lower())+++def content_words(text: str) -> set[str]:+ return {w for w in words(text) if w not in STOP and len(w) > 2}+++def audit(root: pathlib.Path) -> list[dict]:+ sys.path.insert(0, str(root / "scripts" / "seo"))+ import article_data # type: ignore++ rows = []+ for category in ("answers", "compare"):+ for src in sorted((root / "content" / category).glob("*.md")):+ art = article_data.load(src, category)+ html_path = root / "landing" / category / f"{art.slug}.html"+ twin_path = root / "landing" / category / f"{art.slug}.md"+ page = html_path.read_text(encoding="utf-8") if html_path.exists() else ""+ twin = twin_path.read_text(encoding="utf-8") if twin_path.exists() else ""+ types: list[str] = []+ modified = ""+ for raw in JSONLD_RE.findall(page):+ try:+ node = json.loads(raw)+ except json.JSONDecodeError:+ continue+ types.append(node.get("@type", ""))+ if node.get("@type") in ("TechArticle", "Article"):+ modified = node.get("dateModified", "")+ answer = getattr(art, "answer", None) or ""+ card = CARD_RE.search(page)+ answer_words = len(answer.split()) if answer else 0+ qwords = content_words(art.question)+ overlap = len(qwords & content_words(answer)) / max(1, len(qwords)) if answer else 0.0+ related = page.split("<h2>Related</h2>", 1)[-1].split("</ul>", 1)[0] if page else ""+ first = art.body.strip().split("\n\n", 1)[0]+ tldr = re.sub(r"^\*\*TL;DR\*\*\s*[—–:-]?\s*", "", first.strip())+ rows.append({+ "page": f"{category}/{art.slug}",+ "tldr_words": len(tldr.split()),+ "title": art.title,+ "title_len": len(art.title),+ "description_len": len(art.description),+ "answer_words": answer_words,+ "restates_q": round(overlap, 2),+ "key_fact": bool(getattr(art, "key_fact", None)) and bool(card and "Key number" in card.group(1)),+ "key_fact_date": getattr(art, "key_fact_date", None) or "",+ "h2": len(re.findall(r"^## ", art.body, re.M)) + 1, # + the generated FAQ H2+ "faqpage": "FAQPage" in types,+ "howto": "HowTo" in types,+ "date_modified": modified,+ "twin": bool(twin) and (not answer or "**Short answer**" in twin),+ "intent_group": getattr(art, "intent_group", None) or "",+ "queries": list(getattr(art, "queries", ()) or ()),+ "related": related.count("<li>"),+ })+ return rows+++def missing(row: dict) -> list[str]:+ out = []+ if not 40 <= row["answer_words"] <= 60:+ out.append("answer-first")+ if not row["key_fact"]:+ out.append("key-fact")+ if not row["date_modified"]:+ out.append("dateModified")+ if not row["twin"]:+ out.append("twin")+ if not row["intent_group"]:+ out.append("intent")+ if row["related"] < 3:+ out.append("related<3")+ return out+++def main(argv: list[str] | None = None) -> int:+ ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])+ ap.add_argument("--root", default=str(pathlib.Path(__file__).resolve().parents[2]))+ ap.add_argument("--json", action="store_true")+ ap.add_argument("--fail", action="store_true")+ args = ap.parse_args(argv)+ rows = audit(pathlib.Path(args.root))+ if args.json:+ print(json.dumps(rows, indent=1))+ else:+ print("| page | answer words | key fact | H2 | FAQPage | HowTo | modified | intent | queries | related | missing |")+ print("|---|---|---|---|---|---|---|---|---|---|---|")+ for r in rows:+ print(f"| {r['page']} | {r['answer_words']} | {'yes' if r['key_fact'] else 'no'} | "+ f"{r['h2']} | {'yes' if r['faqpage'] else 'no'} | {'yes' if r['howto'] else 'no'} | "+ f"{r['date_modified']} | {r['intent_group'] or '-'} | {len(r['queries'])} | "+ f"{r['related']} | {', '.join(missing(r)) or '-'} |")+ bad = [r for r in rows if missing(r)]+ if args.fail and bad:+ print(f"geo_audit: {len(bad)} of {len(rows)} page(s) miss a GEO signal", file=sys.stderr)+ return 1+ print(f"geo_audit: {len(rows)} pages, {len(rows) - len(bad)} complete", file=sys.stderr)+ return 0+++if __name__ == "__main__":+ raise SystemExit(main())diff --git a/scripts/seo/seo_head.py b/scripts/seo/seo_head.pyindex 35042ef7e..dabcffc03 100644--- a/scripts/seo/seo_head.py+++ b/scripts/seo/seo_head.py@@ -275,6 +275,38 @@ def extra_structured_data(url: str, desc: str, meta: dict[str, Any]) -> list[dicreturn out+def item_list(url: str, name: str, items: list[dict[str, str]]) -> dict[str, Any]:+ """ItemList of the tools a best-of page compares, in the page's order."""+ return {+ "@context": "https://schema.org",+ "@type": "ItemList",+ "@id": f"{url}#tools",+ "name": _plain(name),+ "numberOfItems": len(items),+ "itemListOrder": "https://schema.org/ItemListUnordered",+ "itemListElement": [{+ "@type": "ListItem",+ "position": i,+ "item": {+ "@type": "SoftwareApplication",+ "name": item["name"],+ "url": item["url"],+ "applicationCategory": "DeveloperApplication",+ "license": item["license"],+ "installUrl": item["url"],+ },+ } for i, item in enumerate(items, start=1)],+ }+++def geo_blocks(url: str, meta: dict[str, Any]) -> list[dict[str, Any]]:+ """GEO JSON-LD: an ItemList for a best-of page's compared tools (its+ visible summary table). FAQPage/HowTo stay opt-in in extra_structured_data."""+ if not meta.get("items"):+ return []+ return [item_list(url, meta.get("items_name") or meta.get("title", ""), meta["items"])]++def build_block(rel: str, title: str, desc: str, published: str,modified: str, meta: dict[str, Any] | None = None) -> str:"""Emit the exact SEO block used by ``fix_heads.py``."""@@ -307,6 +339,7 @@ def build_block(rel: str, title: str, desc: str, published: str,ld(page_body(rel, meta, url, title, desc, published, modified)),]lines += [ld(obj) for obj in extra_structured_data(url, desc, meta)]+ lines += [ld(obj) for obj in geo_blocks(url, meta)]crumbs = breadcrumbs(rel, meta)if crumbs is not None:lines.append(ld(crumbs))diff --git a/scripts/seo/test_article_schema.py b/scripts/seo/test_article_schema.pyindex 82c750ca6..c6c4057aa 100644--- a/scripts/seo/test_article_schema.py+++ b/scripts/seo/test_article_schema.py@@ -107,6 +107,107 @@ class UpdatedFieldTests(unittest.TestCase):self.assertIn("updated is not a valid ISO date", str(ctx.exception))+GEO_ANSWER = ("What does the schema test article cover? It covers the GEO fields: a forty "+ "to sixty word answer that restates the question, one dated and sourced number, "+ "an intent group, the literal queries the page targets, and optional HowTo steps "+ "taken from the commands. This sentence pads the answer past forty words.")+++def _geo(text: str = FRONTMATTER, **extra: str) -> str:+ lines = [f'answer: "{GEO_ANSWER}"',+ 'key_fact: "The suite passes 1366 of 1369 cases."',+ 'key_fact_source: "https://github.com/xerj-org/xerj"',+ 'key_fact_date: "2026-10-19"',+ 'intent_group: "code search for agents"',+ "queries:", ' - "local code search MCP"']+ for key, value in extra.items():+ lines = [line for line in lines if not line.startswith(key + ":")]+ if value is not None:+ lines.append(f"{key}: {value}")+ return text.replace('schema_type: "TechArticle"\n',+ 'schema_type: "TechArticle"\n' + "\n".join(lines) + "\n")+++class GeoFieldTests(unittest.TestCase):+ def _load(self, text: str):+ with tempfile.TemporaryDirectory() as tmp:+ return load(_write(pathlib.Path(tmp), text))++ def _rejects(self, text: str, needle: str) -> None:+ with self.assertRaises(FrontmatterError) as ctx:+ self._load(text)+ self.assertIn(needle, str(ctx.exception))++ def test_valid_geo_fields_load_and_reach_head_meta(self):+ article = self._load(_geo())+ self.assertEqual(article.intent_group, "code search for agents")+ self.assertEqual(list(article.queries), ["local code search MCP"])+ meta = article.head_meta()+ self.assertNotIn("faq", meta) # FAQPage stays opt-in (#1928)+ self.assertNotIn("items", meta)++ def test_short_answer_is_rejected(self):+ self._rejects(_geo(answer='"Too short to restate anything."'), "answer")++ def test_key_fact_needs_its_source_and_date(self):+ self._rejects(_geo(key_fact_date=None), "go together")++ def test_key_fact_needs_a_number(self):+ self._rejects(_geo(key_fact='"No number here."'), "number")++ def test_missing_repo_source_is_rejected(self):+ self._rejects(_geo(key_fact_source='"docs/does-not-exist.md"'), "key_fact_source")++ def test_capture_source_is_accepted(self):+ article = self._load(_geo(key_fact_source='"capture"'))+ self.assertEqual(article.key_fact_source, "capture")++class ItemListTests(unittest.TestCase):+ def test_items_become_an_item_list(self):+ import seo_head+ meta = {"items": [{"name": "ripgrep", "url": "https://github.com/BurntSushi/ripgrep",+ "license": "MIT OR Unlicense", "install": "cargo install ripgrep"}],+ "items_name": "Best **grep** alternative"}+ (block,) = seo_head.geo_blocks("https://xerj.org/compare/x", meta)+ self.assertEqual(block["@type"], "ItemList")+ self.assertEqual(block["name"], "Best grep alternative")+ item = block["itemListElement"][0]["item"]+ self.assertEqual((item["name"], item["license"]), ("ripgrep", "MIT OR Unlicense"))++ def test_no_items_no_block(self):+ import seo_head+ self.assertEqual(seo_head.geo_blocks("https://xerj.org/compare/x", {}), [])+++class FaqVisibleGateTests(unittest.TestCase):+ """Rule 46b (#1928) must fire on a FAQPage the page does not show."""++ def _issues(self, body: str) -> list[str]:+ import seo_lint+ node = {"@type": "FAQPage", "mainEntity": [{+ "@type": "Question", "name": "Does it run offline?",+ "acceptedAnswer": {"@type": "Answer", "text": "Yes, with the default embedder."}}]}+ with tempfile.TemporaryDirectory() as tmp:+ root = pathlib.Path(tmp)+ (root / "x.html").write_text(f"<html><head></head><body>{body}</body></html>")+ lint = object.__new__(seo_lint.Lint)+ lint.root, lint.issues = root, []+ lint._check_faq_visible("x.html", 1, node)+ return [issue.rule for issue in lint.issues]++ def test_visible_faq_passes(self):+ self.assertEqual(self._issues("<h3>Does it run offline?</h3>"+ "<p>Yes, with the default embedder.</p>"), [])++ def test_hidden_question_fails(self):+ self.assertEqual(self._issues("<p>Yes, with the default embedder.</p>"),+ ["jsonld.faq_not_visible"])++ def test_wrong_answer_fails(self):+ self.assertEqual(self._issues("<h3>Does it run offline?</h3><p>No.</p>"),+ ["jsonld.faq_not_visible"])++class CommittedContentTests(unittest.TestCase):def test_every_committed_article_carries_updated(self):"""No source may regress to the git-date fallback (#974's root cause).