mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
In which I join a long list of folks who have typoed this: it's "lon"
not "long"
This commit is contained in:
parent
c5729ecbd5
commit
ffbe9a752b
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ describe "outputs/elasticsearch_http" do
|
|||
end
|
||||
|
||||
it "make [geoip][location] a geo_point" do
|
||||
results = @es.search(:body => { "filter" => { "geo_distance" => { "distance" => "1000km", "geoip.location" => { "lat" => 0.5, "long" => 0.5 } } } })
|
||||
results = @es.search(:body => { "filter" => { "geo_distance" => { "distance" => "1000km", "geoip.location" => { "lat" => 0.5, "lon" => 0.5 } } } })
|
||||
insist { results["hits"]["total"] } == 1
|
||||
insist { results["hits"]["hits"][0]["_source"]["geoip"]["location"] } == [ 0.0, 0.0 ]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue