Perhaps the top hits aggregation can help:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html

-- 
Ivan


On Wed, Aug 6, 2014 at 11:21 AM, slavag <[email protected]> wrote:

> Hi,
> Need some advise.
> I have indexed documents, each document has internal id that also indexed
> as just another indexed field, this id is not used as indexed document id
> (_id).
> There could be situation when same document is indexed more than once
> (each of the indexed instances will have different elasticsearch _id), when
> I search I'm getting result all those documents (including multiple
> instance of the same source document), is there any way to get kind of
> distinct results, I mean
> to get search result only unique documents, based on some field form the
> indexed document ?
>
> Thanks
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/afc78f11-6050-4471-baec-7e1d2faddb0b%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/afc78f11-6050-4471-baec-7e1d2faddb0b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDGEPns4eK0DPOp9pgOy0nO4RVS_ZE%2Ba-rr-LOXk_Nn8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to