Diana Shkolnikov
a3fa49ee52
remove splice and replace with direct assignment
8 years ago
Diana Shkolnikov
24aadbe4a2
fix: increment geocodejson format version number in results
8 years ago
Diana Shkolnikov
3fe113645f
feat: check for preferred record when dupe found
8 years ago
Diana Shkolnikov
30e42e2b80
cleanup variable name and add ciao test
8 years ago
Diana Shkolnikov
21d4bb63f3
feat: add accuracy field
8 years ago
Diana Shkolnikov
cbf2d0ace5
fix broken ciao tests
8 years ago
Diana Shkolnikov
fd3ec97ad0
add new confidence score computation for fallback query type
8 years ago
Diana Shkolnikov
9fd19242e7
make existing confidence score only handle the original query type
8 years ago
Stephen Hess
df2ac8c91b
added `street` to trimByGranularity
8 years ago
Stephen Hess
d5e993fc11
included `localadmin`, `macrocounty`, `macroregion`, and `dependency`
8 years ago
Diana Shkolnikov
a8e82b018d
Refactor deduper and write additional tests
8 years ago
Stephen Hess
af7de7613f
updated to reflect @missinglink's comments
...
the rebase was brutal, i thought that i caught everything, thx for checking
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
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
abef8f1efa
initial stab at generatePermutations
8 years ago
Diana Shkolnikov
cc9c4148bb
Refactor geojsonify code and add ability to pass in clean query params
8 years ago
Julian Simioni
8cae743c80
Handle empty country_a values as well
8 years ago
Julian Simioni
f18e278e51
Handle case where record has no region_ a field
8 years ago
Diana Shkolnikov
2f4719f6e8
Add Czeck Republic
8 years ago
Vesa Meskanen
73f64ce3e1
Cleanup: tabs -> spaces
9 years ago
Vesa Meskanen
e22b973cdf
Do not consider absence of an additional name as a difference
...
OSM data includes two almost identical 'Keskustori, Tampere' entries.
The second one does not have additional 'name.ru' property. This is
no longer considered as a difference in deduping.
9 years ago
Julian Simioni
23ff51fd57
Add custom access_log handlers that remove user info
...
These handlers will remove sensitive query info from the logs when DNT
is enabled
9 years ago
Julian Simioni
57d1c8be1e
Return an object from access_log module
...
This allows adding more methods later.
9 years ago
Julian Simioni
ecb28bc3e9
Remove debug statements that print user parameters
9 years ago
Peter Johnson
eb73ec7390
better comment
9 years ago
Peter Johnson
0caca08787
improve error matching by using string prefix matching on known elasticsearch exception names
9 years ago
Peter Johnson
b15cfb3795
refactor elasticsearch error detection, improve test coverage
9 years ago
missinglink
1c9af40f3c
remove query.tokens_complete and query.tokens_incomplete from geoJSON
9 years ago
Julian Simioni
fd529ccee9
Use new express sendStatus method
...
According to a message on the console:
```
express deprecated res.send(status): Use res.sendStatus(status) instead
middleware/options.js:12:9
```
9 years ago
Julian Simioni
e6e9c1c574
Do not apply local naming conventions to records with no admin info
...
There's no way to decide what to do, and without handling this case the
API will return an error.
9 years ago
Diana Shkolnikov
147c849b58
change admin property names to <place_type>_gid from <place_type>_id
9 years ago
Diana Shkolnikov
82e39fd81f
parent block properties should not be changed, only top level ones
9 years ago
Diana Shkolnikov
201f4d4fb3
Convert parent WOF ids to valid Pelias ids to be used by /place
9 years ago
Diana Shkolnikov
3862dd233e
change admin property names to <place_type>_gid from <place_type>_id
9 years ago
Diana Shkolnikov
10cd693e02
parent block properties should not be changed, only top level ones
9 years ago
Diana Shkolnikov
7231e229d4
Convert parent WOF ids to valid Pelias ids to be used by /place
9 years ago
Stephen Hess
1204727f74
added `macrocounty` and `macroregion` to properties to pull from parent
9 years ago
Vesa Meskanen
0d0651f8ac
Get rid of ugly for-loops using lodash
9 years ago
Vesa Meskanen
00a4bd52a3
Bugfix: deduping caused an error if an array property was missing
...
Conversion from array to string should happen independently for
the compared properties, not only when both are arrays.
9 years ago
Vesa Meskanen
6ab44e0aa2
neighborhood -> neighbourhood
9 years ago
Diana Shkolnikov
4ed5296d79
Update middleware with new prop name
9 years ago
Vesa Meskanen
766b68ef7c
Make street/number flipping configurable
...
pelias_config.api.localization.flipNumberAndStreetCountries can
define an array of ISO 3166-1 alpha-3 country codes, for which
the street number should come after street name.
9 years ago
Diana Shkolnikov
aff146aec3
Fix local naming convention and confidence score middlewares
9 years ago
Vesa Meskanen
caaee361b2
Take absence of information as a difference, after all
...
Is '5 main street' same as 'main street'? Probably not. It may be that
less detailed data is different data, not just bad data. maybe this can
be changed if coordinates are considered, too.
9 years ago
Vesa Meskanen
0e6bf8ed00
Improve response deduping
...
Consider locality and neighborhood, too. Do not take absence of
an attribute as a difference.
9 years ago
Diana Shkolnikov
36b6adddfd
Add bounding_box parsing step
9 years ago
Julian Simioni
a2950eebc4
Cleanup renamePlacenames
9 years ago
Diana Shkolnikov
b7bc3593c2
Lint cleanup
9 years ago
Diana Shkolnikov
e9ceb25ca0
Fix crash when dedupe was comparing arrays as stings for parent properties
9 years ago