RE: Any idea to remove the duplicates from the search results?

2014-09-26 Thread Tugberk Ugurlu
Hi, You are probably looking for the same thing that I was looking for a few days ago: https://groups.google.com/forum/#!searchin/elasticsearch/tugberk/elasticsearch/1uCQ7R8vCS8/-iRJLrdGGrYJ Top hits aggregation

Re: get top 1 row of each group

2014-09-24 Thread Tugberk Ugurlu
} ] } } }, { "key": "541afe09532aec0f305c5f2b", "doc_count": 1, "top_team_hits": { "hits":

Re: get top 1 row of each group

2014-09-24 Thread Tugberk Ugurlu
Looking at the top hits aggregation <http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-aggregations-metrics-top-hits-aggregation.htm>. I guess this is what I want. I will try this out now. On Wednesday, September 24, 2014 1:18:27 PM UTC+3, Tugberk Ugurlu wrote:

get top 1 row of each group

2014-09-24 Thread Tugberk Ugurlu
In my sport index, I have the following documents indexed as football_team type: https://gist.github.com/tugberkugurlu/4fd750a5ada3ee5de17a#file-index-js Here, each football team has a name and some strength values. Besides that, there is a player_ids collection for each team. The team stregth

term and range filters together in an elasticsearch query

2014-09-21 Thread Tugberk Ugurlu
Hi, any idea: http://stackoverflow.com/questions/25959492/term-and-range-filters-together-in-an-elasticsearch-query Tugberk -- 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, sen