# Unable to apply indextemplate settings for ingest attachment plugin

**URL:** <https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522>\
**Category:** Elasticsearch\
**Created:** [February 9, 2017, 3:37pm UTC](https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522 "2017-02-09T15:37:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_Mestry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_mestry/32/42301_2.png) [@Vikas\_Mestry](https://discuss.elastic.co/u/Vikas_Mestry)\
**Post date:** [February 9, 2017, 3:37pm UTC](https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522/1 "2017-02-09T15:37:49Z")

</div>

Hello,

I am attempting to integrate the ingest attachment plugin along with ES v 5.2.0, based on the discussion mentioned in [https://github.com/elastic/elasticsearch/issues/18073](https://github.com/elastic/elasticsearch/issues/18073) we no longer support index level settings via the yml, we now have to utilize the index templates API.

ironically i am attempting to push the below setting to all my indices i attempt to create in my cluster

PUT [http://server:9200/\_template/my\_index\_template](http://server:9200/_template/my_index_template)

`{"template":"*","settings":{"index.mapping.attachment.indexed_chars":-1,"index.mapping.attachment.detect_language":"true", "index.refresh_interval":-1}}`

but I am receiving the following error while invoking this API call

```
HTTP/1.1 400 Bad Request
content-type: application/json; charset=UTF-8
content-length: 491

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.attachment.detect_language] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"}],"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.attachment.detect_language] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"},"status":400}

```

i've observed the above error for both , although i have the ingest attachment plugin installed & am able to index files using the ingest attachment processor.

`"index.mapping.attachment.indexed_chars":-1,"index.mapping.attachment.detect_language":"true"`

i am able to put the settings for

```
"index.refresh_interval":-1

```

could you let me know if i am missing out on something here.

Thanks,  
Vikas.

---

<div class="post-metadata">

**Author:** ![Vikas\_Mestry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_mestry/32/42301_2.png) [@Vikas\_Mestry](https://discuss.elastic.co/u/Vikas_Mestry)\
**Post date:** [February 11, 2017, 6:52pm UTC](https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522/2 "2017-02-11T18:52:01Z")

</div>

Anyone?

Thanks

---

<div class="post-metadata">

**Author:** ![Vikas\_Mestry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_mestry/32/42301_2.png) [@Vikas\_Mestry](https://discuss.elastic.co/u/Vikas_Mestry)\
**Post date:** [February 17, 2017, 2:50pm UTC](https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522/3 "2017-02-17T14:50:46Z")

</div>

so the ingest attachment settings cannot be applied via the index template is it ?

---

<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:** [February 17, 2017, 3:36pm UTC](https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522/4 "2017-02-17T15:36:21Z")

</div>

`ingest-attachment` and `mapper-attachments` are 2 different plugins.

You can't use settings provided by the later in the former.

So you did not install `mapper-attachments`. It means that settings `index.mapping.attachment.indexed_chars` and `index.mapping.attachment.detect_language` can not be used.

Look at [https://www.elastic.co/guide/en/elasticsearch/plugins/current/using-ingest-attachment.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/using-ingest-attachment.html)

You can define `indexed_chars` as a pipeline setting here but `detect_language` feature is not available. If you need it, we can probably add it. Can you open a feature request for that?

I think this is something which can come after [https://github.com/elastic/elasticsearch/pull/22339](https://github.com/elastic/elasticsearch/pull/22339) is merged.

Note that [FSCrawler project](https://github.com/dadoonet/fscrawler) supports [lang detection](https://github.com/dadoonet/fscrawler#language-detection).

HTH

---

<div class="post-metadata">

**Author:** ![Vikas\_Mestry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_mestry/32/42301_2.png) [@Vikas\_Mestry](https://discuss.elastic.co/u/Vikas_Mestry)\
**Post date:** [February 18, 2017, 6:59am UTC](https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522/5 "2017-02-18T06:59:03Z")

</div>

I guess i tried it via the same documentation link, seems the documentation got updated 🙂 , i have logged a [feature request](https://github.com/elastic/elasticsearch/issues/23246) for this.

Thanks,  
Vikas.

---

<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:** [February 18, 2017, 7:13am UTC](https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522/6 "2017-02-18T07:13:30Z")

</div>

Saw it. But can you update it as per my comment?

---

<div class="post-metadata">

**Author:** ![Vikas\_Mestry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_mestry/32/42301_2.png) [@Vikas\_Mestry](https://discuss.elastic.co/u/Vikas_Mestry)\
**Post date:** [February 18, 2017, 7:27am UTC](https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522/7 "2017-02-18T07:27:21Z")

</div>

Done

---

<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:** [March 18, 2017, 7:27am UTC](https://discuss.elastic.co/t/unable-to-apply-indextemplate-settings-for-ingest-attachment-plugin/74522/8 "2017-03-18T07:27:38Z")

</div>

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