# Document count and includes\_action\_and\_meta\_data

**URL:** <https://discuss.elastic.co/t/document-count-and-includes-action-and-meta-data/100289>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [September 13, 2017, 5:24am UTC](https://discuss.elastic.co/t/document-count-and-includes-action-and-meta-data/100289 "2017-09-13T05:24:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharathr83](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@sharathr83](https://discuss.elastic.co/u/sharathr83)\
**Post date:** [September 13, 2017, 5:24am UTC](https://discuss.elastic.co/t/document-count-and-includes-action-and-meta-data/100289/1 "2017-09-13T05:24:32Z")

</div>

I have a custom rally track where I am bulk indexing data. My data is in the

```
action_and_meta_data\n
source\n

```

format, which means that I have 2 lines for each document. My types have 'includes\_action\_and\_meta\_data' set to true. Now if I set my 'document-count' to have the number of documents (which is the number of lines/2), rally throws an error saying the counts don't match. If I set the doc count as the number of lines, I see that that the action\_and\_meta\_data also gets indexed as a document.

Is there a setting I am missing ?

---

<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:** [September 13, 2017, 6:50am UTC](https://discuss.elastic.co/t/document-count-and-includes-action-and-meta-data/100289/2 "2017-09-13T06:50:51Z")

</div>

Hi @sharathr83,

sorry to hear this. This is an error in the documentation. The correct name of the setting is `includes-action-and-meta-data` (note the hyphens instead of underscores).

Can you please correct the setting, delete `~/.rally/benchmarks/data/YOUR_TRACK_NAME/*.json.offset` and retry?

Daniel

---

<div class="post-metadata">

**Author:** ![sharathr83](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@sharathr83](https://discuss.elastic.co/u/sharathr83)\
**Post date:** [September 13, 2017, 5:50pm UTC](https://discuss.elastic.co/t/document-count-and-includes-action-and-meta-data/100289/3 "2017-09-13T17:50:17Z")

</div>

yes, that worked. Thanks !

---

<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:** [October 11, 2017, 5:50pm UTC](https://discuss.elastic.co/t/document-count-and-includes-action-and-meta-data/100289/4 "2017-10-11T17:50:41Z")

</div>

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