Stephen K Hess
e1e95f0945
Merge pull request #666 from pelias/only-allow-queries-with-addresses
...
limited fallbackQuery usage to analysis with `street`
8 years ago
Stephen K Hess
ba9fc0abeb
Merge pull request #668 from pelias/add-street-to-trim-by-granularity
...
Add street to trim by granularity
8 years ago
Stephen Hess
80e9fc06e4
trigger rebuild
8 years ago
Stephen Hess
5790026add
trigger rebuild
8 years ago
Stephen Hess
df2ac8c91b
added `street` to trimByGranularity
8 years ago
Stephen Hess
cf1aeec4e1
fixed tests for latest query changes
8 years ago
Julian Simioni
11c3388b57
Add readme note about Node 4
8 years ago
Julian Simioni
b379af5969
Remove Node.js 0.12 from TravisCI versions
8 years ago
Julian Simioni
3df810e4c6
Require Node.js 4.0 or greater
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
768843b0fb
delete `clean.parsed_text` if falling back to addressit
8 years ago
Stephen Hess
cc5c9f8468
disable calling GeodisambiguationQuery
8 years ago
Stephen Hess
06310bd3b7
only initialize req.clean/errors/warnings if not initialized yet
...
also added tests for sanitizeAll
8 years ago
Stephen Hess
f11bdfbfbb
removed unused dependency
8 years ago
Stephen Hess
b774cc617c
fixed spelling error
8 years ago
Stephen Hess
15b7c3fa57
uncommented tests
8 years ago
Stephen Hess
8072c73d42
removed unused dependency
8 years ago
Stephen Hess
6f4ec874fe
added special override condition for libpostal query/housenumber mixup
8 years ago
Stephen Hess
d5e993fc11
included `localadmin`, `macrocounty`, `macroregion`, and `dependency`
8 years ago
Stephen Hess
5178dc1cc9
added `trimByGranularity` to tests-to-run
8 years ago
Stephen Hess
681d689f51
fixed test names
8 years ago
Stephen Hess
9f350eb117
updated tests to reflect changes to query module
8 years ago
Diana Shkolnikov
e33c58bd42
Remove empty arrays from ES fixture
8 years ago
Diana Shkolnikov
d8e0b01358
Cleanup a few small things
8 years ago
Diana Shkolnikov
efa0818ade
Rename isDiff* functions to be more intuitive
8 years ago
Diana Shkolnikov
6049772a5d
Fix require path
8 years ago
Diana Shkolnikov
a8e82b018d
Refactor deduper and write additional tests
8 years ago
Stephen Hess
8339a66e91
updated query module to branch from hashcode
...
fixed tests to use `boost_mode` value of `multiply` instead of `replace`
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
d682468096
adapted tests to latest query module output
8 years ago
Stephen Hess
c8ba57f98b
added support for `dnt` flag when logging fallback query
8 years ago
Stephen Hess
ae37add82b
extracted variables to conform to convention
8 years ago
Stephen Hess
165f6eadf1
added logging in case where query required fallback
8 years ago
Stephen Hess
42affa80f8
updated filename
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
46d58cafb0
renamed `_text_autocomplete` to `_text_addressit`
8 years ago
Stephen Hess
ad5d2bf36a
add early exit condition to stop unneeded re-parsing
...
This is required in the case where the libpostal parse + ES search was successful (res.data is non-empty) so we want to skip falling back to the current production behavior.
8 years ago
Stephen Hess
8af8ba19f6
added call for fallback sanitiser middleware
8 years ago
Stephen Hess
40ed4e64c4
added new test
8 years ago
Stephen Hess
d8fb9323c2
added sanitiser wrapper for fallback to call addressit explicitly
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
2a9c25f8c4
added condition that `res.data` must be non-empty to return early
8 years ago
Stephen Hess
4952a0ed2b
added condition to exit early if there are already results in `res`
...
in order to accommodate falling back to the existing search strategy, the search controller must exit early if the `res.data` already exists.
8 years ago
Stephen Hess
e01ef7ac4d
copied the existing search query logic back in
8 years ago
Stephen Hess
45a0755f7d
added 2nd /search query call for fallback to existing behavior
...
while we're refining our process for integrating libpostal, the ES querying behavior will be:
- call ES with the fallback/geodisambiguation query
- if there are 0 results, call ES with the existing behavior
8 years ago
Stephen Hess
0a59e2750f
inject `query` to use
8 years ago
Stephen Hess
af7de7613f
updated to reflect @missinglink's comments
...
the rebase was brutal, i thought that i caught everything, thx for checking
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
486f25663a
switched autocomplete sanitiser wrapper to addressit text sanitiser
8 years ago