-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only query ES for non-coarse layers on non-coarse reverse requests
- Loading branch information
Showing
9 changed files
with
94 additions
and
7 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
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
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 |
---|---|---|
|
@@ -13,6 +13,11 @@ module.exports = { | |
'lon': 0 | ||
} | ||
} | ||
}, | ||
{ | ||
'terms': { | ||
'layer': ['venue', 'address', 'street'] | ||
} | ||
}] | ||
} | ||
}, | ||
|
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
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
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
41 changes: 41 additions & 0 deletions
41
test/unit/fixture/reverse_with_layer_filtering_non_coarse_subset.js
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,41 @@ | ||
var vs = require('../../../query/reverse_defaults'); | ||
|
||
module.exports = { | ||
'query': { | ||
'bool': { | ||
'filter': [ | ||
{ | ||
'geo_distance': { | ||
'distance': '500km', | ||
'distance_type': 'plane', | ||
'optimize_bbox': 'indexed', | ||
'center_point': { | ||
'lat': 29.49136, | ||
'lon': -82.50622 | ||
} | ||
} | ||
}, | ||
{ | ||
'terms': { | ||
'layer': ['venue', 'street'] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
'sort': [ | ||
'_score', | ||
{ | ||
'_geo_distance': { | ||
'center_point': { | ||
'lat': 29.49136, | ||
'lon': -82.50622 | ||
}, | ||
'order': 'asc', | ||
'distance_type': 'plane' | ||
} | ||
} | ||
], | ||
'size': vs.size, | ||
'track_scores': true | ||
}; |
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
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