Global Geo-Distance search

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" -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" :
}

--

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 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" -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" :
}

--

--