Unique values on the matching docs

Hello

I have a query with a from/size, and I need to get the unique values of a
specific field of the returned docs only. I could do it in the client side,
but it would help if ElasticSearch could do it for me

The Terms Aggregation helps getting the unique values, but it ignores the
from/size of the query.

Is there a way to run the Terms Aggregation in the results only, or is
there another way of getting unique values on the search result?

Thanks in advance

Roger

--
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/CAJp2532diRjvrA-GcM1nNETE7Cuc26HoMBCY6mSJ_nYs7_oH%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.