Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Emmanuel Bernard
On Wed 2013-07-03 14:57, Nicolas Helleringer wrote: > I did not get your point Ales : > > Hibernate Search does support geo queries since 4.2 (early 2013) so > yes you can know which points are in a certain distance event with big > number of data. > > The challenge for geo facets is to do this m

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Nicolas Helleringer
I did not get your point Ales : Hibernate Search does support geo queries since 4.2 (early 2013) so yes you can know which points are in a certain distance event with big number of data. The challenge for geo facets is to do this many times (as many times as they are defined ranges) as automatica

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Nicolas Helleringer
Good point. It might be worth a try =) Niko 2013/7/3 Emmanuel Bernard : > It seems to me that for each geo facet, you need to execute a query > which is fast. So in my example, the query will be executed 4 times. One > for the regular query and 3 times with different radius retrieving the > coun

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Emmanuel Bernard
It seems to me that for each geo facet, you need to execute a query which is fast. So in my example, the query will be executed 4 times. One for the regular query and 3 times with different radius retrieving the count. In other words, you don't really need to compute the distance for each point. W

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Nicolas Helleringer
The difficulty in this is that unlike other facets counts those are to be dynamically computed. The current facet systems (either native Lucene or Hibernate ones) are using the Lucen Token reverse indexes performance to compute the facets on queries results that can be very large. This cannot be

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Ales Justin
Can you then also easily (aka really fast) know which are those points -- even with really big number of data? On Jul 3, 2013, at 2:14 PM, Emmanuel Bernard wrote: > I'm more interested in something like > > Within 10 kms (23) > Between 10 and 50 kms (45) > Above 50 kms (75) > > > On Wed 2013

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Emmanuel Bernard
I'm more interested in something like Within 10 kms (23) Between 10 and 50 kms (45) Above 50 kms (75) On Wed 2013-07-03 11:24, Nicolas Helleringer wrote: > Was is demonstrated here has nothing of a facet : these are only aggregates. > > > GeoDistanceFacet results: > ---

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Nicolas Helleringer
Was is demonstrated here has nothing of a facet : these are only aggregates. GeoDistanceFacet results: - Distance from origin: 0.0 Distance to requested: 1000.0 Number of results: 29 Minimum distance: 0.0 Maximum distance: 899.5358131385