Julian Simioni
acefa1ed3e
Disable dfs_query_then_fetch
...
Just testing...
7 years ago
Peter Johnson
e15aa52f63
feat(type_mapping): rename function to avoid confusion with elasticsearch API
7 years ago
missinglink
b1cfd091ed
type_mapping: add unit tests
7 years ago
missinglink
63c962503c
test: improved type_mapping tests
7 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
Julian Simioni
8bccfc4fd2
Remove other instances of Mapzen
7 years ago
missinglink
59f0f4d70e
add line comment, fix line comment
7 years ago
missinglink
e01fdb85c9
support aliases for label generation
7 years ago
missinglink
7a01e794cf
support aliases for name fields
7 years ago
Julian Simioni
dccad99d78
Move sizeCalculator middleware tests to the correct place
7 years ago
Julian Simioni
f887d7a249
Rename test setup function
...
It now can be confused for the middleware setup function
7 years ago
Julian Simioni
94946989bb
Test cases with a lower min query size
7 years ago
Julian Simioni
825b506a75
Revise tests to account for sizeCalculator setup params
7 years ago
antoine-de
3489517da3
dedup osm/OA address
...
linked to https://github.com/pelias/pelias/issues/541
and maybe to https://github.com/pelias/pelias/issues/541 but I cannot
reproduce it.
and to the fact that there are lots of dupplicates in france like:
[20 rue hector malot
paris](https://mapzen.com/search/explorer/?query=search&text=20%20rue%20hector%20malot%20paris )
that returns 1 result from open address and 1 result from OSM
now we first check which source has a zipcode and if both have, we
prefer OA over OSM
7 years ago
Joxit
551f0227db
Transliterates Saint and Sainte in ES schema see pelias/schema#268
7 years ago
Joxit
d187e7d950
Fix for #1077 , fail to search `Saint..` cities in structured queries
7 years ago
Rhys Kidd
1dfc6988ed
Update to current Pelias contact email address
...
Per https://github.com/pelias/pelias/tree/master/announcements/2018-01-02-pelias-update
replace all @mapzen.com email addresses with the current Pelias contact email address.
grep used to confirm no '@mapzen.com' remain.
7 years ago
sweco-semhul
51709b58ff
Updating ciao tests to reflect current status in master to make them run
7 years ago
Stephen Hess
e0c25d0f57
convert libpostal calls to a microservice
7 years ago
Stephen Hess
b5e48afb35
remove text-analyzer address operation
7 years ago
Stephen Hess
f56deffb8f
allow libpostal configuration in schema w/other services
7 years ago
Diana Shkolnikov
cb59e305b0
log number of streets to be interpolated
7 years ago
Peter Backx
f16565df9e
Verify min and max longitude and latitude
...
Otherwise this can potentially lead to a fairly weird Elasticsearch error mentioned in https://github.com/pelias/pelias/issues/656
7 years ago
Julian Simioni
bc6401842c
Add friendly, coarse specific error message to reverse
...
This error message is updated to mention the coarse-reverse only nature
of Geonames support removal. It also links to the
[tracking ticket](https://github.com/pelias/acceptance-tests/pull/447 )
for Geonames removal which should help provide more context to users.
7 years ago
Stephen Hess
004e3c02b1
completed switch to vs tests over fixtures
7 years ago
Julian Simioni
d577d42d9f
Support geonames non-coarse reverse in deprecation sanitizer
7 years ago
Stephen Hess
110a258130
added initial tests for using vs
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
66d4149f6a
removed references to outdated request parameters
7 years ago
Stephen Hess
02cfa36d24
switched structured query tests away from fixtures
7 years ago
Stephen Hess
da07463999
set req.clean.parser to 'libpostal' when it's called
7 years ago
Stephen Hess
3a862c17ec
move empire include/exclude logic to eojsonify_place_details
7 years ago
Stephen Hess
e4e8d9b0bf
if country_gid exists, remove empire fields
7 years ago
Stephen Hess
05da79923f
wrap interpolation service call to intercept errors
7 years ago
Stephen Hess
18e7673dc1
added empire to coarse translation
7 years ago
Stephen Hess
2df5d6d23b
add empire to coarse reverse controller
7 years ago
Stephen Hess
5b86fbd7d8
add layers parameter support to PointInPolygon service request
7 years ago
Stephen Hess
214c3807eb
added continent, ocean, and marinearea to geojsonify
7 years ago
Stephen Hess
9d54735e41
converted geojsonify_place_details to return instead of modify
7 years ago
Stephen Hess
cd99f87c04
inlined and condensed doc setup
7 years ago
Stephen Hess
5e1360f022
refactored geojsonify, improved test coverage
7 years ago
Stephen Hess
27194a620e
added tests for geocode_place_details
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
Diana Shkolnikov
40870c4e04
check for missing parent object in confidence score computation
7 years ago
Diana Shkolnikov
b60e0113b3
check for missing parent object in confidence score computation
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