Limiting query results

2014-08-14 Thread julie dabbs
Does anyone know how to execute a query with aggregations and once the query is complete only show the top 100 hits in a browser. If I use filter limit I am not getting the best results. If I use still am displaying a ridiculous total hits back to the user. I am running on version 1.3. Can

Re: Limiting query results

2014-08-14 Thread Isabel Drost-Fromm
On Thu, Aug 14, 2014 at 10:31 AM, julie dabbs julie.e.da...@gmail.com wrote: Does anyone know how to execute a query with aggregations and once the query is complete only show the top 100 hits in a browser. If I use filter limit I am not getting the best results. If I use still am displaying

Re: Limiting query results

2014-08-14 Thread julie dabbs
No, I have a query with aggregations that can yield thousands of results back to the user. I want to only show the top say 200 hits and not this huge number but keeping the integrity of the data. i.e showing the results with the highest scores On Thursday, August 14, 2014 10:04:25 AM UTC+1,

Re: Limiting query results

2014-08-14 Thread Ashish Mishra
Use the size parameter. e.g. $ curl -XGET 'http://localhost:9200/twitter/tweet/_search' -d '{ size: 200, aggregations: { my_agg: { terms: { field: text } } } } ' On Thursday, August 14, 2014 2:59:52 AM UTC-7, julie dabbs wrote: No, I have a query with

Re: Limiting query results

2014-08-14 Thread julie dabbs
Unfortunately this does not change the total of results returned On Thursday, August 14, 2014 9:31:12 AM UTC+1, julie dabbs wrote: Does anyone know how to execute a query with aggregations and once the query is complete only show the top 100 hits in a browser. If I use filter limit I am not

Re: Limiting query results

2014-08-14 Thread Isabel Drost-Fromm
I think an example (trimmed to the relevant parts) of the query you are sending, the results you get and the results you expect would help ... Isabel ​ -- You received this message because you are subscribed to the Google Groups elasticsearch group. To unsubscribe from this group and stop

Re: Limiting query results

2014-08-14 Thread Ramy
Try something like that... aggs: { agg_name: { terms: { field: my_field, size: 100 } } } Am Donnerstag, 14. August 2014 16:40:11 UTC+2 schrieb julie dabbs: Unfortunately this does not change the total of results returned On Thursday, August 14, 2014