Hi ,
I have a query that returns a highlight fields , i wanna aggregate the fields returned by the query ( see code )
{
"query" : {
"query_string" : {
"query" : "*so*",
"fields": ["MemberFname", "TopicLabel"]
}
},
"highlight": {
"pre_tags" : ["", ""],
"post_tags" : ["", ""],
"fields" : {
"MemberFname" : {},
"TopicLabel": {}
}
}
}
i want to aggregate the fields "MemberFname" and "TopicLabel" to return unique values of these fields
any idea how to do it ?
thanks