Re: Geo bounds aggregation as a sub aggregator?

2014-09-03 Thread Owain Braddick
I found the bug in array resizing code. Raised issue at https://github.com/elasticsearch/elasticsearch/issues/7556. On Tuesday, September 2, 2014 3:30:54 PM UTC+1, Colin Goodheart-Smithe wrote: Ok, yes this does look like a bug so if you could raise an issue on github and post the issue

Re: Geo bounds aggregation as a sub aggregator?

2014-09-02 Thread Colin Goodheart-Smithe
Ok, yes this does look like a bug so if you could raise an issue on github and post the issue link back in this thread, that would be great. Thanks Colin On Tuesday, 2 September 2014 15:23:23 UTC+1, Owain Braddick wrote: Hi, I hit exactly the same issue today. It seems that the problem

Re: Geo bounds aggregation as a sub aggregator?

2014-07-25 Thread Colin Goodheart-Smithe
Could you post the full stack trace from the elasticsearch log file? This will help in working out where the query falls over Thanks On Friday, 25 July 2014 01:18:49 UTC+1, svartalf wrote: It is really odd, but it failed for me on the precision levels 6 and 7 with a

Geo bounds aggregation as a sub aggregator?

2014-07-24 Thread svartalf
Is there any way to use geo_bounds as a sub aggregator? I have a geohash_grid aggregation, and it will be very useful to get bounds for each bucket of the data. Right now my ES 1.3.0 says that he Could not find aggregator type [bounds] in [aggregations]]. -- You received this message because

Re: Geo bounds aggregation as a sub aggregator?

2014-07-24 Thread Colin Goodheart-Smithe
You should be able to achieve this with the below query. If you still cannot get it working could you provide a cURL example which reproduces your issue? curl -XGET http://localhost:9200/geo/_search; -d' { size: 0, aggs: { geohash : { geohash_grid: { field: location,

Re: Geo bounds aggregation as a sub aggregator?

2014-07-24 Thread svartalf
Here is an example: https://gist.github.com/svartalf/c3cb76c40dd4fa1374fa I'm using two inner aggregation functions, and with top_hits removed, geo_bounds works sometimes, and sometimes fails with a `response_2.json` (in the example) or `response_3.json`. With an enabled top_hits aggregator it

Re: Geo bounds aggregation as a sub aggregator?

2014-07-24 Thread Colin Goodheart-Smithe
I think the problem is that you have an extra aggregations object surrounding the geo_bounds aggregation. Try the following: curl -XGET http://localhost:9200/postings/_search; -d' { query: { filtered: { filter: { geo_bounding_box: {

Re: Geo bounds aggregation as a sub aggregator?

2014-07-24 Thread svartalf
It is really odd, but it failed for me on the precision levels 6 and 7 with a ArrayIndexOutOfBoundsException, and working for 5 and 8 levels. I had put a big query examples here: https://gist.github.com/svartalf/5db600e7ea2907fbda3a четверг, 24 июля 2014 г., 18:05:30 UTC+9 пользователь Colin