[hibernate-dev] [HSEARCH] Geo queries in ElasticSearch
Nicolas Helleringer
nicolas.helleringer at gmail.com
Wed Jul 3 08:57:53 EDT 2013
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 automatically as possible.
Niko
2013/7/3 Ales Justin <ales.justin at gmail.com>:
> 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 <emmanuel at hibernate.org> 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-07-03 11:24, Nicolas Helleringer wrote:
>>> Was is demonstrated here has nothing of a facet : these are only aggregates.
>>>
>>> <quote>
>>> GeoDistanceFacet results:
>>> -------------------------------------------------------------
>>> Distance from origin: 0.0
>>> Distance to requested: 1000.0
>>> Number of results: 29
>>> Minimum distance: 0.0
>>> Maximum distance: 899.5358131385483
>>> Sum of distances: 17320.209230844222
>>> Mean distance: 597.2485941670421
>>> </quote>
>>>
>>> I see nothing we cannot do.
>>>
>>> Niko
>>>
>>> 2013/7/3 Emmanuel Bernard <emmanuel at hibernate.org>:
>>>> This morning I was reading http://hashmade.fr/elastic-search-geo-distance-search-with-sorted-and-faceted-results-using-java-native-api/
>>>> And the code https://github.com/jsebrien/elastic-search-tests
>>>>
>>>> I have to say that we compare quite well in number of lines of code and readability. Considering that ElasticSearch is considered the easy tool / API in the search space, I did not expect that.
>>>>
>>>> We could do better on the facet side, I particular to retrieve the facet data.
>>>>
>>>> By the way, they offer a way to facet by spatial distance, Hardy, Nicolas, how hard would it be to do the same?
>>>>
>>>> Emmanuel
>>>> _______________________________________________
>>>> hibernate-dev mailing list
>>>> hibernate-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
More information about the hibernate-dev
mailing list