Diana Shkolnikov
10cd693e02
parent block properties should not be changed, only top level ones
9 years ago
Diana Shkolnikov
928597e029
Fix admin parts parsing without spaces after delimeters
9 years ago
missinglink
3a789b4a93
increase autocomplete 'phrase:slop' setting from 2->3
9 years ago
Diana Shkolnikov
7231e229d4
Convert parent WOF ids to valid Pelias ids to be used by /place
9 years ago
Diana Shkolnikov
7ebb653c22
Change properties.bounding_box to bbox at top level
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
aa3e764e49
update analyzers to work with https://github.com/pelias/schema/pull/109
9 years ago
Peter Johnson
63301afeac
wow this is easy to get wrong, added a unit test
9 years ago
Peter Johnson
7d71e32104
bugfix: enable support for ?sources= filtering on /reverse
9 years ago
Peter Johnson
0abda099a6
bugfixes and more tests
9 years ago
Peter Johnson
00b123adfb
enable ?source=s and ?layers params for autocomplete
9 years ago
Peter Johnson
8431763a12
fix handling of ?size= param for autocomplete
9 years ago
Peter Johnson
63558eb15d
add ciao dummy data script and README on how to use it
9 years ago
Julian Simioni
d5b818ea84
Fix typo
9 years ago
Julian Simioni
26d49ac7a7
Update ciao tests
9 years ago
Julian Simioni
e97d72d7b6
Send warning when sources=quattroshapes
9 years ago
Stephen Hess
c746bd8d36
added `macroregion` to default and GBR schemas (with tests!)
9 years ago
Stephen Hess
77f396d5cb
exposed `macrocounty` and `macroregion` fields in geojsonify
9 years ago
Vesa Meskanen
1a156488d2
Unit test for configured flip street/number countries
9 years ago
Vesa Meskanen
0064f6f257
Add two new test entries to test neighbourhood and locality in deduping
9 years ago
Diana Shkolnikov
74467e91e6
Update tests and fixtures
9 years ago
Diana Shkolnikov
ab5004273b
Fix unit tests due to new version of pelias-query
9 years ago
Julian Simioni
b4fb62f2c9
Test that src/backend passes correct config to elasticsearch
9 years ago
Peter Johnson
a4f6e70d25
upgrade to pelias-query@6.1.0
9 years ago
Diana Shkolnikov
aff146aec3
Fix local naming convention and confidence score middlewares
9 years ago
Vesa Meskanen
827788e16c
Revert "Dedupe unit test data for testing missing attributes"
...
This reverts commit 6430930cb5
.
9 years ago
Vesa Meskanen
6430930cb5
Dedupe unit test data for testing missing attributes
...
Test data has two otherwise identical entries, but the latter
one lacks some attributes. It should be considered as a duplicate.
9 years ago
Diana Shkolnikov
e17b940136
Compute extent bounding box and expose bounding_box property in results
9 years ago
Diana Shkolnikov
36b6adddfd
Add bounding_box parsing step
9 years ago
missinglink
cd16ff92b1
add common.diff() function for test debugging
9 years ago
Julian Simioni
3a85392862
Update _type value in ES response fixtures
...
osmnode and osmway are not types anymore!
9 years ago
Diana Shkolnikov
b3939efb21
Fix ciao tests
9 years ago
Diana Shkolnikov
e9ceb25ca0
Fix crash when dedupe was comparing arrays as stings for parent properties
9 years ago
Diana Shkolnikov
af8044ef29
Fix all unit tests
9 years ago
Diana Shkolnikov
3daec67b6b
Fix helper unit tests
9 years ago
Diana Shkolnikov
31374b5381
Fix middleware unit tests
9 years ago
Diana Shkolnikov
e14697fe40
Remove adminFields because it is not needed anymore
9 years ago
Julian Simioni
74d05867cf
Update mock Elasticsearch response data
9 years ago
Julian Simioni
ab9dbdf7f0
Update ciao tests
9 years ago
missinglink
67449dcae0
Tweak weights for focus
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
missinglink
ce292baeaf
fixes for focus.point to work with wof integration
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
cdd00af6bc
Build responses with new source and layer fields
...
There is no longer any ambiguity in the source field and the layer
(which is stored as _type), so a lot of logic to compute them can simply
read from the elasticsearch document. Hooray!
9 years ago
Stephen Hess
d1dc88cefd
added tests for `default` schema
9 years ago
Stephen Hess
0f6059c05a
Refactored to use a function for looking up value for a label
...
The reason for this switch is that special case logic is needed to determine the US state name to display. All other fields can be looked up by name.
The burden of fallback functionality is now in `helper/labelSchema` so the burden of unit testing is now in `test/unit/helper/labelSchema.js`
9 years ago
Stephen Hess
431fe44f05
converted labelSchema to .js with module.exports
...
this is in preparation to introduce functions into the schema instead of strings
9 years ago