Hello Team,
I am using elasticsearch 5.6 cluster and when I try to perform suggest query it is giving duplicate results. As data in the field contain duplicate data but I need a unique suggest result.
Mapping -- >
{
"indexTest-21-12-17": {
"mappings": {
"policy": {
"properties": {
"SuggestAccountName": {
"type": "completion",
"analyzer": "simple",
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 1000
}
}
}
}
}
}
Query -->
{"SuggestAccountName":{"text":"TE","completion":{"field":"SuggestAccountName","size":5}}}