← ALL POSTS · /BLOG

Cover: “XERJ rc.105” in large display type over “Better ranking on long pages and CJK text”, with long pages R@1 56.60 to 64.78 and Chinese law R@1 0.45 to 0.95. On the right, the Chinese words 中文检索 (Chinese search) split into the bigrams 中文, 文检 and 检索, above a long page and a short page whose answer lines are highlighted in yellow
THANK YOU · RELEASE · V1.0.0-RC.105 · 2026-11-23

XERJ RC.105 (2026):
BETTER RANKING ON LONG PAGES AND CJK TEXT.

rc.105 is about finding the right passage. A long page no longer outranks the page that answers your question. Chinese text is searched in a way that fits the language. A top-10 over a field with more than 100,000 distinct values comes back with exact counts. Hybrid search reads less, and a merge holds less in memory.

Thank you. Many of these changes started with a report, a benchmark or a pull request from the community. You will find every name below. XERJ is a new way for AI to search for data, and it also speaks the Elasticsearch 8.x API, so an existing client works on day one.

PASTE THIS TO YOUR AI AGENT

Upgrade XERJ to v1.0.0-rc.105 for me, following https://xerj.org/llms.txt. Back up my XERJ data folder first. Then index the folder I point you to (ask before reading anything outside it), search it for one thing I ask about, and show me the hits with file and line. Then send a short XERJ field report on what worked.

01 · LONG PAGES

The page that answers ranks first

BM25 compares the length of a field with the average length. XERJ stored that length in one byte, and the byte stopped growing at 1,690 tokens. Every longer field was scored as if it were 1,690 tokens long, while the average used the true lengths. Long pages looked short, and they outranked the page that answered the query.

New segments now store the real length. On a medical reference of 121 pages and 1,993 questions, searched on title and content, the right page came first more often:

64.78
recall at 1, was 56.60
The page that holds the answer is the first hit.
81.74
recall at 3, was 76.77
The page that holds the answer is in the top 3.

On public benchmarks with short documents, the change is small. With a plain multi_match, SciFact nDCG@10 went from 0.6572 to 0.6537, and NFCorpus from 0.3016 to 0.3020. With the query that xerj search sends, SciFact went from 0.6550 to 0.6552, and NFCorpus from 0.3058 to 0.3087.

02 · CJK

Chinese text, searched by bigrams

When at least 20% of the letters in a dataset's text are Han, kana or Hangul, xerj autoindex now gives the index the xerj_cjk analyzer. It splits the text into pairs of characters, and it folds Traditional Han to Simplified, so a question in one script finds a passage in the other. Text with kana gets the plain cjk analyzer. English text keeps its stemmer.

The cjk tokenizer also splits non-CJK words on word boundaries and drops punctuation. revenue, is now revenue, and a full-width comma is no longer a token. Short Chinese, Japanese and Korean bodies without spaces are now mapped as text, so they are searchable after autoindex.

On a corpus of 29 statute files and 20 law questions, the passage that holds the answer moved up:

0.95
recall at 1, was 0.45
Questions in Simplified Chinese.
1.00
recall at 3, was 0.60
Questions in Simplified Chinese.
0.90
recall at 1, was 0.65
The same questions in Traditional Chinese.
0.95
recall at 3, was 0.80
The same questions in Traditional Chinese.

English results did not change: the medical reference above gave the same ranks. A mapping that names cjk by hand keeps the unfolded behaviour.

03 · EXACT TOP-N

A top-10 over 100,000 keys, with exact counts

A terms aggregation over user IDs or IP addresses can see many distinct values. Earlier builds kept the first 65,536 keys in document order, and the count of the other documents was wrong. search.max_buckets now counts the buckets a search returns, not the keys it sees.

Over 100,000 distinct keys, terms size: 10 now answers 200, with sum_other_doc_count 99,991. A request fails with a 400 too_many_buckets_exception only when the buckets it keeps are more than the limit. This works on one index and across indices. The search.max_buckets cluster setting now also moves the engine's own cap.

04 · FASTER

Hybrid search reads only the page you get

A hybrid query has a BM25 leg and a kNN leg. Both legs now return ids and scores only. XERJ fuses them, and then reads _source for the documents on the returned page, and no others. The pages are the same as before: ids, order, scores and _source matched on every page we compared, 3,120 pages over two datasets.

4.31 ms
was 7.20 ms
Hybrid, size 10, 3,000 documents with 768-dimension vectors.
6.29 ms
was 8.80 ms
Hybrid, size 10, 5,000 documents, kNN on HNSW.

With the vector left out of _source, the 3,000-document case went from 5.09 to 3.35 ms. The 5,000-document case did not get faster. XERJ_HYBRID_DEFER_SOURCE=0 brings back the old reads.

