# Global Geo-Distance search

**URL:** <https://discuss.elastic.co/t/global-geo-distance-search/9186>\
**Category:** Elasticsearch\
**Created:** [September 28, 2012, 9:27am UTC](https://discuss.elastic.co/t/global-geo-distance-search/9186 "2012-09-28T09:27:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satyendar\_duddukuri](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@satyendar\_duddukuri](https://discuss.elastic.co/u/satyendar_duddukuri)\
**Post date:** [September 28, 2012, 9:27am UTC](https://discuss.elastic.co/t/global-geo-distance-search/9186/1 "2012-09-28T09:27:25Z")

</div>

I am trying to perform a geo distance search globally. I have used lat &  
lon from france ( "sites.location" : "2.219239,48.843028") and searched by  
120km geo distance filter. Found no results. If I use UK geopoint it works.  
_I want to know if there is a seperate plugin or any other way to perform  
geo distance search globally?_

curl -X GET "[http://localhost:9200/business/\_search?pretty=true](http://localhost:9200/business/_search?pretty=true)" -d '{

> ```
> "query" : {
> "filtered" : {
> "query" : {
> "match_all" : {}
> },
> "filter" : {
> "geo_distance" : {
> "distance" : "120km",
> "sites.location" : "2.219239,48.843028"
> }
> }
> }
> }
> 
> ```
> 
> }'  
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }

--

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 28, 2012, 11:32am UTC](https://discuss.elastic.co/t/global-geo-distance-search/9186/2 "2012-09-28T11:32:39Z")

</div>

What do you mean by globally? the mentioned query you executed will only include the ones matching the required filtered distance. Maybe you can share a test case for it?

On Sep 28, 2012, at 11:27 AM, satyendar duddukuri [satyendar.duddukuri@2ergo.com](mailto:satyendar.duddukuri@2ergo.com) wrote:

> I am trying to perform a geo distance search globally. I have used lat & lon from france ( "sites.location" : "2.219239,48.843028") and searched by 120km geo distance filter. Found no results. If I use UK geopoint it works. I want to know if there is a seperate plugin or any other way to perform geo distance search globally?
> 
> curl -X GET "[http://localhost:9200/business/\_search?pretty=true](http://localhost:9200/business/_search?pretty=true)" -d '{
> 
> > ```
> > "query" : {
> > "filtered" : {
> > "query" : {
> > "match_all" : {}
> > },
> > "filter" : {
> > "geo_distance" : {
> > "distance" : "120km",
> > "sites.location" : "2.219239,48.843028"
> > }
> > }
> > }
> > }
> > 
> > ```
> > 
> > }'  
> > {  
> > "took" : 1,  
> > "timed\_out" : false,  
> > "\_shards" : {  
> > "total" : 5,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "hits" : {  
> > "total" : 0,  
> > "max\_score" : null,  
> > "hits" :   
> > }
> 
> --

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:10am UTC](https://discuss.elastic.co/t/global-geo-distance-search/9186/3 "2017-07-06T03:10:57Z")

</div>

Closed on July 6, 2017, 3:10am UTC


