Julian Simioni
b9152dbe29
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
Peter Johnson
776b0ce1e1
update unit test
9 years ago
Diana Shkolnikov
49d439425e
Use address_weights.js in tests instead of hardcoding boost values
9 years ago
Diana Shkolnikov
ab436d5dfb
Search query builder not checking all available admin values
...
Fixes #187
9 years ago
Peter Johnson
d8e86d5f17
phrase slop query modifications
9 years ago
Harish Krishna
b3d958fe5a
Revert "match the whole query with phrase.default"
...
This reverts commit 1c763eeb75
.
9 years ago
Harish Krishna
1c763eeb75
match the whole query with phrase.default
9 years ago
Harish Krishna
b57621c0a9
removing admin2 match from the full valid address match
9 years ago
Harish Krishna
d6bcc1b400
test search query for valid address full & partial
9 years ago
Harish Krishna
36cc6415d0
tests search
9 years ago
Harish Krishna
708c24195d
adding admin_boost
9 years ago
Harish Krishna
f78f49d857
moving sort logic.. popularity then population first!
9 years ago
Harish Krishna
5a052627af
Revert "fix broken test"
...
This reverts commit 68dbf1bd2e
.
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
Harish Krishna
68dbf1bd2e
fix broken test
9 years ago
Harish Krishna
5025b66a91
adding admin_weights instead of just boosting admin0
9 years ago
Harish Krishna
049a96efd6
flipping the popularity population order
9 years ago
Peter Johnson
ce611fd933
increase search radius to 500km
9 years ago
Peter Johnson
e95c2efb54
resolves #139
9 years ago
Peter Johnson
0cf282767a
remove exact_match script
9 years ago
Harish Krishna
050c11ec0b
just using a forked version of addressIt that focuses on US addresses (for now), modifying search queries and ignoring tests for now
10 years ago
Diana Shkolnikov
061f151bc8
Revert "Use multi_match in name.* for /search"
...
This reverts commit 3697627fb7
.
10 years ago
Peter Johnson
4770f0660f
multi_match -> match
10 years ago
Peter Johnson
60a02315ae
enable shingle matching
10 years ago
Diana Shkolnikov
3697627fb7
Use multi_match in name.* for /search
10 years ago
Severyn Kozak
1f25303523
Quote properties.
...
(query/sort, test/unit/query/search).js
-Address @dianashk's comment:
https://github.com/pelias/api/pull/113/files#r29764750
10 years ago
Diana Shkolnikov
7b5a2fafb9
Change query to use `terms` and add code coverage stats
10 years ago
Diana Shkolnikov
45ba29cc54
Add categories param to /reverse
10 years ago
Severyn Kozak
5b389833bd
Test a sort() call with a params object without an input.
...
See https://github.com/pelias/api/pull/113/files#r28972709 .
10 years ago
Severyn Kozak
d7c4409e20
Fix failing tests.
...
test/unit/query/(search, sort).js
-Fix the tests that started failing as a result of 144b72c
.
10 years ago
Harish Krishna
aae256c93f
category scoring - weights are all hardcoded to 10 currently - requires to be tweaked
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