I have been trying to get unique results on a query in elasticsearch. The query that I have written is given below. I am trying to get a solution to get unique results on the field called “penny”. Thanks in advance.
<code> {
"query": {
"exists": {
"field": "stateInfo.pennyimpstransactionResponse.pennyimpstransaction.RRNNumber"
}
}
}
}
</code>
<code> {
"query": {
"exists": {
"field": "stateInfo.pennyimpstransactionResponse.pennyimpstransaction.RRNNumber"
}
}
}
}
</code>
{
"query": {
"exists": {
"field": "stateInfo.pennyimpstransactionResponse.pennyimpstransaction.RRNNumber"
}
}
}
}