# Number of hits when running non-scroll queries

**URL:** <https://discuss.elastic.co/t/number-of-hits-when-running-non-scroll-queries/91660>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [July 3, 2017, 3:03pm UTC](https://discuss.elastic.co/t/number-of-hits-when-running-non-scroll-queries/91660 "2017-07-03T15:03:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mesfin](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mesfin](https://discuss.elastic.co/u/mesfin)\
**Post date:** [July 3, 2017, 3:03pm UTC](https://discuss.elastic.co/t/number-of-hits-when-running-non-scroll-queries/91660/1 "2017-07-03T15:03:47Z")

</div>

I have configured the datastore.type as elasticsearch and when running scroll queries, I see values in `meta.hits` in the rally-metrics-\* index. But, when running non-scroll queries, `meta.hits` doesn't have any value. Is it possible to get the number of hits when running non-scroll queries (where the `pages` and `result-per-page` properties aren't provided into the search benchmark)?

---

<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:** [July 3, 2017, 3:21pm UTC](https://discuss.elastic.co/t/number-of-hits-when-running-non-scroll-queries/91660/2 "2017-07-03T15:21:09Z")

</div>

Hi @mesfin,

I did not consider it yet to include the number of hits to any other query type than scroll queries. The reason is that I was initially concerned about any overhead on a performance-critical path. Would you please [raise an issue on Github](https://github.com/elastic/rally/issues/new)? Then I'll check the overhead and add it if it isn't too costly.

Daniel

---

<div class="post-metadata">

**Author:** ![mesfin](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mesfin](https://discuss.elastic.co/u/mesfin)\
**Post date:** [July 3, 2017, 3:37pm UTC](https://discuss.elastic.co/t/number-of-hits-when-running-non-scroll-queries/91660/3 "2017-07-03T15:37:53Z")

</div>

Thanks Daniel!

> <https://github.com/elastic/rally/issues/295>

---

<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:** [July 3, 2017, 3:51pm UTC](https://discuss.elastic.co/t/number-of-hits-when-running-non-scroll-queries/91660/4 "2017-07-03T15:51:09Z")

</div>

Hi @mesfin,

you're welcome. I'll have a look soon and if it is feasible it's quite likely to be included in the next release of Rally.

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:** [July 4, 2017, 2:03pm UTC](https://discuss.elastic.co/t/number-of-hits-when-running-non-scroll-queries/91660/5 "2017-07-04T14:03:14Z")

</div>

Hi,

the issue is fixed now and scheduled for the next release 0.6.1. as promised.

Daniel

---

<div class="post-metadata">

**Author:** ![mesfin](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mesfin](https://discuss.elastic.co/u/mesfin)\
**Post date:** [July 5, 2017, 1:25pm UTC](https://discuss.elastic.co/t/number-of-hits-when-running-non-scroll-queries/91660/6 "2017-07-05T13:25:29Z")

</div>

Thanks Daniel!

---

<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:** [August 2, 2017, 1:26pm UTC](https://discuss.elastic.co/t/number-of-hits-when-running-non-scroll-queries/91660/7 "2017-08-02T13:26:13Z")

</div>

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