# Completion suggester - input as mapping

**URL:** <https://discuss.elastic.co/t/completion-suggester-input-as-mapping/103855>\
**Category:** Elasticsearch\
**Created:** [October 13, 2017, 8:19am UTC](https://discuss.elastic.co/t/completion-suggester-input-as-mapping/103855 "2017-10-13T08:19:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacktuck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jacktuck/32/32217_2.png) [@jacktuck](https://discuss.elastic.co/u/jacktuck)\
**Post date:** [October 13, 2017, 8:19am UTC](https://discuss.elastic.co/t/completion-suggester-input-as-mapping/103855/1 "2017-10-13T08:19:08Z")

</div>

In the docs, there is an example:

```auto
PUT music
{
    "mappings": {
        "song" : {
            "properties" : {
                "suggest" : {
                    "type" : "completion"
                },
                "title" : {
                    "type": "keyword"
                }
            }
        }
    }
}

```

```auto
PUT music/song/1?refresh
{
    "suggest" : {
        "input": ["Nevermind", "Nirvana"],
        "weight" : 34
    }
}

```

Is it possible to skip this second step by having `input` put in the mapping as a path (e.g. to `title`)?  
What would that look like?

---

<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:** [November 10, 2017, 8:19am UTC](https://discuss.elastic.co/t/completion-suggester-input-as-mapping/103855/2 "2017-11-10T08:19:37Z")

</div>

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