Harish Krishna
|
fae9aae3d3
|
moving the logic for each of the three parsed addresses out into their own function
|
9 years ago |
Harish Krishna
|
495c3251a4
|
moving all query parsing logic into its own helper. Tests to come
|
9 years ago |
Harish Krishna
|
a8c090252a
|
if the query has a number - search addresses
|
9 years ago |
Harish Krishna
|
346f187c3e
|
updateing isNumber regex
|
9 years ago |
Harish Krishna
|
e1f3cfa0d3
|
no need to hit address parser if the input has just one token or two and no numbers
Ex: new, new york, minneapolis etc dont need address parsing but 'starbucks 10010' might need it
|
9 years ago |
Harish Krishna
|
ebd4a5a08a
|
splitOnDelim first followed by a space tokenizer
|
9 years ago |
Harish Krishna
|
a4d09f8e12
|
no address parsing required if there are only 2 or less tokens
|
9 years ago |
Harish Krishna
|
bdffe758d4
|
commenting out the overkill
|
9 years ago |
Harish Krishna
|
96a21570be
|
fixing layers related bug - adding a default_layers_set flag to clean obj.
|
9 years ago |
Harish Krishna
|
042772cf3b
|
only do address parsing when necessary
|
9 years ago |
Harish Krishna
|
1d24890b27
|
introducing target_layer that gets set part of input_parsing
- if input is less than 3 characters -> only hit admin layers
- if input suggests that its not a street address -> avoid hitting address layers
|
9 years ago |
Harish Krishna
|
5accecfa6c
|
adding postcode support for usa
|
10 years ago |
Harish Krishna
|
46cc1a6569
|
disabling parse-address
|
10 years ago |
Harish Krishna
|
0b5b1dce85
|
address parser initial pass - breaks 68 tests! (ignoring tests for now)
|
10 years ago |
Harish Krishna
|
176f580215
|
using is-object
|
10 years ago |
Harish Krishna
|
d2d76be8fa
|
changing a commented line to reflect reality
|
10 years ago |
Harish Krishna
|
a003b7b9bf
|
strip out leading and trailing whitespace if any
|
10 years ago |
Harish Krishna
|
84a9b3e20e
|
splitting on comma (trying to find/assume admin values)
|
10 years ago |
Harish Krishna
|
32275aca56
|
split sanitizers into reusable pieces. renaming sanitise to suggest. using suggest sanitizer for search. adding reverse sanitizer. updating tests..
|
10 years ago |