# Unable to find analyzers

**URL:** <https://discuss.elastic.co/t/unable-to-find-analyzers/31649>\
**Category:** Elasticsearch\
**Created:** [October 5, 2015, 4:13pm UTC](https://discuss.elastic.co/t/unable-to-find-analyzers/31649 "2015-10-05T16:13:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_M](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@Ben\_M](https://discuss.elastic.co/u/Ben_M)\
**Post date:** [October 5, 2015, 4:13pm UTC](https://discuss.elastic.co/t/unable-to-find-analyzers/31649/1 "2015-10-05T16:13:39Z")

</div>

I don't appear to have the ability to add analyzers. I'm attempting the Spanish analyzer example from the ES website. My settings are as follows:

```
"settings" : {
          "index" : {
            "creation_date" : "1444061187427",
            "analysis" : {
              "analyzer" : {
                "es_std" : {
                  "type" : "standard",
                  "stopwords" : "_spanish_"
                },
                "content" : {
                  "type" : "custom",
                  "tokenizer" : "whitespace"
                }
              }
            },
            "number_of_shards" : "5",
            "number_of_replicas" : "2",
            "version" : {
              "created" : "1050299"
            },
            "uuid" : "lAUSIkAbKP2Jk-v3uXDFaB"
          }
        }

```

I then get the following response for this call:

```
curl -XGET -u dev-user:foobar 'https://foo.bar:1234/_analyze?analyzer=es_std' -d 'El veloz zorro marrón'

{"error":"ElasticsearchIllegalArgumentException[failed to find analyzer [es_std]]","status":400}

```

What am I doing wrong?

Thanks,  
Ben

---

<div class="post-metadata">

**Author:** ![Ben\_M](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@Ben\_M](https://discuss.elastic.co/u/Ben_M)\
**Post date:** [October 6, 2015, 12:09am UTC](https://discuss.elastic.co/t/unable-to-find-analyzers/31649/2 "2015-10-06T00:09:54Z")

</div>

I've simplified my structure. Here's some updated JSON with more detail. I've tried a number of analyzers but still get the same error. I've trawled through the docs and have stripped the model right back to test but still can't figure this out.

```
{
  "myIndex" : {
    "aliases" : { },
    "mappings" : {
      "story" : {
        "properties" : {
          "clips" : {
            "properties" : {
              "description" : {
                "type" : "string"
              },
              "title" : {
                "type" : "string",
                "analyzer" : "es_std"
              }
            }
          },
          "title" : {
            "type" : "string"
          }
        }
      }
    },
    "settings" : {
      "index" : {
        "creation_date" : "1444089042546",
        "number_of_shards" : "5",
        "analysis" : {
          "analyzer" : {
            "es_std" : {
              "type" : "standard",
              "stopwords" : "_spanish_"
            }
          }
        },
        "number_of_replicas" : "1",
        "version" : {
          "created" : "1050299"
        },
        "uuid" : "wzmcLKSJDLGyX43yNBDzDQ"
      }
    },
    "warmers" : { }
  }
}

/_analyze?analyzer=es_std' -d 'El veloz zorro marrón'
{"error":"ElasticsearchIllegalArgumentException[failed to find analyzer [es_std]]","status":400}
```

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 6, 2015, 5:31am UTC](https://discuss.elastic.co/t/unable-to-find-analyzers/31649/3 "2015-10-06T05:31:12Z")

</div>

The "analysis" object goes straight under "settings". It's not nested under "index".

```
"settings" : {
  "analysis" : {
    "analyzer" : {
      ...
    }
  },
  ...
}
```

---

<div class="post-metadata">

**Author:** ![Ben\_M](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@Ben\_M](https://discuss.elastic.co/u/Ben_M)\
**Post date:** [October 6, 2015, 8:20am UTC](https://discuss.elastic.co/t/unable-to-find-analyzers/31649/4 "2015-10-06T08:20:39Z")

</div>

I've tried what you said but no luck - it places the analyzer below my index. Here are my exact steps. No other indexes exist.

```
curl -u dev-user:password -XPUT 'https://foo.com:10724/myindex?pretty'
{
  "acknowledged" : true
}

curl -u dev-user:password -XPOST 'https://foo.com:10724/myindex/_close?pretty'
{
  "acknowledged" : true
}

curl -u dev-user:password -XPUT 'https://foo.com:10724/_settings?pretty' -d '{"settings":{"analysis":{"analyzer":{"es_std":{ "type":"standard","stopwords":"_spanish_"}}}}}'
{
  "acknowledged" : true
}

curl -u dev-user:password -XPOST 'https://foo.com:10724/myindex/_open?pretty'
{
  "acknowledged" : true
}

curl -XGET -u dev-user:password 'https://foo.com:10724/myindex/?pretty&_mapping'
{
  "myindex" : {
    "aliases" : { },
    "mappings" : { },
    "settings" : {
      "index" : {
        "creation_date" : "1444119219943",
        "number_of_shards" : "5",
        "analysis" : {
          "analyzer" : {
            "es_std" : {
              "type" : "standard",
              "stopwords" : "_spanish_"
            }
          }
        },
        "number_of_replicas" : "2",
        "version" : {
          "created" : "1050299"
        },
        "uuid" : "iFm3U1RER2CopMwFSWAI3w"
      }
    },
    "warmers" : { }
  }
}

curl -XGET -u dev-user:password 'https://foo.com:10724/_analyze?analyzer=es_std&pretty' -d 'El veloz zorro marrón'
{
  "error" : "ElasticsearchIllegalArgumentException[failed to find analyzer [es_std]]",
  "status" : 400
}
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 6, 2015, 8:32am UTC](https://discuss.elastic.co/t/unable-to-find-analyzers/31649/5 "2015-10-06T08:32:33Z")

</div>

Try this:

```
curl -XGET -u dev-user:password 'https://foo.com:10724/myindex/_analyze?analyzer=es_std&pretty' -d 'El veloz zorro marrón'
```

---

<div class="post-metadata">

**Author:** ![Ben\_M](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@Ben\_M](https://discuss.elastic.co/u/Ben_M)\
**Post date:** [October 6, 2015, 8:37am UTC](https://discuss.elastic.co/t/unable-to-find-analyzers/31649/6 "2015-10-06T08:37:24Z")

</div>

> [@dadoonet](#):
>
> curl -XGET -u dev-user:password '[https://foo.com:10724/myindex/\_analyze?analyzer=es\_std&pretty](https://foo.com:10724/myindex/_analyze?analyzer=es_std&pretty)' -d 'El veloz zorro marrón'

That's it! Many thanks everyone.

---

<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, 11:46pm UTC](https://discuss.elastic.co/t/unable-to-find-analyzers/31649/7 "2017-07-05T23:46:35Z")

</div>


