Cannot use mapping file with index analyzer settings

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.

{
  "settings": {
    "analysis": {
      "filter": {  ....

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

Hi @Pierig_LeSaux,

the reason is that this file is treated as a mapping file and Rally issues a PUT mapping API call. Admittedly, this is not ideal and we should change this (I've raised https://github.com/elastic/rally/issues/359).

Meanwhile you could work around this problem by defining the index settings directly intrack.json per challenge with the index-settings property (see docs). Alternatively, you could create an index template 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

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.

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