This is an automated email from the ASF dual-hosted git repository.
luigidemasi pushed a commit to branch dependabot/maven/lucene.version-10.6.0
in repository https://gitbox.apache.org/repos/asf/camel-kit.git
The following commit(s) were added to
refs/heads/dependabot/maven/lucene.version-10.6.0 by this push:
new e640afc8 Preserve offline cache miss diagnostics and test Lucene 9
compatibility
e640afc8 is described below
commit e640afc8dfda2e7144fbc87657a3aaac96a5ed54
Author: Luigi De Masi <[email protected]>
AuthorDate: Wed Dec 2 16:01:50 2026 +0100
Preserve offline cache miss diagnostics and test Lucene 9 compatibility
Stop classpath fallback for offline Knowledge queries and return the
resolver's recovery instructions to the MCP client. Exercise a frozen
Lucene 9.12.1 index in the regular test suite and reuse it for the
pinned launcher smoke test.
Co-authored-by: OpenAI Codex <[email protected]>
---
.github/workflows/build.yml | 7 +------
CHANGELOG.md | 5 +++--
docs/modules/ROOT/pages/knowledge.adoc | 6 ++++--
docs/security-model.md | 10 ++++-----
docs/security-model.yaml | 2 +-
knowledge/CHANGELOG.md | 7 ++++---
knowledge/README.md | 4 ++--
.../camel/kit/knowledge/mcp/IndexDownloader.java | 13 ++++++++++--
.../kit/knowledge/mcp/IndexResolverConfig.java | 2 +-
.../kit/knowledge/mcp/LuceneSearchService.java | 4 +++-
.../knowledge/mcp/IndexArchiveConfinementTest.java | 1 +
.../kit/knowledge/mcp/IndexDiscoveryTest.java | 23 +++++++++++++++++++++
.../kit/knowledge/mcp/IndexDownloaderTest.java | 2 ++
.../knowledge/mcp/IndexDownloaderTimeoutTest.java | 1 +
.../kit/knowledge/mcp/LuceneSearchServiceTest.java | 19 +++++++++++++++++
.../mcp/src/test/resources/lucene-9.12.1/_0.cfe | Bin 0 -> 390 bytes
.../mcp/src/test/resources/lucene-9.12.1/_0.cfs | Bin 0 -> 2939 bytes
.../mcp/src/test/resources/lucene-9.12.1/_0.si | Bin 0 -> 337 bytes
.../src/test/resources/lucene-9.12.1/segments_1 | Bin 0 -> 155 bytes
19 files changed, 81 insertions(+), 25 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 80c556e7..304906b6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -63,13 +63,8 @@ jobs:
launcher="$RUNNER_TEMP/kit-host/camel-launcher-$host_version/bin/camel.sh"
chmod +x "$launcher"
common=(--plugin
"org.apache.camel:camel-jbang-plugin-kit:$kit_version" --maven-repository
"$HOME/.m2/repository")
- # The pinned Kit runner must keep working with v1 after the
independent index release moves to v2.
- ./mvnw -B -N dependency:copy
-Dartifact=org.apache.lucene:lucene-core:9.12.1
-DoutputDirectory="$RUNNER_TEMP/legacy-lucene"
- java -cp
"$RUNNER_TEMP/legacy-lucene/*:$PWD/knowledge/schema/target/classes"
tools/FixtureIndex.java "$RUNNER_TEMP/launcher-index"
- ./mvnw -B -pl knowledge/mcp -am
-Dtest=RetrievalQualityTest#releaseIndexHasExpectedMajor \
- -Dsurefire.failIfNoSpecifiedTests=false
-Dknowledge.index.path="$RUNNER_TEMP/launcher-index" -Deval.requireIndexMajor=9
test
PATH="$JAVA_HOME/bin:/usr/bin:/bin" python3
tools/verify_camel_launcher.py --launcher "$launcher" \
- "${common[@]}" --work-dir "$RUNNER_TEMP/kit-launcher"
--knowledge-index "$RUNNER_TEMP/launcher-index"
+ "${common[@]}" --work-dir "$RUNNER_TEMP/kit-launcher"
--knowledge-index "$PWD/knowledge/mcp/src/test/resources/lucene-9.12.1"
# Use the same JBang distribution as the published snapshot smoke
test.
container=$(docker create
docker.io/jbangdev/jbang-action:0.139.3@sha256:f5d2d51955d4b6c8ed005b880e6b5f48f0322585298d7e3c146f8241e2d44b01)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57b34dae..68b3f1c1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -50,8 +50,9 @@ and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0
Knowledge Git history and independent product releases.
- Migrate Java packages to `org.apache.camel.kit` and Knowledge Maven
coordinates to
`org.apache.camel`. Java consumers must update imports and dependencies.
-- Publish Lucene 10 Knowledge indexes under `knowledge-index-v2-*`. The server
also reads v1 indexes
- and honors existing pins. Separate caches allow Lucene 9 clients to keep
using v1 data.
+- Publish Lucene 10 Knowledge indexes under `knowledge-index-v2-*`. The server
prefers v2 releases,
+ discovers v1 releases when only v1 is available, and honors exact version
pins. It rejects
+ incompatible updates and retains the working cache. Older clients keep using
their separate v1 cache.
- Add target-specific Maven staging and maintainer-triggered index
publication. Kit keeps its
released Knowledge runner pin; group and version overrides allow explicit
adoption.
diff --git a/docs/modules/ROOT/pages/knowledge.adoc
b/docs/modules/ROOT/pages/knowledge.adoc
index 6f21e290..878a68b3 100644
--- a/docs/modules/ROOT/pages/knowledge.adoc
+++ b/docs/modules/ROOT/pages/knowledge.adoc
@@ -113,8 +113,10 @@ Downloaded archives are SHA-256 checked and activated
atomically in
By default it appends `-v2` to `knowledge.index.cache-dir`. The older cache
remains available
as a read-only fallback for the upgraded server. Keep the two directories
separate.
With `CAMEL_KIT_OFFLINE=true`, the upgraded runner uses a local path or
matching cached index
-without contacting the release service. Kit keeps using the legacy cache for
older runners. Failed checks, downloads or activations keep the previous
-working cache. A pinned client falls back only to its exact cached version.
Discovery follows
+without contacting the release service. If the cache is empty, run a query
online to populate it or
+set `KNOWLEDGE_INDEX_PATH` to an unpacked index. Kit keeps using the legacy
cache for older runners.
+Failed checks, downloads or activations keep the previous working cache. A
pinned client falls back
+only to its exact cached version. Discovery follows
at most ten pages of 100 releases each, with a five-second deadline per page;
use an explicit
manifest if the list exceeds this bound. The first monorepo index must be
published before
its discovery endpoint is usable; until then use a local index or explicit
legacy manifest.
diff --git a/docs/security-model.md b/docs/security-model.md
index 45ae26dc..85484224 100644
--- a/docs/security-model.md
+++ b/docs/security-model.md
@@ -260,10 +260,10 @@ Knowledge README, code and executable checks recorded in
[V6 evidence](security-
`~/.camel-kit/knowledge-index-v2` with the legacy cache as a read-only
fallback. In offline mode the upgraded runner consults only local indexes
*(documented — `knowledge/README.md`, "Index Distribution")*. Remote manifest,
discovery and asset URLs — and every redirect target, checked before the hop
is issued — must be `https`, or `http`
to a loopback host only *(documented —
`IndexDownloader.requireFetchableUri`; apache/camel-kit#143)*. When
- resolution fails and no `knowledge.index.version` is pinned,
`LuceneSearchService` falls back to a
+ online resolution fails and no `knowledge.index.version` is pinned,
`LuceneSearchService` falls back to a
classpath-bundled index, extracted into a fresh `knowledge-index*` directory
under the JVM temporary directory
- with the JDK's default temporary-directory permissions and removed on
orderly shutdown; a pinned client receives
- the error instead. The monorepo runner bundles no index, so the fallback
serves legacy uber-jars that do
+ with the JDK's default temporary-directory permissions and removed on
orderly shutdown. Offline and pinned
+ clients report the resolution failure directly. The monorepo runner bundles
no index, so the fallback serves legacy uber-jars that do
*(documented — `knowledge/README.md`, "Index Distribution" step 3;
`LuceneSearchService.resolveIndex`; the
permission and fallback checks are covered by `LuceneFallbackBoundaryTest`;
bundling is checked against the packaged runner)*.
- *Bundled embedding model and reranker* (`knowledge/embedding`):
model/tokenizer resources are
@@ -742,8 +742,8 @@ violation warrants coordinated disclosure and a CVE;
**hardening** means it is f
Distribution"; `IndexDownloader`)*. Remote manifest, discovery and asset
URLs — and every redirect target, checked
before the hop is issued — must be `https`, or `http` to a loopback host
only; the manifest carries the archive's
hash, so cleartext would let a network adversary rewrite both *(documented
— `IndexDownloader.requireFetchableUri`;
- apache/camel-kit#143)*. An unpinned client whose resolution fails falls
back to a classpath-bundled index in a
- temporary directory; a pinned client does not *(documented —
`LuceneSearchService`)*. *Violation:* an archive
+ apache/camel-kit#143)*. An unpinned online client whose resolution fails
falls back to a classpath-bundled index in a
+ temporary directory; offline and pinned clients use only the selected
local or cached index on failure *(documented — `LuceneSearchService`)*.
*Violation:* an archive
accepted on SHA-256 mismatch; an entry written outside the staging or
version directory; a version name outside
the safe-name rules accepted; a pinned client using another version or the
classpath fallback; a manifest from a
different release tag accepted; a remote fetch or redirect issued over
non-loopback `http`; activation of a
diff --git a/docs/security-model.yaml b/docs/security-model.yaml
index 793b18e4..d33a1cc5 100644
--- a/docs/security-model.yaml
+++ b/docs/security-model.yaml
@@ -365,7 +365,7 @@ claimed_properties:
severity: security-critical
provenance: "application.properties and knowledge/README.md; packaged
stdio and explicit loopback SSE probe recorded in security-verification.md V6.
HTTP/SSE has no built-in authentication; configure bind host explicitly."
- id: P13
- property: Knowledge index acquisition integrity - a local
knowledge.index.path is used in place without index-acquisition network;
offline mode checks only matching local caches; otherwise a published v2 or v1
Knowledge index release (newest compatible, or the exact pinned version) or an
explicitly configured manifest is fetched with bounded pages and deadlines, the
manifest must match the release timestamp and channel format, the bundled
embedding model and 384 dimensions, the archi [...]
+ property: Knowledge index acquisition integrity - a local
knowledge.index.path is used in place without index-acquisition network;
offline mode checks only matching local caches; otherwise a published v2 or v1
Knowledge index release (newest compatible, or the exact pinned version) or an
explicitly configured manifest is fetched with bounded pages and deadlines, the
manifest must match the release timestamp and channel format, the bundled
embedding model and 384 dimensions, the archi [...]
violation_symptom: An archive accepted on SHA-256 mismatch; an entry
written outside the staging or version directory; a version name outside the
safe-name rules accepted; a pinned client using another version or the
classpath fallback; a manifest from a different release tag accepted; a remote
fetch or redirect issued over non-loopback http; activation of a partially
unpacked version.
severity: security-critical (integrity and path escape)
provenance: documented (knowledge/README.md "Index Distribution",
IndexDownloader, LuceneSearchService, apache/camel-kit#143)
diff --git a/knowledge/CHANGELOG.md b/knowledge/CHANGELOG.md
index 4202ea36..8166304f 100644
--- a/knowledge/CHANGELOG.md
+++ b/knowledge/CHANGELOG.md
@@ -20,9 +20,10 @@ and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0
Knowledge Git history and independent product releases.
- Migrate Java packages to `org.apache.camel.kit` and Knowledge Maven
coordinates to
`org.apache.camel`. Java consumers must update imports and dependencies.
-- Upgrade the Knowledge indexer and server to Lucene 10. New indexes publish
to `knowledge-index-v2-*`.
- The server can still open v1 indexes and resolve exact v1 pins. Its separate
writable cache
- lets older clients continue to read their v1 data.
+- Upgrade the Knowledge indexer and server to Lucene 10 and publish new
indexes under `knowledge-index-v2-*`.
+ The server discovers the newest v2 release, or the newest v1 release when
only v1 is available.
+ It honors exact pins and rejects incompatible updates while retaining the
working cache.
+ Its separate writable cache lets older clients continue to read their v1
data.
- Add target-specific Maven staging and maintainer-triggered index
publication. Kit keeps its
released Knowledge runner pin; group and version overrides allow explicit
adoption.
diff --git a/knowledge/README.md b/knowledge/README.md
index aecaffda..c953cee4 100644
--- a/knowledge/README.md
+++ b/knowledge/README.md
@@ -142,8 +142,8 @@ On the first knowledge query, the MCP server resolves the
index in this order:
from `~/.camel-kit/knowledge-index/` if the update fails. When a version is
pinned,
only that exact cached version qualifies. The index is opened
directly from the cache, without per-startup extraction.
-3. **Classpath** — legacy fallback for uber-jars bundling the index, only when
no
- exact index version is pinned
+3. **Classpath** — legacy fallback for uber-jars bundling the index, only
during unpinned
+ online resolution
With `CAMEL_KIT_OFFLINE=true` or `-Dcamel.kit.offline=true`, the server
resolves a local
path or matching cached index without contacting the release service. Kit
delegates
diff --git
a/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/IndexDownloader.java
b/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/IndexDownloader.java
index 994f613b..c415d513 100644
---
a/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/IndexDownloader.java
+++
b/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/IndexDownloader.java
@@ -101,6 +101,12 @@ public class IndexDownloader {
.connectTimeout(CONNECT_TIMEOUT)
.build();
+ static final class OfflineIndexMissingException extends IOException {
+ OfflineIndexMissingException() {
+ super("Offline Knowledge index missing. Run a query online or set
KNOWLEDGE_INDEX_PATH.");
+ }
+ }
+
/** A resolved index directory; temporary directories are deleted at
shutdown. */
public record ResolvedIndex(Path dir, boolean temporary) {
}
@@ -148,8 +154,7 @@ public class IndexDownloader {
if (offline) {
Path cached = cachedDirectory(cacheDir, legacyDir);
if (cached == null) {
- throw new IOException(
- "Offline Knowledge index missing. Run a query online
or set KNOWLEDGE_INDEX_PATH.");
+ throw new OfflineIndexMissingException();
}
return new ResolvedIndex(cached, false);
}
@@ -190,6 +195,10 @@ public class IndexDownloader {
}
}
+ boolean isOffline() {
+ return offline;
+ }
+
boolean isVersionPinned() {
return config.version().isPresent();
}
diff --git
a/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/IndexResolverConfig.java
b/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/IndexResolverConfig.java
index cdb0653f..bd907bd7 100644
---
a/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/IndexResolverConfig.java
+++
b/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/IndexResolverConfig.java
@@ -27,7 +27,7 @@ public interface IndexResolverConfig {
/** Exact index version. When absent, discover the newest published
version in the compatible format channel. */
Optional<String> version();
- /** Legacy reader cache. New servers may use an existing index here when
offline. */
+ /** Read-only fallback for upgraded servers when offline or when an online
update fails. */
@WithDefault("${user.home}/.camel-kit/knowledge-index")
String cacheDir();
diff --git
a/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/LuceneSearchService.java
b/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/LuceneSearchService.java
index 3d88f062..cf6ca083 100644
---
a/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/LuceneSearchService.java
+++
b/knowledge/mcp/src/main/java/org/apache/camel/kit/knowledge/mcp/LuceneSearchService.java
@@ -70,6 +70,8 @@ public class LuceneSearchService {
resolvedIndex = resolveIndex();
reader =
DirectoryReader.open(FSDirectory.open(resolvedIndex.dir()));
searcher = new IndexSearcher(reader);
+ } catch (IndexDownloader.OfflineIndexMissingException e) {
+ throw new IllegalStateException(e.getMessage(), e);
} catch (Exception e) {
throw new RuntimeException("Failed to open knowledge index", e);
}
@@ -645,7 +647,7 @@ public class LuceneSearchService {
try {
return indexDownloader.resolve();
} catch (IOException e) {
- if (indexDownloader.isVersionPinned()) {
+ if (indexDownloader.isOffline() ||
indexDownloader.isVersionPinned()) {
throw e;
}
LOG.warn("Index resolution failed ({}), falling back to classpath
extraction", e.getMessage());
diff --git
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexArchiveConfinementTest.java
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexArchiveConfinementTest.java
index cc7cb4e5..63a55e7b 100644
---
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexArchiveConfinementTest.java
+++
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexArchiveConfinementTest.java
@@ -126,6 +126,7 @@ class IndexArchiveConfinementTest {
return tempDir.resolve("cache") + "-legacy";
}
+ @Override
public Optional<String> v2CacheDir() {
return Optional.of(tempDir.resolve("cache").toString());
}
diff --git
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDiscoveryTest.java
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDiscoveryTest.java
index 0540fd28..33c2fb82 100644
---
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDiscoveryTest.java
+++
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDiscoveryTest.java
@@ -72,26 +72,32 @@ class IndexDiscoveryTest {
private IndexDownloader downloader(Optional<String> writableCache) {
return new IndexDownloader(new IndexResolverConfig() {
+ @Override
public Optional<String> path() {
return Optional.empty();
}
+ @Override
public Optional<String> url() {
return Optional.empty();
}
+ @Override
public Optional<String> version() {
return Optional.ofNullable(pin);
}
+ @Override
public String releasesUrl() {
return endpoint();
}
+ @Override
public String cacheDir() {
return tmp.resolve("cache-legacy") + "/";
}
+ @Override
public Optional<String> v2CacheDir() {
return writableCache;
}
@@ -249,6 +255,23 @@ class IndexDiscoveryTest {
assertNull(requestedPath);
}
+ @Test
+ void offlineCacheMissReachesTheCallerWithRecoveryInstructions() {
+ var service = new LuceneSearchService();
+ service.indexDownloader = downloader();
+ service.indexDownloader.offline = true;
+ try {
+ RuntimeException failure = assertThrows(RuntimeException.class,
service::init);
+ assertInstanceOf(IOException.class, failure.getCause());
+ assertEquals("Offline Knowledge index missing. Run a query online
or set KNOWLEDGE_INDEX_PATH.",
+ failure.getMessage());
+ assertEquals(failure.getMessage(),
failure.getCause().getMessage());
+ assertNull(requestedPath);
+ } finally {
+ service.close();
+ }
+ }
+
@Test
void discoveryFailureKeepsWorkingCache() throws Exception {
releases.add(release("2026.10.01-120000"));
diff --git
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDownloaderTest.java
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDownloaderTest.java
index 90279bda..caa0cd06 100644
---
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDownloaderTest.java
+++
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDownloaderTest.java
@@ -71,6 +71,7 @@ class IndexDownloaderTest {
return cacheDir + "-legacy";
}
+ @Override
public Optional<String> v2CacheDir() {
return Optional.of(cacheDir.toString());
}
@@ -248,6 +249,7 @@ class IndexDownloaderTest {
return cacheDir + "-legacy";
}
+ @Override
public Optional<String> v2CacheDir() {
return Optional.of(cacheDir.toString());
}
diff --git
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDownloaderTimeoutTest.java
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDownloaderTimeoutTest.java
index 18005d02..5e609947 100644
---
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDownloaderTimeoutTest.java
+++
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/IndexDownloaderTimeoutTest.java
@@ -251,6 +251,7 @@ class IndexDownloaderTimeoutTest {
return cache() + "-legacy";
}
+ @Override
public Optional<String> v2CacheDir() {
return Optional.of(cache().toString());
}
diff --git
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/LuceneSearchServiceTest.java
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/LuceneSearchServiceTest.java
index 484e67fc..d846ade7 100644
---
a/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/LuceneSearchServiceTest.java
+++
b/knowledge/mcp/src/test/java/org/apache/camel/kit/knowledge/mcp/LuceneSearchServiceTest.java
@@ -1,13 +1,32 @@
package org.apache.camel.kit.knowledge.mcp;
+import java.nio.file.Path;
import java.util.List;
+import org.apache.lucene.index.DirectoryReader;
+import org.apache.lucene.index.SegmentInfos;
+import org.apache.lucene.search.IndexSearcher;
+import org.apache.lucene.store.FSDirectory;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class LuceneSearchServiceTest {
+ @Test
+ void searchesAnIndexWrittenByLucene9() throws Exception {
+ // tools/FixtureIndex.java wrote this fixture with lucene-core 9.12.1.
+ Path fixture =
Path.of(getClass().getResource("/lucene-9.12.1/segments_1").toURI()).getParent();
+ try (var dir = FSDirectory.open(fixture);
+ var reader = DirectoryReader.open(dir)) {
+ assertEquals(9,
SegmentInfos.readLatestCommit(dir).getIndexCreatedVersionMajor());
+ var results = LuceneSearchService.hybridSearch(new
IndexSearcher(reader), null,
+ "apache_camel", "periodic", "4.22", null, 1, 1.0f, 0.0f);
+ assertEquals(List.of("runtime-canary"),
+
results.stream().map(LuceneSearchService.SearchResult::id).toList());
+ }
+ }
+
@Test
void searchResultRecord() {
var result = new LuceneSearchService.SearchResult(
diff --git a/knowledge/mcp/src/test/resources/lucene-9.12.1/_0.cfe
b/knowledge/mcp/src/test/resources/lucene-9.12.1/_0.cfe
new file mode 100644
index 00000000..d17dbb8e
Binary files /dev/null and
b/knowledge/mcp/src/test/resources/lucene-9.12.1/_0.cfe differ
diff --git a/knowledge/mcp/src/test/resources/lucene-9.12.1/_0.cfs
b/knowledge/mcp/src/test/resources/lucene-9.12.1/_0.cfs
new file mode 100644
index 00000000..10085c81
Binary files /dev/null and
b/knowledge/mcp/src/test/resources/lucene-9.12.1/_0.cfs differ
diff --git a/knowledge/mcp/src/test/resources/lucene-9.12.1/_0.si
b/knowledge/mcp/src/test/resources/lucene-9.12.1/_0.si
new file mode 100644
index 00000000..6d01e662
Binary files /dev/null and
b/knowledge/mcp/src/test/resources/lucene-9.12.1/_0.si differ
diff --git a/knowledge/mcp/src/test/resources/lucene-9.12.1/segments_1
b/knowledge/mcp/src/test/resources/lucene-9.12.1/segments_1
new file mode 100644
index 00000000..49ba02fb
Binary files /dev/null and
b/knowledge/mcp/src/test/resources/lucene-9.12.1/segments_1 differ