# Hybrid searches missing inner\_hits results

**URL:** <https://forum.opensearch.org/t/hybrid-searches-missing-inner-hits-results/19218>\
**Category:** Machine Learning\
**Created:** [May 6, 2024, 8:26pm UTC](https://forum.opensearch.org/t/hybrid-searches-missing-inner-hits-results/19218 "2024-05-06T20:26:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dswitzer2](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/dswitzer2/32/2507_2.png) [@dswitzer2](https://forum.opensearch.org/u/dswitzer2)\
**Post date:** [May 6, 2024, 8:26pm UTC](https://forum.opensearch.org/t/hybrid-searches-missing-inner-hits-results/19218/1 "2024-05-06T20:26:41Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):

```auto
"version" : {
  "distribution" : "opensearch",
  "number" : "2.13.0",
  "build_type" : "tar",
  "build_hash" : "7ec678d1b7c87d6e779fdef94e33623e1f1e2647",
  "build_date" : "2024-03-26T00:02:39.659767978Z",
  "build_snapshot" : false,
  "lucene_version" : "9.10.0",
  "minimum_wire_compatibility_version" : "7.10.0",
  "minimum_index_compatibility_version" : "7.0.0"
}

```

**Describe the issue** :  
When running a hybrid search, the `inner_hits` are not being returned from the inner queries. Running the individual queries correctly returns the `inner_hits` results, but when I merge the queries to use a hybrid search, the `inner_hits` are no longer returned with the results.

In my specific use case, I’m trying to return the `inner_hits` for a nested object, so I can relay to the user which specific item caused the match.

Is there a way to get a Hybrid search to return the `inner_hits` results?

Or is the an alternative way to generate a “hybrid” result that does not use the actual `hybrid` query type?

**NOTE** — There is a Github issue filed for this:

> <https://github.com/opensearch-project/neural-search/issues/718>
>
> \### Is your feature request related to a problem?
> Yes, I'm experiencing a probl…em when I use the hybrid search plugin in OpenSearch v2.11.0. Specifically, when I include the "inner\_hits" parameter in my query for nested objects, I do not receive any inner hits in the response. This is causing frustration as my system requires this level of detail for optimal operation.
> 
> \### What solution would you like?
> I would like the hybrid search plugin to be updated to include the functionality to correctly return inner hits from nested queries. Ideally, this would function seamlessly as it does in standard OpenSearch queries. This improvement would allow me and other users to fully utilize the power of the hybrid search plugin.

---

<div class="post-metadata">

**Author:** ![martin.g](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/martin.g/32/5294_2.png) [@martin.g](https://forum.opensearch.org/u/martin.g)\
**Post date:** [May 8, 2024, 1:19am UTC](https://forum.opensearch.org/t/hybrid-searches-missing-inner-hits-results/19218/2 "2024-05-08T01:19:30Z")

</div>

Hello Dan,

Hybrid query does not support inner\_hits results as of now. Team will review if implementation of this feature is feasible, and if yes then team will assign a proper priority. Please use mentioned GH issue to track the progress.

---

<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:** [July 7, 2024, 1:19am UTC](https://forum.opensearch.org/t/hybrid-searches-missing-inner-hits-results/19218/3 "2024-07-07T01:19:33Z")

</div>

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