Migrating custom search plugin from hlrc to java client

Versions (relevant - OpenSearch/): OpenSearch 2.13.0

Describe the issue:

We are using HLRC and extending the search capabilities at runtime with our custom search plugin with something like this

List<SearchPlugin> customPlugins = new ArrayList<>();
customPlugins.add(new myCustomPlugin());
SearchModule searchModule = new SearchModule(Settings.EMPTY,  customPlugins);

SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
 XContentParser parser = JsonXContent.jsonXContent.createParser(new NamedXContentRegistry(searchModule.getNamedXContents()
searchSourceBuilder.parseXContent(parser);

we want to migrate from hlrc to java client, is there support for custom plugin/parser for java client? the java client doesnt seem to support .parsexContent, namedxContent, searchsourcebuilder
Configuration:

Relevant Logs or Screenshots:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.