# Is there a way to do msearch operations with ESRally?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-do-msearch-operations-with-esrally/276579>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [June 21, 2021, 8:45pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-do-msearch-operations-with-esrally/276579 "2021-06-21T20:45:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanoj85](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sanoj85/32/89731_2.png) [@sanoj85](https://discuss.elastic.co/u/sanoj85)\
**Post date:** [June 21, 2021, 8:45pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-do-msearch-operations-with-esrally/276579/1 "2021-06-21T20:45:58Z")

</div>

Like the title says. I was using the regular search operations in benchmark, but was considering switching to msearch. I know it is not in the documentation spec, but is there a way to emulate it, or is it on the way in a newer ESRally version?

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [June 21, 2021, 9:29pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-do-msearch-operations-with-esrally/276579/2 "2021-06-21T21:29:30Z")

</div>

Hello!

We have an issue in our backlog to address this in esrally core ([elastic/rally#300](https://github.com/elastic/rally/issues/300)) but in the meantime it is possible to do this, either with a `raw-request` or with a custom runner.

An example `raw-request` can be found in the issue [here](https://github.com/elastic/rally/issues/300#issuecomment-591834696)  
An example custom runner using the ES client's msearch functionality is implemented in the public eventdata track [here](https://github.com/elastic/rally-eventdata-track/blob/6/eventdata/runners/kibana_runner.py#L45)

More information on custom runners: [Rally Docs](https://esrally.readthedocs.io/en/stable/adding_tracks.html?highlight=custom%20runner#custom-runners)

Hope that helps!  
Rick B

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 19, 2021, 9:30pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-do-msearch-operations-with-esrally/276579/3 "2021-07-19T21:30:23Z")

</div>

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