# Rally - Search operation on all types

**URL:** <https://discuss.elastic.co/t/rally-search-operation-on-all-types/62260>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [October 5, 2016, 10:58am UTC](https://discuss.elastic.co/t/rally-search-operation-on-all-types/62260 "2016-10-05T10:58:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aswinm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aswinm/32/42578_2.png) [@aswinm](https://discuss.elastic.co/u/aswinm)\
**Post date:** [October 5, 2016, 10:58am UTC](https://discuss.elastic.co/t/rally-search-operation-on-all-types/62260/1 "2016-10-05T10:58:29Z")

</div>

Hi,

In esrally, when I have more than 1 type in my track, how can I make a search operation across all types in my index? Should I specify "\_all" as the type? but doing that gives very different, quick results compared to other valid operations. This is not specified anywhere in the documentation. Can anyone help me on this?

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [October 5, 2016, 3:31pm UTC](https://discuss.elastic.co/t/rally-search-operation-on-all-types/62260/2 "2016-10-05T15:31:40Z")

</div>

Hi @aswinm,

I did not try it locally, but Rally just uses the Elasticsearch Python client under the hood. [According to the docs](http://elasticsearch-py.readthedocs.io/en/master/api.html?highlight=search#elasticsearch.Elasticsearch.search), just don't specify the type in the track and it should search across all types.

Daniel

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [October 5, 2016, 3:34pm UTC](https://discuss.elastic.co/t/rally-search-operation-on-all-types/62260/3 "2016-10-05T15:34:58Z")

</div>

Hi @aswinm,

I've just seen that [Rally is a bit too strict in this case](https://github.com/elastic/rally/blob/master/esrally/track.py#L587-L588) and give you a syntax error. I'll see that I can fix this soon and create a new release.

A workaround is to specify all types as a comma-separated list in the track.

Daniel

P.S.: I've created [https://github.com/elastic/rally/issues/161](https://github.com/elastic/rally/issues/161)

---

<div class="post-metadata">

**Author:** ![aswinm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aswinm/32/42578_2.png) [@aswinm](https://discuss.elastic.co/u/aswinm)\
**Post date:** [October 6, 2016, 7:29am UTC](https://discuss.elastic.co/t/rally-search-operation-on-all-types/62260/4 "2016-10-06T07:29:41Z")

</div>

@danielmitterdorfer Thank you.. I will try giving a comma-seperated list of tracks.

---

<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 5, 2017, 10:14pm UTC](https://discuss.elastic.co/t/rally-search-operation-on-all-types/62260/5 "2017-07-05T22:14:25Z")

</div>


