Я использую предложения завершения следующим образом. Возникла проблема с числовым автоматическим предложением
index : {
"_index": "mysuggestors",
"_type": "suggest",
"_id": "584a4455",
"_score": 1,
"_source": {
"name": "Test 100AH 200 Title",
"suggest": {
"input": [
"Test",
"100AH",
"200",
"100",
"200 Title",
"Titl",
],
"output": "Test 100AH 200 Title",
"payload": {
"id": "584a4455"
},
"weight": 10
}
}
}
case 1.
autosuggest query :
{"suggestions": {
"text": "100",
"completion": {"field": "suggest"}
}}
response : empty response
case 2.
autosuggest query :
{"suggestions": {
"text": "100A",
"completion": {"field": "suggest"}
}}
response : valid response
case 3.
autosuggest query :
{"suggestions": {
"text": "Tes",
"completion": {"field": "suggest"}
}}
response : valid response