How to fetch the distinct records from Elastic Search.
field1 field2 field3
1 abc xyz
2 abc def
3 abc pqr
Now,iam searhing for xyz OR def OR pqr.
For these records field2 value is same.
now,Iam getting the 3 records(abc,abc,abc). But,I need only one
record(abc). Without iterating the searchHits.
In SearchHits it should consists only distinct records.
How,can i query for getting the distinct Results.
Please help me.
Thanks in Advance.
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.