Can't get Top Level Inner Hits with search results in 6.x


(Ben Wilde) #1

I need to be able to execute a query that returns a set of results while also including an independently filtered set of inner hits for those results.

This was easy in version 2.x, I could add a top level inner hits section to the request with it's own independent filter. This way, I could return only the inner hits that I needed without changing the query.

Now in 6.x, the only way I see that I can do this is by making two separate round trip requests to the cluster which is definitely not ideal.

Is there a way that I can do this in a single request?


(system) #2

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