I'll definitely upgrade. Thanks On Thursday, August 7, 2014 1:07:01 AM UTC+3, Ivan Brusic wrote: > > Sorry, I meant to specify the version, but I forgot. If you do upgrade, > here is another explanation of top hits: > http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/top-hits.html > > -- > Ivan > > > On Wed, Aug 6, 2014 at 2:59 PM, David Pilato <[email protected] > <javascript:>> wrote: > >> This has been added in 1.3.0: >> https://github.com/elasticsearch/elasticsearch/pull/6124 >> >> -- >> *David Pilato* | *Technical Advocate* | *Elasticsearch.com* >> @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr >> <https://twitter.com/elasticsearchfr> >> >> >> Le 6 août 2014 à 23:49:25, slavag ([email protected] <javascript:>) a >> écrit: >> >> Hi, Thanks for the reply. >> I'm trying to define top hits aggregation but getting error : "Parse >> Failure [Could not find aggregator type [top_hits] in [single_result]]]; }]" >> This is my aggregation definition, first bucket is grouped by id and the >> nested bucket is grouped by date and then I want to get only one document >> from each nested bucket. >> >> "aggs" : { >> "id" : { >> "terms" : { >> "field" : "id" >> }, >> "aggs" : { >> "bckdate" : { >> "terms" : { >> "field" : "date" >> }, >> "aggs" : { >> "single_result" : { >> "top_hits" : { >> "sort": [ >> { >> "id": { >> "order": >> "desc" >> } >> } >> ], >> "_source": { >> "include": [ >> "*" >> ] >> }, >> "size" : 1 >> } >> } >> } >> } >> } >> } >> } >> >> What could be issue with my aggregation ? I'm using ES 1.2.1 >> >> Thanks >> >> On Wednesday, August 6, 2014 10:06:40 PM UTC+3, Ivan Brusic wrote: >>> >>> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/edd95f65-c380-410b-9f0f-465dd78e1bad%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elasticsearch/edd95f65-c380-410b-9f0f-465dd78e1bad%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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/etPan.53e2a53a.2ae8944a.18f0%40MacBook-Air-de-David.local >> >> <https://groups.google.com/d/msgid/elasticsearch/etPan.53e2a53a.2ae8944a.18f0%40MacBook-Air-de-David.local?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/d7d48fd4-7865-4422-9767-c48316485db2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
