I need to add a filter to suggest query. Is there a way to do that?
Sample query is
{
"suggest" : {
"text" : "sem",
"Body.Container.Text" : {
"phrase" : {
"field" : "Body.Container.Text.Raw",
"analyzer" : "standard",
"direct_generator" : [{
"field" : "Body.Container.Text.Raw",
"suggest_mode" : "always"
}
]
}
},
"Metadata.Name" : {
"phrase" : {
"field" : "Metadata.Name.Raw",
"analyzer" : "standard",
"direct_generator" : [{
"field" : "Metadata.Name.Raw",
"suggest_mode" : "always"
}
]
}
},
"Metadata.Description" : {
"phrase" : {
"field" : "Metadata.Description.Raw",
"analyzer" : "standard",
"direct_generator" : [{
"field" : "Metadata.Description.Raw",
"suggest_mode" : "always"
}
]
}
}
}
}