Completion suggester: Not returning all options

The mapping of field looks like
'''
"topics": {
"type": "text",
"fields": {
"topics_suggest": {
"type": "completion",
"analyzer": "english",
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
}
}
}
'''
A sample document has this data:
'''
"topics": [
"Cloud Computing",
"Cloud Services"
]
'''
The query looks like ...
'''
GET test_new_index/_search
{
"_source": "false",
"suggest": {
"topics_suggest": {
"completion": {
"field": "topics.topics_suggest",
"fuzzy": true
},
"prefix": "cloud"
}
}
}
'''
The output is
'''
"suggest": {
"topics_suggest": [
{
"text": "cloud",
"offset": 0,
"length": 5,
"options": [
{
"text": "Cloud Computing",
"_index": "test_autosuggest_english_analyzer",
"_type": "document",
"_id": "40000202",
"_score": 4,
"_source": {}
}
]
}
]
}
'''
It should return both Cloud Computing and Cloud Services.

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