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
docs(es-compat): close the three verification items on the scroll-cap docs
xerj-orgd9c51e817048
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 510080b54..b3dc41042 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -52,7 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0the hit it comes from, and states the lexicographic ordering that produced themistake. `published_search_after_recipe_walks_the_whole_corpus` parses thetranscript out of the page, seeds the corpus the transcript itself names,- replays the printed request bodies verbatim against the real router, and+ replays the printed *paging* request bodies (the two carrying `sort`) against the real router, andasserts the walk collects every seeded `_id` over the page count thetranscript claims — so a wrong cursor, an early stop, a repeated page or adrifted claim all fail the build.@@ -76,9 +76,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0Verified by `cargo test -p xerj-api --testscroll_snapshot_cap_is_documented` — 3 passed in the `ci-test` profile(8.67s, overflow-checks off) and 3 passed in `dev` (12.40s, overflow-checks- on). It drives `build_es_compat_router` over tempdir engines: an- 11,450-document `logs` index- refuses the scroll open with `400 illegal_argument_exception` naming `[11450]`+ on). It drives `build_es_compat_router` over tempdir engines: a+ 10,001-document index (`SCROLL_SNAPSHOT_MAX_HITS + 1`)+ refuses the scroll open with `400 illegal_argument_exception` naming `[10001]`and `[10000]`; a 128-document control scroll returns a `_scroll_id`; theprinted first page returns 1,000 hits ending at `_id` `"10897"` with`sort: ["10897"]`; and the published walk from that cursor returns 11,450diff --git a/landing/docs/api-es-compat.html b/landing/docs/api-es-compat.htmlindex 11a5fa064..644ce7be4 100644--- a/landing/docs/api-es-compat.html+++ b/landing/docs/api-es-compat.html@@ -193,7 +193,7 @@<p>This is the common case, not the corner case: <code class="inline">helpers.scan()</code> in <code class="inline">elasticsearch-py</code>, reindex internals, and most export and backup tooling all scroll a whole index, and whole indices are usually bigger than the cap.</p>- <p>The ceiling above is the one <code class="inline">_search?scroll=</code> enforces, on the request's total across every index it resolves. One route is looser: the <code class="inline">POST /:index/_search_scroll</code> alias applies the ceiling <em>per index</em>, so a comma-separated multi-index scroll sent there can snapshot the full ceiling from each. That direction is permissive, not lossy — every matched document is still in the snapshot and still paged out — but it means the number is a per-index ceiling on that one route. Tracked in <a href="https://github.com/xerj-org/xerj/issues/405">#405</a>.</p>+ <p>The ceiling above is the one <code class="inline">_search?scroll=</code> enforces, on the request's total across every index it resolves. One route is looser: the <code class="inline">POST /:index/_search_scroll</code> alias applies the ceiling <em>per index</em>, so a comma-separated multi-index scroll sent there can snapshot the full ceiling from each. That direction is permissive rather than truncating: the documents are in the snapshot and page out (measured: 2×6,000 docs over that route returned 12,000 hits across 120 pages). Note that per-hit <code class="inline">_index</code> is <strong>not</strong> reliable on that route — continuation pages return the raw comma-separated index spec rather than the resolving index, so <code class="inline">(_index, _id)</code> is not a distinct key there. Export and reindex tooling should not depend on it. Tracked in <a href="https://github.com/xerj-org/xerj/issues/405">#405</a>.</p><pre class="code"># 11,450 documents in `logs` — over the cap, so the scroll never opens$ curl -sX POST 'http://localhost:9200/logs/_search?scroll=1m' \diff --git a/landing/llms-full.txt b/landing/llms-full.txtindex a4a0ae16d..8c68f27a4 100644--- a/landing/llms-full.txt+++ b/landing/llms-full.txt@@ -161,8 +161,12 @@ Content types:Sort on a numeric field if you want numeric order. (b) The ceiling above is what`_search?scroll=` enforces, against the request's total over every index it resolves. The`POST /{index}/_search_scroll` alias applies it PER INDEX instead, so a multi-index scroll- sent there can snapshot the full ceiling from each — permissive, not lossy; nothing is- truncated. Tracked in https://github.com/xerj-org/xerj/issues/405.+ sent there can snapshot the full ceiling from each — permissive rather than truncating+ (measured: 2x6,000 docs over that route paged out 12,000 hits across 120 pages). But+ per-hit `_index` is NOT reliable on that route: continuation pages return the raw+ comma-separated index spec rather than the resolving index, so `(_index, _id)` is not a+ distinct key there and export/reindex tooling must not depend on it.+ Tracked in https://github.com/xerj-org/xerj/issues/405.- Default `_search` source is compact. When `_source` is omitted, ordinary source fieldsare returned but engine-generated `<field>_vector` and `<field>_vector_chunks` companions