Elasticsearch completion suggest search with multiple-word inputs
问题 Using the Elasticsearch completion suggester I have problems returning multi-word input suggestions matching a one-word query. Example structure: PUT /test_index/ { "mappings": { "item": { "properties": { "test_suggest": { "type": "completion", "index_analyzer": "whitespace", "search_analyzer": "whitespace", "payloads": false } } } } } PUT /test_index/item/1 { "test_suggest": { "input": [ "cat dog", "elephant" ] } } Working query: POST /test_index/_suggest { "test_suggest":{ "text":"cat",