# Java Client Query Param for "search\_pipeline", Hybrid Neural Search

**URL:** <https://forum.opensearch.org/t/java-client-query-param-for-search-pipeline-hybrid-neural-search/19070>\
**Category:** OpenSearch Client Libraries\
**Tags:** opensearch-java\
**Created:** [April 26, 2024, 5:11pm UTC](https://forum.opensearch.org/t/java-client-query-param-for-search-pipeline-hybrid-neural-search/19070 "2024-04-26T17:11:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdomkline](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jdomkline](https://forum.opensearch.org/u/jdomkline)\
**Post date:** [April 26, 2024, 5:11pm UTC](https://forum.opensearch.org/t/java-client-query-param-for-search-pipeline-hybrid-neural-search/19070/1 "2024-04-26T17:11:38Z")

</div>

deleted please disregard

---

<div class="post-metadata">

**Author:** ![Leonxs](https://avatars.discourse-cdn.com/v4/letter/l/f6c823/32.png) [@Leonxs](https://forum.opensearch.org/u/Leonxs)\
**Post date:** [May 21, 2024, 3:25pm UTC](https://forum.opensearch.org/t/java-client-query-param-for-search-pipeline-hybrid-neural-search/19070/2 "2024-05-21T15:25:36Z")

</div>

I also encountered the same problem. How did you solve it?

---

<div class="post-metadata">

**Author:** ![Sheel](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sheel](https://forum.opensearch.org/u/Sheel)\
**Post date:** [June 4, 2024, 4:35pm UTC](https://forum.opensearch.org/t/java-client-query-param-for-search-pipeline-hybrid-neural-search/19070/3 "2024-06-04T16:35:59Z")

</div>

@jdomkline Could you tell me how did you solve this? I could not find the query param which can be used for “search\_pipeline” while sending a request using java client.

---

<div class="post-metadata">

**Author:** ![Sheel](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sheel](https://forum.opensearch.org/u/Sheel)\
**Post date:** [June 4, 2024, 4:41pm UTC](https://forum.opensearch.org/t/java-client-query-param-for-search-pipeline-hybrid-neural-search/19070/4 "2024-06-04T16:41:14Z")

</div>

@Leonxs I am also looking to solve this. Have you got any info on this?

---

<div class="post-metadata">

**Author:** ![jdomkline](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jdomkline](https://forum.opensearch.org/u/jdomkline)\
**Post date:** [July 29, 2024, 10:50pm UTC](https://forum.opensearch.org/t/java-client-query-param-for-search-pipeline-hybrid-neural-search/19070/5 "2024-07-29T22:50:52Z")

</div>

I closed this because a similar ticket was created the same day. As a patch I made this class, which is a redo of SearchRequest.java  
@Leonxs @Sheel  
HybridSearchRequest.Builder requestBuilder = new HybridSearchRequest.Builder()  
.index(SearchUtil.resolveIndex(config,  
lang, cntry, tnt))  
.fields(returnFields)  
.from(offset.intValue())  
.size(Math.toIntExact(limit));

requestBuilder.searchPipeline(searchConfig.getHybridSearchPipelineLexWeight());

> <https://github.com/jdomkline/files/blob/main/HybridSearchRequest.java>

---

<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 27, 2024, 10:51pm UTC](https://forum.opensearch.org/t/java-client-query-param-for-search-pipeline-hybrid-neural-search/19070/6 "2024-09-27T22:51:44Z")

</div>

Closed on September 27, 2024, 10:51pm UTC

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