Searches also stop waiting on disk while bulk writes run. A flush, a _bulk and WAL maintenance used to hold the index's publish lock through fsyncs. They no longer do. The same fsyncs still happen, so durability does not change. With a writer running, p99 over all reads went from 204-265 ms to 40-85 ms, and the writer went from 34-50k to 53-66k documents per second.

A match_all page decoded a whole segment for each hit when the cache had no room. On a 504k-document index, the zero-hit hint took 47-52 s. Each segment is now read once per page, and the hint takes 0.7-0.9 s.

Three paths that used to read stored documents one by one now use the index:

3.9-5.1 ms
p50, was 539-661 ms
multi_match on * over 200k documents with object sub-fields, now with BM25 scores.
13.4-17.2 ms
was 1111-1631 ms
A size: 0 aggregation under a filter-only bool.
9.3 ms
p50, was 1940 ms
term on an array keyword, 8 clients, 992,000 documents in 496 segments.

A filtered date_histogram on 300k documents that answered 429 now answers in 143-182 ms right after a cache clear.

05 · LESS MEMORY

Merges and flushes hold less

Some fields are a scalar in one document and an array in the next, such as "t1" and ["t1","t2"]. A merge or flush used to parse each such row into a tree of values. It now keeps the row as JSON text. The bytes written are the same.

398.9 MB
peak heap, was 725.3 MB
One 6,000-document encode with a 1024-dimension vector and mixed fields.
791-820 MB
peak RSS, was 936-943 MB
A 12,000-document _forcemerge under a 1,200 MB process cap.

Under the automatic memory cap, that merge peaked at the same level both ways. Data without mixed fields sees no difference.

_forcemerge now respects the process memory cap. On 84,600 documents with a 1024-dimension vector, the peak at an 8 GiB cap went from 4,751 and 4,919 MB to 4,204 and 4,285 MB. At a 4 GiB cap, the old build went past the cap to 4,248 MB. The new one stops at 4,014 MB and answers 429, and the index keeps every segment and document. A client that drops the connection no longer cancels the merge half way. A merge that is still making progress does not get a 429.

A flush near the memory watermark used to return freed pages to the operating system inline, for 64-133 ms at p90. That work now runs on its own thread, and the flush spends under 0.12 ms there at p90.

06 · NEW FOR AGENTS

New commands for agents

07 · CORRECTNESS

Answers that match what a client expects

The release gate is the Elasticsearch YAML conformance suite: a release is cut only when it reports zero failures. These are the fixes in rc.105 that change what you see:

08 · INSPIRATIONS

Where the ideas came from

09 · THANK YOU

Thank you to everyone who built rc.105

Code and docs merged in this release:

Reports that rc.105 fixes or moves forward:

In the same days on Corpus Hub, @wasabihu added the cn-statutes and clinical-trials-outcomes corpora (#3372), @polarours added cppuccino (#3340) and @xobotyi moved the cc-foundry pins to the-coder v1.18.0 (#3307). And thank you to every person and agent who sent a field report.

10 · WHERE XERJ GOES

Five days, and our busiest days yet

rc.105 shipped five days after rc.104. In those five days, 76 new issues were opened on GitHub, more than in any of the three five-day stretches before. The release carries 93 merged pull requests, and 11 community members shaped it. On 2026-11-20, 6,435 people visited xerj.org, our busiest day since we started measuring on 2026-10-20.

How people use XERJ. These come from the reports and pull requests in this release:

Where it goes. XERJ speaks the Elasticsearch 8.x API, so you can point an existing client at it and keep your code. Each release closes more of the gap, and rc.105 makes many more requests answer the way Elasticsearch does. The goal is a drop-in replacement for Elasticsearch, and a new way for AI to search for data. Thank you for building it with us.

11 · UPGRADE NOTES

Before you upgrade

Tick what you use, and the list keeps the notes that apply to you. The first three apply to everyone.

I use

12 · INSTALL

Install v1.0.0-rc.105

Pick your system to get the install command, the exact file from the release and its checksum check.

System
Chip
Linux package

Install with the script

Or download the file and check it

The installers download a GitHub release and check its SHA-256. xerj --version should print v1.0.0-rc.105. The XERJ Query-1 model bundle is a separate file, xerj-model-bundle-v1-v1.0.0-rc.105.tar.gz. The longer matrix is on the install page.

13 · FULL CHANGELOG

Every pull request, in one place

The story above leaves most ticket numbers out. The source of truth for this cut is the changelog and the release page.

14 · TRY IT

Hand it to your agent

PASTE THIS TO YOUR AI AGENT

Upgrade XERJ to v1.0.0-rc.105 for me, following https://xerj.org/llms.txt. Back up my XERJ data folder first. Then index the folder I point you to (ask before reading anything outside it), search it for one thing I ask about, and show me the hits with file and line. Then send a short XERJ field report on what worked.

If this release helped you, or got in your way, tell us in your own words. A short field report is how you join: what you pointed XERJ at, what you used it for, and your honest verdict.