Can REST API _msearch support new feature response filter?

I used the new feature (JSON response body filtering) under elasticsearch1.6.0, but failed with API _msearch.
I tried _search api, it works (the URL filter_path is the same as _msearch URL).
But when i use _msearch, it only returns "{}".
the msearch URL shows below:

1 Like

According to the _msearch documentation, the response will have an array called responses which will contain the response for each of your searches. Your filterpath does not include that array, it assumes that there will be a field in the root of the JSON called aggregations. try setting you filter_path to include responses:


If that doesn't work, run your _msearch request without any filter_path and check the structure of the response to see what you are missing.

1 Like

it works.
thank you very much.