# Suggester stops working

**URL:** <https://discuss.elastic.co/t/suggester-stops-working/175739>\
**Category:** Elasticsearch\
**Created:** [April 7, 2019, 9:59pm UTC](https://discuss.elastic.co/t/suggester-stops-working/175739 "2019-04-07T21:59:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stp\_ra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stp_ra/32/42073_2.png) [@stp\_ra](https://discuss.elastic.co/u/stp_ra)\
**Post date:** [April 7, 2019, 9:59pm UTC](https://discuss.elastic.co/t/suggester-stops-working/175739/1 "2019-04-07T21:59:20Z")

</div>

I have an autocomplete service that seems to work for a couple of days then after a few days of usage returns:

```
`{
  "error" : {
    "root_cause" : [
      {
        "type" : "parsing_exception",
        "reason" : "Unknown key for a START_OBJECT in [completion_suggest].",
        "line" : 1,
        "col" : 23
      }
    ],
    "type" : "parsing_exception",
    "reason" : "Unknown key for a START_OBJECT in [completion_suggest].",
    "line" : 1,
    "col" : 23
  },
  "status" : 400
}`

```

The query:

```
`curl localhost:9200/myac/_search?pretty -d '{"completion_suggest":{"song-suggest":{"prefix":"nir","completion":{"field":"completion_suggest"}}}}' -H'Content-Type: application/json'`

```

The mapping:

```
`{
    "mappings": {
        "query": {
            "dynamic": "strict",
            "properties": {
                "completion_suggest": {
                    "type": "completion",
                    "analyzer": "simple",
                    "search_analyzer": "simple",
                    "preserve_separators": true,
                    "preserve_position_increments": true,
                    "max_input_length": 20
                }
            }
        }
    }
}`

```

The index isn't even very large....just ~5000 terms. The other ES indices function normally and this is the only one that seems to break. If I delete the index re-map and add terms then it, again, will work for a few days before breaking again. I'm running version 6.2.4.

---

<div class="post-metadata">

**Author:** ![stp\_ra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stp_ra/32/42073_2.png) [@stp\_ra](https://discuss.elastic.co/u/stp_ra)\
**Post date:** [April 7, 2019, 11:45pm UTC](https://discuss.elastic.co/t/suggester-stops-working/175739/2 "2019-04-07T23:45:14Z")

</div>

If I simply delete and recreate the index then it works fine but tired of doing this every 2-3 days.

---

<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:** [May 5, 2019, 11:45pm UTC](https://discuss.elastic.co/t/suggester-stops-working/175739/3 "2019-05-05T23:45:26Z")

</div>

Closed on May 5, 2019, 11:45pm UTC

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