Severyn Kozak
332597c653
Fine-tune the admin boosting query.
...
query/search.js
-Follow up on @hkrishna's work and fine-tune the admin-boosting
query by:
* not searching for `neighborhood` matches
* assigning boost values to each `should` clause, with
higher values for higher admin levels.
-These changes fix the `West New York` in `New Jersey`
regression pointed out in https://github.com/pelias/api/issues/91
10 years ago
Harish Krishna
ef1a4c8aa6
adding all admin layers to the search query (including neirhborhood, locality and local_admin)
10 years ago
Harish Krishna
5094ecb25e
adding 'locality', 'local_admin' to the list of layers (part of admin alias) plus tests
10 years ago
Harish Krishna
f13f1cdf2c
tests
10 years ago
Harish Krishna
e586b49d1d
tests - that check if the layers are being set correctly for suggesters and using query mixers right
10 years ago
Harish Krishna
28e3d3943e
consistent naming convention
10 years ago
Harish Krishna
2d861aea7f
boosting admin0 values
10 years ago
Harish Krishna
79f33dee96
adding popularity to sort scoring function list
10 years ago
Harish Krishna
743c825b41
just using weights from pelias-suggester-pipeline (reducing dependency issues with another repo)
10 years ago
Harish Krishna
6c802dfa1d
testing sort part of the query
10 years ago
Harish Krishna
9013b4484e
fixing tests
10 years ago
Harish Krishna
aa721b8749
moving groovy scripts to a file on disk @ elasticsearch/config/scripts to avoid dynamic script loading look at http://www.elasticsearch.org/blog/running-groovy-scripts-without-dynamic-scripting/ and https://github.com/pelias/scripts
10 years ago
Harish Krishna
1a740f16df
sorting function based on population and weights plus tests
10 years ago
Harish Krishna
5d7edd00e8
tests. adding sort to queries (although this should probably be decoupled from the api or the sort logic should be moved from elasticsearchbackend into api)
10 years ago
Harish Krishna
2f89cbd528
tests that test optional lat/lon for search and suggest endpoints
10 years ago
Peter Johnson
9d10f0fa49
add osm address type
10 years ago
Peter Johnson
293465b90c
add address alias and openaddresses type. change default layers to 'poi,admin'. add comments. update tests
10 years ago
Harish Krishna
b6d1f1d497
test valid search query without bbox (falls back to 50km distance query)
10 years ago
Harish Krishna
245abd7809
elasticsearch-backend now only accepts vertices and not latlon as properties
10 years ago
Harish Krishna
ebf162f29e
search with optional bbox - initial commit +tests
10 years ago
Harish Krishna
bcf823c519
cleanup + tests
10 years ago
Harish Krishna
fc7f6cb768
removing suggest_nearby, replacing suggest with suggest_multiple, commenting out a couple of tests for right now.
10 years ago
Harish Krishna
69a13e9105
fixing all the js lint related issues (lintified)
10 years ago
Harish Krishna
f1d13c1337
consolidating suggest_poi and suggest_admin into one suggest endpoint. fixing tests (more tests to come)
10 years ago
Harish Krishna
51f23c4410
expand/ reverse size
10 years ago
Harish Krishna
1d54574d51
valid precision - tests grouped together
10 years ago
Harish Krishna
81a62482e7
query/suggest does not exist anymore. temp fix - using suggest_poi. changing controller/suggest to controller/suggest_poi as well
10 years ago
Harish Krishna
0abe345c1c
updating getPrecision() to handle null/undefined/empty zoom params
10 years ago
Harish Krishna
94ce548fce
better naming
10 years ago
Harish Krishna
b4683fafb3
test precision (and while writing the test, caught/fixed the bug where zoom=4 ftw)
10 years ago
Harish Krishna
ecda07a520
fixing valid query test
10 years ago
Peter Johnson
8b97976022
refactor search query
10 years ago
Peter Johnson
425fdf2e88
refactor reverse query
10 years ago
Harish Krishna
5ee018bcf3
fixing the tests
11 years ago
Peter Johnson
0ef84c4ba5
query test
11 years ago
Peter Johnson
2fd67fcc58
refactor; add tests
11 years ago