Julian Simioni
103a52cff5
Calculate intersection of types requested by source and layers params
9 years ago
Julian Simioni
b4e7793426
Fix reference to geoname
...
This is just in a unit test, so it technically passes, but geonames is
not a valid layer option (geoname, singular, is used instead), so it's
best to correct.
9 years ago
Julian Simioni
2ebc935295
Rename query/indidces to query/types
...
It didn't really contain a list of indices.
9 years ago
Julian Simioni
258fa4390e
Move cmd.type setting logic to types helper
9 years ago
Julian Simioni
7a6ac8541b
Separate concerns of address parser
...
The address parser currently does two things:
1.) make some intelligent guesses as to possible admin regions to
explicitly search against to improve the quality of results returned
2.) make some intelligent guesses as to when no part of the query needs
to search against anything other than admin regions. This somewhat
improves the quality of results returned but mostly improves the speed
of the Elasticsearch query since it's searching significantly fewer
recoords.
These two concerns are now split into two separate methods within the
query_parser helper module. They are mostly independent today, but don't
have to be in the future.
9 years ago
Julian Simioni
1fae622c39
Remove layer configuration based on address parsing
...
This code doesn't seem like it will be triggered very often (due to it
comapring space delimited words with comma delimited words from the text
field), and also has the potential to cause quite a bit of weird
behavior.
9 years ago
Julian Simioni
e71fb7cfd4
Whitespace
9 years ago
Diana Shkolnikov
1d8db6e5d1
Change type back to layer... oooops
9 years ago
Diana Shkolnikov
1b4b401a66
More property renaming/mapping
...
* Rename `layer` to `type` and `source`
* Rename `address` block and merge properties to main `geocoding` namespace
9 years ago
Diana Shkolnikov
743d8efa54
Remove proxyquire from adminField test
...
Add comments and refactor a bit more for clarity in query/search.js
9 years ago
Diana Shkolnikov
ab436d5dfb
Search query builder not checking all available admin values
...
Fixes #187
9 years ago
Harish Krishna
e57d0b38ed
keys -> key
...
It's easy to misread and think keys contains a collection of some kind
9 years ago
Harish Krishna
95c0e7461d
TESTS!
9 years ago
Harish Krishna
e5f783567f
remove all things that involved suggester including query mixer
...
keeping the suggest sanitizer for suggest/nearby wherein lat/lon are required
9 years ago
Peter Johnson
ce96e1274a
try/catch extent()
10 years ago
Diana Shkolnikov
a68c7fae53
Add categories and address properties to result doc
10 years ago
Harish Krishna
14c718bf1c
passing in an object (req.clean) instead of a boolean. Plus updated test
10 years ago
Harish Krishna
c78c8e2dbe
only true or 1 is valid
10 years ago
Harish Krishna
ea78b8268a
more tests: testing falsy and truthy params
10 years ago
Harish Krishna
acfa8e1f20
testing geojsonify when adddress_details flag is set to false (by default)
10 years ago
Harish Krishna
c99c5f712a
adding a parameter called details (defaults to false for all endpoint except reverse) + fixing tests
10 years ago
Peter Johnson
ff757decb4
deprecate 'type' property, see PR notes
10 years ago
Harish Krishna
103ed5f006
using alias layer names in queryMixer and expanding them in helper/layers.js (keeping things DRY)
10 years ago
Harish Krishna
9afed3caef
adding query mixer for suggest and suggest/nearby
10 years ago
Harish Krishna
69a13e9105
fixing all the js lint related issues (lintified)
10 years ago
Peter Johnson
bb04a01b72
checkout test from branch:fuzzy to get master build passing
10 years ago
Peter Johnson
400c28769d
add test for USA output schema
10 years ago
Peter Johnson
cb63791669
update output schema for GBR
10 years ago
Peter Johnson
109758b25e
add geojson bbox
10 years ago
Peter Johnson
6efa0aa510
expose id/type/layer
10 years ago
Peter Johnson
27e2c4e5b8
migrate outputGenerator from pelias/suggester-pipeline
10 years ago
Peter Johnson
fcd60463cc
remove geojsonify.suggest
10 years ago
Peter Johnson
c9b1718829
display all admin fields
10 years ago
Peter Johnson
d52c6077a9
add 'text' property to /search and /reverse
10 years ago
Peter Johnson
17134105d5
geojsonify /search and /reverse FTW
10 years ago
Peter Johnson
26a5a7590b
refactor geojsonify
10 years ago