# Migrating custom search plugin from hlrc to java client

**URL:** <https://forum.opensearch.org/t/migrating-custom-search-plugin-from-hlrc-to-java-client/20630>\
**Category:** OpenSearch Client Libraries\
**Tags:** opensearch-java\
**Created:** [July 31, 2024, 4:39pm UTC](https://forum.opensearch.org/t/migrating-custom-search-plugin-from-hlrc-to-java-client/20630 "2024-07-31T16:39:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![silentduck](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@silentduck](https://forum.opensearch.org/u/silentduck)\
**Post date:** [July 31, 2024, 4:39pm UTC](https://forum.opensearch.org/t/migrating-custom-search-plugin-from-hlrc-to-java-client/20630/1 "2024-07-31T16:39:38Z")

</div>

**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

```auto
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** :

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [September 29, 2024, 4:40pm UTC](https://forum.opensearch.org/t/migrating-custom-search-plugin-from-hlrc-to-java-client/20630/2 "2024-09-29T16:40:13Z")

</div>

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