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
61ac4a99c1
add test for borough in geonames
8 years ago
Peter Johnson
7f18561595
remove focus.viewport API
8 years ago
Peter Johnson
39e3156019
typo
8 years ago
Peter Johnson
c317d4f321
fix/improve coordinate wrapping function, added more tests
8 years ago
Peter Johnson
5b8a9a31d2
wrap coordinates at poles
8 years ago
Alec Vulfson
4dc0f90088
Allow shortened names of sources to be used in gid
8 years ago
Alec Vulfson
35e548ef15
Updating list of layers for Geonames
8 years ago
Peter Johnson
52c35cb37d
allow single non-numeric chars, change boost_mode to 'replace' for function_score queries
8 years ago
Julian Simioni
c9d87f7b0c
Add a separate default distance for coarse reverse
9 years ago
Julian Simioni
16d0a8b539
Rename test to clarify layers matter
9 years ago
Julian Simioni
05baed7b51
Whitespace
9 years ago
Julian Simioni
4069c99212
Remove unused sanitiser test
...
The sanitiser got removed at some point, but the tests remained.
9 years ago
missinglink
05240626fd
handle addressit case where parsed_text.street is produced and parsed_text.name is not
9 years ago
missinglink
ee73774c89
add tokenizer, refactor how we determine if a token is 'complete' or 'incomplete'
9 years ago
Stephen Hess
bd3b8e7bbe
switched to pelias-text-analyzer package since that responsibility has been moved to there
9 years ago
Stephen Hess
2c40827701
added `layer=borough` support for *all 5 boroughs* in data
9 years ago
Stephen Hess
c99fa9f0ef
added support for `macroregion`
9 years ago
Stephen Hess
8a54dbeef0
switched from `macrocountry` to `macrocounty`
9 years ago
Julian Simioni
abbd314ee8
Change deprication message to present tense
9 years ago
Peter Johnson
51279ce2cf
quattroshapes deprecation warning and wof fallback
9 years ago
Peter Johnson
0abda099a6
bugfixes and more tests
9 years ago
Julian Simioni
e97d72d7b6
Send warning when sources=quattroshapes
9 years ago
Diana Shkolnikov
b3939efb21
Fix ciao tests
9 years ago
Diana Shkolnikov
af8044ef29
Fix all unit tests
9 years ago
Julian Simioni
616dd606a7
Add sources and layers sanitiser
...
This sanitiser can do a better job of determining when an invalid
combination of sources and layers was specified, and produce helpful
error messages.
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
Julian Simioni
0ee1fdb4d9
Remove obsolete Geonames ID tests
...
These are fixed now with our better source/layer mapping
9 years ago
Julian Simioni
fa07ba9ddc
Add much needed whitespace
9 years ago
Julian Simioni
0e78167f17
[/place] Accept any valid layer for geonames
...
Instead of checking if the source/layer combination for geonames is
valid, always use the geoname type if the source is set to geonames,
regardless of which layer is in the gid.
This helps us better handle the case where people directly take gids
from our API responses.
Note: this functionality shouldn't be permanent and should be removed
once our new source/layer mapping system is in.
9 years ago
Julian Simioni
18de8b5699
Remove unused test examples
9 years ago
Peter Johnson
49d37eafed
one config per query
9 years ago
Julian Simioni
db895c05b7
Rename `from_address_parser` key to `from_text_parser`
9 years ago
Julian Simioni
b188a2046c
Fix mismatching name of types preference parameter
...
The parameter in clean.types being set by `helpers/text_parser.js` was
"from_address_parsing", but the code in `helper/types.js` was expecting
"from_address_parser". This commit makes both use "from_address_parser"
and adds a test.
9 years ago
Julian Simioni
59b70f7c7e
Rename helper/query_parser to helper/text_parser
9 years ago
Julian Simioni
fef92bd34b
Remove the geoname _type from all layers except venue
...
We can't distinguish between geonames of different layers due to an
ambiguity in our Elasticsearch schema that we unfortunately won't be
able to fix for a few weeks.
So, while it's technically true that there are countries, cities, etc
contained in the geonames dataset, it's still better for now to remove
geonames from these layers. We have good coverage of most coarse layers
from quattroshapes alone, so the impact isn't too bad.
9 years ago
Julian Simioni
06b44e5355
Disallow specifying both focus.point and focus.viewport
9 years ago
Julian Simioni
9dcc296a70
Add focus.viewport rect sanitizer to search
9 years ago
Julian Simioni
36925ca874
Remove bbox sanitizer functionality tests from search sanitizer tests
...
Full functionality testing for the bbox sanitizer should be in the
sanitizer/_geo_common tests. In the search sanitizer tests, only testing
the inclusion of the correct sanitizers, and the interactions between
them, really seems to make sense.
9 years ago
Julian Simioni
29a78db403
Add null island bounding box test
9 years ago
Julian Simioni
db8f98a51f
Remove completed @todo
9 years ago
Julian Simioni
b84652ba20
Refactor sanitize_coord parameter handling
...
This should help reduce duplication when passing values in, as the key
won't have to be specified twice. Also, the parameters are in the same
order as the other sanitize_* methods.
9 years ago
Stephen Hess
00d033101b
removed redundant is-ids-an-array check (already covered by _single_scalar_parameter sanitizer)
9 years ago
Julian Simioni
415029e02b
Use groups sanitiser in sanitize_rect and sanitize_point
9 years ago
Julian Simioni
aa08fb9772
Add optional and required group parameter sanitizers
9 years ago
Julian Simioni
2811569bcd
Switch to source:layer:id ids format in /place
9 years ago
Julian Simioni
d11d185429
Fix missing space in error message
9 years ago