Skip to content

armgit / xerj

Public Imported from GitHub
0

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.

docs: correct two stale comments — #719 (ci.yml pin versions) + #725 (msm percentage range)

xerj-org7439c2fcdf38
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 69f26ddf5..f02b19270 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,7 +40,7 @@ jobs:
contents: read
pull-requests: read
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
# cla-bot reads .contributors straight off this repo; malformed JSON or a
# missing bot exemption breaks the gate silently (it just flags everyone).
@@ -78,7 +78,7 @@ jobs:
name: Reference-coding toolkit
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Shell syntax
run: |
@@ -110,7 +110,7 @@ jobs:
name: Landing constants guard
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
fetch-depth: 0
@@ -121,7 +121,7 @@ jobs:
name: Format + Clippy
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install Rust
uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
@@ -129,7 +129,7 @@ jobs:
components: rustfmt, clippy
- name: Cache
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.8.1
+ uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: engine
@@ -156,7 +156,7 @@ jobs:
name: Dependency advisory audit (cargo-audit)
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install Rust
uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
@@ -192,7 +192,7 @@ jobs:
name: Fuzz harnesses (cargo-fuzz)
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
# libFuzzer + the sanitizer runtimes are nightly-only.
- name: Install Rust (nightly)
@@ -239,13 +239,13 @@ jobs:
name: Build + Test
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install Rust
uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
- name: Cache
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.8.1
+ uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: engine
# Single writer for the Linux [profile.ci-test] dependency cache.
@@ -321,13 +321,13 @@ jobs:
name: Release build (fat LTO, all members link)
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install Rust
uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
- name: Cache
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.8.1
+ uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: engine
@@ -339,7 +339,7 @@ jobs:
name: ONNX feature compile + tests
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install Rust
uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
@@ -347,7 +347,7 @@ jobs:
components: clippy
- name: Cache
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.8.1
+ uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: engine
@@ -371,13 +371,13 @@ jobs:
name: API smoke + liveness + benchmark
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install Rust
uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
- name: Cache
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.8.1
+ uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: engine
# Read-only consumer of build-test's ci-test dependency cache.
@@ -411,13 +411,13 @@ jobs:
name: ES-compat YAML conformance
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install Rust
uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
- name: Cache
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.8.1
+ uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: engine
# Read-only consumer of build-test's ci-test dependency cache.
@@ -506,7 +506,7 @@ jobs:
name: UX pipeline tests
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
@@ -528,7 +528,7 @@ jobs:
name: Use-case harnesses (brain + MCP + autoindex)
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Installer script lint (landing/get, landing/get.ps1)
run: bash .github/scripts/installer-lint.sh
@@ -544,7 +544,7 @@ jobs:
uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
- name: Cache
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.8.1
+ uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: engine
# Read-only consumer of build-test's ci-test dependency cache.
@@ -599,13 +599,13 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.3.0
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install Rust
uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
- name: Cache
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.8.1
+ uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: engine
diff --git a/engine/crates/xerj-query/src/ast.rs b/engine/crates/xerj-query/src/ast.rs
index 6c2984f57..601df5474 100644
--- a/engine/crates/xerj-query/src/ast.rs
+++ b/engine/crates/xerj-query/src/ast.rs
@@ -95,7 +95,9 @@ pub enum Fuzziness {
pub enum MinShouldMatch {
/// Exact number of `should` clauses that must match.
Fixed(u32),
- /// Percentage of `should` clauses that must match (0–100).
+ /// Percentage of `should` clauses that must match. Values may exceed 100:
+ /// `>100` requires more matches than there are clauses, so the clause set
+ /// is unsatisfiable (the parser applies no upper cap).
Percentage(u32),
/// `terms_set.minimum_should_match_field`: the required count is read
/// per-document from this numeric field.