ElasticSearch behaving different between cities

المشرف العام

Administrator
طاقم الإدارة
I'm experiencing some very strange behavior from Elasticsearch. I am using geo_bounding_box to search the area visible in Google Maps. I have data in New York and San Fransisco. New York behaves as expected. San Fransisco does not, which is confusing the shit out of me.

When searching in San Fransisco, I have to invert the longitude for east and west in order for data to be returned.

Searching in New York works just fine



// New York"geo_bounding_box" : { "location.coordinates": { "top_right": [40.75595545633613,-73.85303608398436], "bottom_left": [40.64820096366504,-74.03156391601561] }}


// San Fransisco (Normal)"geo_bounding_box": { "location.coordinates": { "top_right": [37.79734048601642,-122.39438402099609], "bottom_left": [37.7692568462339,-122.4390159790039] }}


// San Fransisco (Swapped)"geo_bounding_box": { "location.coordinates": { "top_right": [37.79734048601642,-122.4390159790039], "bottom_left": [37.7692568462339,-122.39438402099609] }}As you can see, swapping the longitude values returns results but it does not make any sense because we are searching outside of the bounding box.

I am using elasticsearch Version: 1.4.4



أكثر...
 
أعلى