Peter Johnson
4e8a5385f4
feat(libpostal_patch): additional tests
6 years ago
Peter Johnson
27a9e1d900
feat(libpostal_patch): enable field mapping for "unit"
6 years ago
Peter Johnson
69ddbaf3be
feat(libpostal_patch): correctly parse australian-style unit numbers
6 years ago
Peter Johnson
19eb0b57d1
feat(libpostal_patch): add a libpostal patch which allows recasting labels
6 years ago
Peter Johnson
4d9ee0053b
feat(libpostal): patch parser output when confused by directionals
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
435cfd2c4a
Fix linter error
...
This snuck in in https://github.com/pelias/api/pull/1165
6 years ago
Tyler Pedelose
52a66e1bc0
Added new predicates to aid placeholderGeodisambiguationShouldExecute
6 years ago
semhul
a0aa5ed7f2
Adding support for unit field in structured search. If libpostal finds it in input use it for searching
7 years ago
Julian Simioni
204f5297de
Remove all leading newlines in files
7 years ago
Julian Simioni
02aac0c13e
Remove use stricts
7 years ago
Stephen Hess
e0c25d0f57
convert libpostal calls to a microservice
7 years ago
Julian Simioni
f9281190ac
Corrrectly filter /place queries by layer
...
`/place` queries have been executing in a way where only the ID, but not
the layer, has been considered when returning records from
Elasticsearch.
It turns out this bug was introduced almost a year and a half ago in
https://github.com/pelias/api/pull/407 . A little, relatively unimportant
bit of code was looking for a property called `layers`:
```
const cmd = req.clean.ids.map( function(id) {
return {
_index: apiConfig.indexName,
_type: id.layers,
_id: id.id
};
});
```
The correct property was `layer`, so no filtering on layer was done in
the resulting [mget](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html ) query.
There was never an acceptance test for these sorts of queries, but there
is now one in https://github.com/pelias/acceptance-tests/pull/446 . The
unit tests were enforcing the incorrect behavior.
Fixes https://github.com/pelias/pelias/issues/643
7 years ago
Stephen Hess
da07463999
set req.clean.parser to 'libpostal' when it's called
7 years ago
Stephen Hess
2df5d6d23b
add empire to coarse reverse controller
7 years ago
Stephen Hess
e70a668056
added support for continent, ocean, and marinearea placetypes
...
`coarse` now maps to these as well
7 years ago
missinglink
69a820fae0
feat(coarse_reverse): ignore empty abbr properties from PIP service
7 years ago
missinglink
3913c836e2
feat(coarse_reverse): improve logger assertions
7 years ago
missinglink
b88d2a0abe
feat(coarse_reverse): add try/catch block around synthesizeDoc code
7 years ago
missinglink
45f313d8d9
feat(coarse_reverse): improve logger assertions
7 years ago
missinglink
c72822b805
feat(coarse_reverse): add try/catch block around synthesizeDoc code
7 years ago
Stephen Hess
e67e49421b
updated test
7 years ago
Sergey Zelenov
1f3bb4608c
Fix typo in test/unit/controller/search_with_ids
...
Seems like a typo, should be `deepEqual` instead of `ok`
7 years ago
Stephen Hess
ab332e43ee
removed unused is_service_enabled predicate
7 years ago
Stephen Hess
951b18e656
switched to has_parsed_text_properties
7 years ago
Stephen Hess
c8c969db74
added predicate for any/all parsed_text fields
7 years ago
Stephen Hess
321ba0d458
fixed test
7 years ago
Stephen Hess
257ee8161f
removed unused predicate
7 years ago
Stephen Hess
5b9275d7fd
added libpostal controller
7 years ago
Stephen Hess
44896d7569
add predicate that checks for sources=['whosonfirst']
7 years ago
Stephen Hess
59fb445e68
add predicate that detects non-admin layers parameter values
7 years ago
Stephen Hess
ce4c23f4a5
add predicate that looks for a parameter in req.clean
7 years ago
Stephen Hess
40ddc93bbf
added conditional fallback to addressit
7 years ago
Stephen Hess
442c2b5c9b
add ability to skip filters in placeholder
7 years ago
Stephen Hess
3257ea6b9b
fixed tests for model 4.9.0 changes
7 years ago
Stephen Hess
9ae838903a
converted to 'any' property for brevity
7 years ago
Stephen Hess
adff256583
set query_type for placeholder to enable confidencescores
7 years ago
Stephen Hess
98b6829e31
exclude venue, address, and street from layers filter
7 years ago
Stephen Hess
147d76f9d7
added controller for searching with ids
7 years ago
Stephen Hess
e158c21685
added has_parsed_text_property predicate
7 years ago
Stephen Hess
4271f574ab
updated tests for pelias-model 4.9.0 changes
7 years ago
Stephen Hess
580a9b16c8
set query_type for placeholder to enable confidencescores
7 years ago
Stephen Hess
2ba23cbb62
added warning if boundary.circle.radius is defined
8 years ago
Stephen Hess
1c9c68e5e3
switched to t.plan for easier testing with next()
8 years ago
Stephen Hess
976f252e3f
remove address/venue/street from requested layers when creating results
...
refactored for cleanliness and clarity
8 years ago
Stephen Hess
615f7b720e
switched to t.plan for easier testing with next()
8 years ago
Stephen Hess
d67830ca48
removed unneeded conditional for abbreviation set
8 years ago
Stephen Hess
f721d68e9c
removed alpha3 set
8 years ago
Stephen Hess
39e91d8233
remove address/venue/street from requested layers when creating results
...
refactored for cleanliness and clarity
8 years ago
Stephen Hess
ecf7a90f68
add test that req.clean.layers should be unmodified
8 years ago