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
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
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
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
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
b612b2750e
added addressit support for autocomplete via separatee text sanitiser
...
this commit combines the other sanitiser/_text.js and addressit parser logic from text-analyzer into one module for easier integration until such time that libpostal is ready for autocomplete
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
f55aed2b1a
finished master rebase, checking in all-but-tests commit
...
rebase ended up being more complicated than was expected so i'm breaking this into a few commits
8 years ago
Stephen Hess
7495cad465
added middleware component to trim by result granularity
...
purpose in comments, cleans up from overly-verbose FallbackQuery
8 years ago
Stephen Hess
d3febe49cc
moved location of `matched_queries` to correct place
8 years ago
Stephen Hess
5821ae6e81
libpostal changes
...
- updated for libpostal interface
- added tests for text_parser
8 years ago
Stephen Hess
c18baaf775
fixed text analysis tests
...
proxyquire is now used because the text_analyzer package requires node_postal which isn't guaranteed to be available
8 years ago
Stephen Hess
8d532adb3f
added support for `_matched_queries` in ES hits
...
this will make it easier to sort thru results from FallbackQuery by knowing which query was called
8 years ago
Stephen Hess
5f259d420b
updated text-analyzer version, removed unused module
8 years ago
Stephen Hess
c7e5ba2e2a
added postprocessing step to trim by granularity
8 years ago
Stephen Hess
b1cf06720b
included generatePermutations in list of tests
8 years ago
Stephen Hess
abef8f1efa
initial stab at generatePermutations
8 years ago
Julian Simioni
b0c0a5fe5c
Add venues to Who's on First
8 years ago
Stephen Hess
29c1255694
added `dependency` fields to output
8 years ago
Alec Vulfson
a6ccbf17ce
Add provinces to Australian labels
8 years ago
Julian Simioni
c5e5bbcf56
Add boundary.country filter to /v1/autocomplete
8 years ago
Stephen Hess
1b83247964
exclude `name` for `country` result labels
8 years ago
Stephen Hess
8c12452fff
added hardcoded values in tests where text-analyzer was being used before
8 years ago
Diana Shkolnikov
b0aab1afd3
Fixed broken test due to rebase with changes from master.
8 years ago
Diana Shkolnikov
c38b67aeb4
Add nearby sanitizer and revert reverse to not have categories
8 years ago
Diana Shkolnikov
cc9c4148bb
Refactor geojsonify code and add ability to pass in clean query params
8 years ago
Diana Shkolnikov
1df1a0765c
Add categories filter to search query
8 years ago
Diana Shkolnikov
07c637f5a6
Include a new pelias-categories module for category validation
8 years ago
Diana Shkolnikov
269733b70c
Add type property to allow proper handling of arrays
8 years ago
Diana Shkolnikov
68c6b15e0f
Add categories sanitizer to reverse
8 years ago
Diana Shkolnikov
818711f509
Add categories sanitizer to search
8 years ago
Diana Shkolnikov
24c7370ce7
Add categories sanitizer to autocomplete
8 years ago
Diana Shkolnikov
1c6436d123
Update categories sanitizer and implement unit tests for it
8 years ago
avulfson17
c5d2817ab4
update test name
8 years ago
Alec Vulfson
254b7ff66b
Updated warning for boundary.circle
8 years ago
Julian Simioni
76e54bf7d3
Update test expectations to be better!
...
addressit can now detect that "new york" the state should be abbreviated
"NY".
8 years ago