Browse files

Merge pull request #670 from dhan88/master

Elasticsearch backend using incorrect coordinates for geo_bounding_box (within) filter
  • Loading branch information...
2 parents dfe79d5 + 65eb104 commit 58f4eddbf1044a2a5663de470301c0af7a957b13 @jezdez jezdez committed Nov 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 haystack/backends/elasticsearch_backend.py
View
4 haystack/backends/elasticsearch_backend.py
@@ -406,11 +406,11 @@ def build_search_kwargs(self, query_string, sort_by=None, start_offset=0, end_of
within['field']: {
"top_left": {
"lat": max_lat,
- "lon": max_lng
+ "lon": min_lng
},
"bottom_right": {
"lat": min_lat,
- "lon": min_lng
+ "lon": max_lng
}
}
},

0 comments on commit 58f4edd

Please sign in to comment.