Peter Johnson
a06683ff68
feat(query): Modify custom boosts feature to use function_score queries
6 years ago
Julian Simioni
32684e0013
feat(query): Add support for custom boosts to search endpoint
...
This adds support for custom boosts to the addressit-style search
queries. The newer libpostal based queries do not include this
functionality since they can only query for addresses.
6 years ago
Julian Simioni
bb605acb3f
Add tests for autocomplete custom boosts
6 years ago
Julian Simioni
9679c14152
Test handling of undefined configuration
6 years ago
Julian Simioni
9080feef05
WIP: Configurable boosts for sources and layers
...
This is a work in progress to enable customizing boosts for sources and
layers.
For now, the config must be hardcoded in query/autocomplete.js, but it
will eventually be driven by `pelias.json` and take effect on all
endpoints.
6 years ago
Julian Simioni
4adf4b3dd7
feat(queries): Normalize all query names
...
They should start with the endpoint (ideally), and
address_search_using_ids should not have the same query name as
'search_fallback'.
6 years ago
Julian Simioni
d681a114d6
feat(log): Remove most unstructured controller logs
...
These are nose now, the structured logs have much better info
6 years ago
Julian Simioni
c20737f458
fix(boundary.country): use boundary.country as filter
...
By definition, all boundary.country query matches will either be
identical, or not a match. Thus, it does not make sense to put the query
clause for boundary.country in the `must` section of the query.
In theory, because our queries would generally combine this `must`
clause with others, there shouldn't be any performance improvement (or
regression) from this change.
However, semantically, this clause fits better as a `filter`, and in the
case of a bug causing a degenerate query with the `boundary.country`
query clause as the only one under the `must` section, this would have a
big impact.
6 years ago
Julian Simioni
204f5297de
Remove all leading newlines in files
7 years ago
Julian Simioni
02aac0c13e
Remove use stricts
7 years ago
Stephen Hess
004e3c02b1
completed switch to vs tests over fixtures
7 years ago
Stephen Hess
110a258130
added initial tests for using vs
7 years ago
Stephen Hess
66d4149f6a
removed references to outdated request parameters
7 years ago
Stephen Hess
02cfa36d24
switched structured query tests away from fixtures
7 years ago
Stephen Hess
447d0f74b9
don't serialize input:layers when passing to query
8 years ago
Stephen Hess
1fef7ac41c
removed unreachable paths in query/search
8 years ago
Stephen Hess
99a1868c47
removed population/popularity functions from search using ids
8 years ago
Stephen Hess
1d5151dd49
updated meta.type to 'fallback'
8 years ago
Stephen Hess
5bcfbe76bc
set search_using_ids query_type to 'original'
8 years ago
Stephen Hess
ea3572539f
combined non-county layers into one
8 years ago
Stephen Hess
74419bddc1
added support for focus-only function
8 years ago
Stephen Hess
386897c2c4
added query for address search with ids
8 years ago
Lily He
57b133ba42
check and set default for undefined boundary circle radius in reverse
8 years ago
Stephen Hess
b5c6c403cb
updated reverse boundary radius tests to lower value
8 years ago
Stephen Hess
10b1d28201
only query ES for non-coarse layers on non-coarse reverse requests
8 years ago
Diana Shkolnikov
fe38d2336d
feat: allow postalcode-only structured queries
8 years ago
Diana Shkolnikov
a52691c61e
feat: search by postalcode
8 years ago
Diana Shkolnikov
4f999adce1
fix: empty values in parsed text caused exceptions
8 years ago
Stephen Hess
be2a336038
updated naming from component to structured
8 years ago
Stephen Hess
7aad07368d
modified tests to accommodate changes to ComponentFallbackQuery
8 years ago
Stephen Hess
7670eef3fb
added support for city+country inputs
8 years ago
Stephen Hess
d2c32b5afd
added unit tests for component_geocoding query
...
started folder structure for fixture as it's getting unwieldy
8 years ago
Stephen Hess
08f4aa4b95
renamed files to be more indicative of what the function is
8 years ago
Stephen Hess
d03a8c4586
added support for component geocoding
...
- created `/component` route
- broke out trimByGranularityComponent but could conceivably be combined with existing
- added `address` support to text_parser
- added `component` sanitizer wrapper
8 years ago
Stephen Hess
df6bd50645
unrolled loop tests
8 years ago
Stephen Hess
acb669b7b3
added support for optional country
8 years ago
Stephen Hess
b8bd6c1252
enabled city/state only inputs for fallback queries
8 years ago
Julian Simioni
78cc4a5de3
Add boundary.rect handling to query/autocomplete
8 years ago
Diana Shkolnikov
9ff383cc2b
change the query module interfaces back to simple functions
8 years ago
Diana Shkolnikov
3888ae0385
change query module interfaces to allow for additional meta data
8 years ago
Stephen Hess
c841ed8121
limited fallbackQuery usage to analysis with `street`
8 years ago
Stephen Hess
cc5c9f8468
disable calling GeodisambiguationQuery
8 years ago
Stephen Hess
15b7c3fa57
uncommented tests
8 years ago
Stephen Hess
6f4ec874fe
added special override condition for libpostal query/housenumber mixup
8 years ago
Stephen Hess
876782ed3a
enabled all scores and filters
...
adjusted tests to account for new querying strategies, renamed all existing test fixture files to `*_original`. pointed query module to a PR for testing.
8 years ago
Stephen Hess
484af8c044
changed from `text_parser` to `text_parser_addressit`
...
this ensures that `clean.parsed_text` is correctly converted to query as expected
8 years ago
Stephen Hess
3b981d97ba
copied in tests from master for `search_original`
...
commented out the tests that break because i don't know how to fix them which will probably require help from @missinglink .
8 years ago
Stephen Hess
c257eb5fc3
added tests for new queries
...
left in place but commented out tests that will be supported when boundary, focus, and sources/layers issues are resolved.
8 years ago
Stephen Hess
5821ae6e81
libpostal changes
...
- updated for libpostal interface
- added tests for text_parser
8 years ago
Julian Simioni
c5e5bbcf56
Add boundary.country filter to /v1/autocomplete
9 years ago