Peter Johnson
a06683ff68
feat(query): Modify custom boosts feature to use function_score queries
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
49a988ce37
Remove non-JSON log lines
...
We can have logs with a lot more fidelity by logging structured JSON
directly.
6 years ago
Julian Simioni
800eb8ca03
Move lots of logging from info to debug
...
These are log lines that are not really useful in a production context,
and just create a lot of noise.
6 years ago
Julian Simioni
204f5297de
Remove all leading newlines in files
7 years ago
Julian Simioni
02aac0c13e
Remove use stricts
7 years ago
Adam Rousell
f86ee4a40f
Added postalcode rules for node-postal call and fallbacks
7 years ago
Stephen Hess
1fef7ac41c
removed unreachable paths in query/search
8 years ago
Stephen Hess
1f4a29bb0d
removed unused variable
8 years ago
Diana Shkolnikov
242d40760d
add logging of query input types
8 years ago
Diana Shkolnikov
a52691c61e
feat: search by postalcode
8 years ago
Diana Shkolnikov
4fa7fae546
fix: add parser and query param logging
8 years ago
Stephen Hess
7670eef3fb
added support for city+country inputs
8 years ago
Stephen Hess
5dedcf5032
changed method name
8 years ago
Stephen Hess
acb669b7b3
added support for optional country
8 years ago
Stephen Hess
54b70c7d3c
removed lodash requirement
8 years ago
Stephen Hess
b8bd6c1252
enabled city/state only inputs for fallback queries
8 years ago
Stephen Hess
4dbaff6589
removed hard-coded `size`
...
effectively reverts https://github.com/pelias/api/pull/684
8 years ago
Stephen Hess
c7b07c271e
updated hardcoded ES query size to 50
8 years ago
Stephen Hess
b408b96948
hardcode size to 100 for FallbackQuery
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
d4ed96de0c
added explicit `return undefined` + comments
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
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
85dab16869
refactored search sanitiser tests
...
the tests removed were testing far more than was appropriate since the functionality of the individual sanitisers is tested elsewhere. in this case, the test has been reduced to just testing that all the sanitisers were actually called.
8 years ago
Stephen Hess
0aebf81ace
support new querying model
...
add support for FallbackQuery and GeodisambiguationQuery from the pelias-query module. GeodisambiguationQuery is used when the text-analyzer returns a single administrative area field. FallbackQuery is used otherwise.
8 years ago
Stephen Hess
0166940e1a
added debug
8 years ago
Diana Shkolnikov
1df1a0765c
Add categories filter to search query
9 years ago
Peter Johnson
7f18561595
remove focus.viewport API
9 years ago
Alec Vulfson
31adf09870
Using new layers view to filter layers
9 years ago
Julian Simioni
d7eacaf59e
Fix mistaken order of parameters
...
peliasAdmin was supposed to be a parameter to the multi match view, but
instead it was being sent to the score view and ignored.
Thanks to @trescube for catching this.
9 years ago
Julian Simioni
ab19a12e1c
Use multi_match query for admin fields
9 years ago
missinglink
e093a09a8d
remove search related improvements from this PR
9 years ago
missinglink
0c67347c27
enable borough for search
9 years ago
missinglink
2398f05f8d
fix borough matching for both autocomplete and search endpoints
9 years ago
Peter Johnson
63301afeac
wow this is easy to get wrong, added a unit test
9 years ago
Diana Shkolnikov
f3ba492e05
Remove all usage of alpha3/admin0/admin1, update query building to reflect new names in pelias-query
9 years ago
Julian Simioni
ef78b2e0fd
Filter source and layer by new fields
...
This is functionally the same code as before, except that it uses the
new source and layer mapping.
9 years ago
Peter Johnson
db5a78623a
disable viewport scale
9 years ago
Peter Johnson
f1ead56e60
disable viewport scale
9 years ago
Diana Shkolnikov
9fa5fc5a77
calcSize became middleware (exposed and fixed bug in query defaults)
9 years ago
Diana Shkolnikov
54187dde67
Add dedupe middleware
...
Dedupe middleware removes __exact__ dupes and truncates the results
to the specified size.
9 years ago
Peter Johnson
49d37eafed
one config per query
9 years ago
Peter Johnson
cb679888ff
better population and popularity boosting
9 years ago
Peter Johnson
56591abe97
remove all references to tiebreaking groovy scripts
9 years ago
Stephen Hess
a26bf0b9a8
switched to Math.max to avoid the explicit conditional
9 years ago
Stephen Hess
dcadc7832e
add focus:scale to /search requests with just viewport.*, calculated from bounding box diagonal, minimum of 1
9 years ago