Skip to content

refactor: compile against the forked OpenSearch package in fesen-httpclient - #35

Merged
marevol merged 1 commit into
mainfrom
fork/opensearch-migrate
Sep 14, 2026
Merged

marevol merged 1 commit into
mainfrom
fork/opensearch-migrate

Conversation

@marevol

@marevol marevol commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Fess is dropping the 17 MiB org.opensearch:opensearch jar: the DTOs and query builders it actually uses are now forked into org.codelibs.fesen.opensearch.* inside fesen-httpclient, pruned from 8,578 classes to 3,751. This plugin follows.

GoogleDriveDataStore builds a bool/term/wildcard delete query and hands it to IndexingHelper.deleteDocumentByQuery(SearchEngineClient, QueryBuilder). The type is dictated by that core signature, which moves in codelibs/fess#3439, so this plugin has no choice about when it migrates.

Six import lines across two files — the data store and GoogleDriveChangeHandlingTest. The provided declaration of org.opensearch:opensearch is removed; the classes now arrive through Fess. Nothing else needed declaring in its place.

Verification

mvn clean package240 tests, 0 failures.

Ordering

Must be released together with codelibs/fess#3439, not after it. A plugin built against the old core signature will not load against the new war, and vice versa.

…client

The OpenSearch DTOs and query builders Fess uses are now forked into
org.codelibs.fesen.opensearch inside fesen-httpclient, and Fess core has
already migrated. IndexingHelper.deleteDocumentByQuery now takes the forked
QueryBuilder, so GoogleDriveDataStore has to follow.

Rewrite the six imports in GoogleDriveDataStore and GoogleDriveChangeHandlingTest
onto the forked package, and drop the now-redundant provided-scope
org.opensearch:opensearch declaration: the classes arrive through Fess, which
depends on fesen-httpclient. Nothing here used the jar's transitive
dependencies -- Lucene still arrives through the same path.
@marevol
marevol merged commit c7271b0 into main Sep 14, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant