Hybrid searches missing inner_hits results

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

"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:

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.

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