# How to not store the completion suggester in the index in Elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-not-store-the-completion-suggester-in-the-index-in-elasticsearch/239450>\
**Category:** Elasticsearch\
**Created:** [July 1, 2020, 9:34am UTC](https://discuss.elastic.co/t/how-to-not-store-the-completion-suggester-in-the-index-in-elasticsearch/239450 "2020-07-01T09:34:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitterhh](https://avatars.discourse-cdn.com/v4/letter/g/b19c9b/32.png) [@gitterhh](https://discuss.elastic.co/u/gitterhh)\
**Post date:** [July 1, 2020, 9:34am UTC](https://discuss.elastic.co/t/how-to-not-store-the-completion-suggester-in-the-index-in-elasticsearch/239450/1 "2020-07-01T09:34:23Z")

</div>

I want to have a field `tags` as `completion`, and I do not want this field to participate in the scoring, so I am trying to apply the mapping

```auto
"tags": {
    "type": "completion",
    "index": false
}

```

And I am getting an error

```auto
ElasticsearchStatusException[Elasticsearch exception [type=mapper_parsing_exception, reason=Mapping definition for [tags] has unsupported parameters: [index : false]]]

```

How should be the mapping?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [July 1, 2020, 1:50pm UTC](https://discuss.elastic.co/t/how-to-not-store-the-completion-suggester-in-the-index-in-elasticsearch/239450/2 "2020-07-01T13:50:07Z")

</div>

the `completion` field does not support the `index` setting. If you execute a full text search query, any field of type `completion` will not participate in scoring. What makes you think otherwise?

---

<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 29, 2020, 1:50pm UTC](https://discuss.elastic.co/t/how-to-not-store-the-completion-suggester-in-the-index-in-elasticsearch/239450/3 "2020-07-29T13:50:11Z")

</div>

Closed on July 29, 2020, 1:50pm UTC

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