forked from pepite/elasticsearch
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Three tests for parsing "geo_distance" filter: 12 miles in km
The added test files should be equivalent. Actually they hit the same bug as change Two tests for parsing "geo_distance" filter: distance/unit parameters
- Loading branch information
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...es/elasticsearch/src/test/java/org/elasticsearch/index/query/xcontent/geo_distance10.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"filtered" : { | ||
"query" : { | ||
"match_all" : {} | ||
}, | ||
"filter" : { | ||
"geo_distance" : { | ||
"distance" : 19.312128, | ||
"unit": "km", | ||
"person.location" : { | ||
"lat" : 40, | ||
"lon" : -70 | ||
} | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...es/elasticsearch/src/test/java/org/elasticsearch/index/query/xcontent/geo_distance11.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"filtered" : { | ||
"query" : { | ||
"match_all" : {} | ||
}, | ||
"filter" : { | ||
"geo_distance" : { | ||
"distance" : "19.312128km", | ||
"person.location" : { | ||
"lat" : 40, | ||
"lon" : -70 | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...les/elasticsearch/src/test/java/org/elasticsearch/index/query/xcontent/geo_distance9.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"filtered" : { | ||
"query" : { | ||
"match_all" : {} | ||
}, | ||
"filter" : { | ||
"geo_distance" : { | ||
"distance" : "19.312128", | ||
"unit": "km", | ||
"person.location" : { | ||
"lat" : 40, | ||
"lon" : -70 | ||
} | ||
} | ||
} | ||
} | ||
} |