Suggester stops working

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.

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

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