How can distinct document result without using Aggregation

I explain in simple way : Select distinct(*) from Product ı try to do in
elasticsearch but ı find aggregation cardinality but this can work for me ı
need distinct all document , how can ı do that ,
I think ı can do with script but find any clue. Is there any solution ??

--
Please update your bookmarks! We have moved to https://discuss.elastic.co/

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1b839f26-abfd-48a1-9d52-23e4db9d48db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.