Skip to content

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

Open
marevol wants to merge 1 commit into
mainfrom
fork/opensearch-migrate
Open

refactor: compile against the forked OpenSearch package in fesen-httpclient#22
marevol wants to merge 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 uses are now forked into org.codelibs.fesen.opensearch.* inside fesen-httpclient, pruned from 8,578 classes to 2,645. This plugin follows.

One import line. api/classic/JsonApiManager.java takes an org.opensearch.script.Script from LanguageHelper.createScript(...) and passes it to setScript(...)the type is dictated by that core signature, which moves in codelibs/fess#3439, so this plugin has no choice about when it migrates. The provided declaration of org.opensearch:opensearch is removed; the class arrives through Fess.

Verification

mvn clean package80 tests, 0 failures.

Ordering

…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. LanguageHelper.createScript returns the forked Script, so the favorite
count update has to follow.

Rewrite the Script import onto the forked package, and drop the now-redundant
provided-scope org.opensearch:opensearch declaration: the class arrives through
Fess, which depends on fesen-httpclient. Nothing here used the jar's transitive
dependencies.
@marevol
marevol force-pushed the fork/opensearch-migrate branch from f6ac666 to 2e9cb13 Compare September 13, 2026 14:13
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