Hello everyone,
I have mapping that contains fileds like this
{
"team.id" : {"type": "long"},
"team.value" : {"type" : "text"} with keyword of course.
}
I may have documents with different team.id but same team.value.
How can I look for distinct objects (distincts team.id ) and return the whole object team.