# Simple\_phrase suggester is not supported by ElasticSearch 1.7.3?

**URL:** <https://discuss.elastic.co/t/simple-phrase-suggester-is-not-supported-by-elasticsearch-1-7-3/36423>\
**Category:** Elasticsearch\
**Created:** [December 4, 2015, 9:48pm UTC](https://discuss.elastic.co/t/simple-phrase-suggester-is-not-supported-by-elasticsearch-1-7-3/36423 "2015-12-04T21:48:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oxymor0n](https://avatars.discourse-cdn.com/v4/letter/o/90db22/32.png) [@oxymor0n](https://discuss.elastic.co/u/oxymor0n)\
**Post date:** [December 4, 2015, 9:48pm UTC](https://discuss.elastic.co/t/simple-phrase-suggester-is-not-supported-by-elasticsearch-1-7-3/36423/1 "2015-12-04T21:48:46Z")

</div>

I'm trying to use ElasticSearch 1.7.3 to implement a Did-you-mean function for my company's search engine. I've followed the documentation to set up a Phrase Suggester and created a customized mapping to support that.

However, when I do a `_suggest` query, I get `ElasticsearchIllegalArgumentException[Suggester[simple_phrase] not supported]`. What am I doing wrong?

This is my query:

```
POST knowledge_graph/entities/_suggest
{
  "suggest": {
    "text" : "apple in",
    "simple_phrase": {
      "phrase" : {
        "field" : "canonical_name"
      }
    }
  }
}

```

I get the following response:

```
{
  "_shards": {
    "total": 5,
    "successful": 0,
    "failed": 5,
    "failures": [
      {
        "index": "knowledge_graph",
        "shard": 0,
        "status": 500,
        "reason": "BroadcastShardOperationFailedException[[knowledge_graph][0] ]; nested: ElasticsearchException[failed to execute suggest]; nested: ElasticsearchIllegalArgumentException[Suggester[simple_phrase] not supported]; "
      },
      ...
    ]
  }
} 

```

Here's my index's settings and mappings:

```
{
  "knowledge_graph": {
    "aliases": {},
    "mappings": {
      "entities": {
        "properties": {
          "autocomplete": {
            "type": "completion",
            "analyzer": "simple",
            "payloads": true,
            "preserve_separators": true,
            "preserve_position_increments": true,
            "max_input_length": 50
          },
          "canonical_name": {
            "type": "string",
            "analyzer": "simple",
            "fields": {
              "shingles": {
                "type": "string",
                "analyzer": "simple_shingle_analyzer"
              }
            }
          },
          "entity_query": {
            "properties": {
              "simple_phrase": {
                "properties": {
                  "phrase": {
                    "properties": {
                      "field": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "text": {
                "type": "string"
              }
            }
          },
          "suggest": {
            "properties": {
              "simple_phrase": {
                "properties": {
                  "phrase": {
                    "properties": {
                      "field": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "text": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "settings": {
      "index": {
        "creation_date": "1449251691345",
        "analysis": {
          "filter": {
            "shingles_1_6": {
              "type": "shingle",
              "max_shingle_size": "6",
              "output_unigrams_if_no_shingles": "true"
            }
          },
          "analyzer": {
            "simple_shingle_analyzer": {
              "type": "custom",
              "filter": [
                "lowercase",
                "shingles_1_6"
              ],
              "tokenizer": "standard"
            }
          }
        },
        "number_of_shards": "5",
        "number_of_replicas": "0",
        "version": {
          "created": "1070399"
        },
        "uuid": "g_Yp7z6kQHCDRtd6TvVlzQ"
      }
    },
    "warmers": {}
  }
}
```

---

<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 5, 2017, 11:33pm UTC](https://discuss.elastic.co/t/simple-phrase-suggester-is-not-supported-by-elasticsearch-1-7-3/36423/2 "2017-07-05T23:33:28Z")

</div>


