# Cannot use mapping file with index analyzer settings

**URL:** <https://discuss.elastic.co/t/cannot-use-mapping-file-with-index-analyzer-settings/107227>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [November 10, 2017, 6:07pm UTC](https://discuss.elastic.co/t/cannot-use-mapping-file-with-index-analyzer-settings/107227 "2017-11-10T18:07:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierig\_LeSaux](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@Pierig\_LeSaux](https://discuss.elastic.co/u/Pierig_LeSaux)\
**Post date:** [November 10, 2017, 6:07pm UTC](https://discuss.elastic.co/t/cannot-use-mapping-file-with-index-analyzer-settings/107227/1 "2017-11-10T18:07:30Z")

</div>

Hello,

I get

`RequestError(400, 'mapper_parsing_exception', {'error': {'reason': "Failed to parse mapping [settings]: Root mapping definition has unsupported parameters ...`

When trying to use a mapping file with settings parametes, i.e.

```auto
{
  "settings": {
    "analysis": {
      "filter": { ....

```

How would one use esrally with an index schema that uses language analyzers?

---

<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:** [November 13, 2017, 8:02am UTC](https://discuss.elastic.co/t/cannot-use-mapping-file-with-index-analyzer-settings/107227/2 "2017-11-13T08:02:59Z")

</div>

Hi @Pierig_LeSaux,

the reason is that this file is treated as a mapping file and Rally issues a [PUT mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html) API call. Admittedly, this is not ideal and we should change this (I've raised [https://github.com/elastic/rally/issues/359](https://github.com/elastic/rally/issues/359)).

Meanwhile you could work around this problem by defining the index settings directly in`track.json` per challenge with the `index-settings` property (see [docs](http://esrally.readthedocs.io/en/stable/track.html#challenges)). Alternatively, you could [create an index template](http://esrally.readthedocs.io/en/stable/track.html#templates) that matches your index.

Both approaches are really just workarounds, hence we'll improve the situation in one of the upcoming releases. Thanks for bringing this up.

Daniel

---

<div class="post-metadata">

**Author:** ![Pierig\_LeSaux](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@Pierig\_LeSaux](https://discuss.elastic.co/u/Pierig_LeSaux)\
**Post date:** [November 13, 2017, 5:26pm UTC](https://discuss.elastic.co/t/cannot-use-mapping-file-with-index-analyzer-settings/107227/3 "2017-11-13T17:26:27Z")

</div>

Hi Daniel,

thank you for the clarification.

I'll keep an eye on that github issue, and I'll also try the workaround you suggested and let you know how it works for me.

---

<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:** [December 11, 2017, 5:26pm UTC](https://discuss.elastic.co/t/cannot-use-mapping-file-with-index-analyzer-settings/107227/4 "2017-12-11T17:26:37Z")

</div>

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