Peter Johnson
Peter Johnson
enable autocomplete of country-codes
partner PR for https://github.com/pelias/query/pull/130
This PR is WIP and I wouldn't suggest merging it as-is, it's open for testing, discussion and feedback. One confusing and under-documented feature of the elasticsearch `match` query is that...
This PR adds a new method to `helper/diffPlaces.js` called `isEquivalentIdentity()`. Detecting *Equal* Identity is trivial, if two records have the same GID they are the same thing... but there is...
In some cases the parent hierarchy contains tokens which are relevant for deduplication. For example if we have a `geonames` record on `layer=locality` with the `name.default="Land Berlin"` and also `parent.locality=["Berlin"]`....
Pelias enforces a 140 character limit for the `?text=` param for securty/performance reasons. Prior to this PR the two methods used to implement this behaviour (namely `String.prototype.length` and `String.prototype.substring`) were...
Today I was looking into the scoring of queries for **autocomplete** transit stops and managed to fix some incorrect scoring in some cases: before: ``` /v1/autocomplete?text=stop 2 1) SW 2nd...
The existing `helper/diffPlaces::isLayerDifferent()` function provides the ability to deduplicate between disparate layers in certain conditions. It provides an Array called `$layerPreferences` which indicates which layers can be considered synonymous for...
The address `Grolmanstraße 1, 10623, Berlin, Germany` fails for `/v1/search` when searching: [Grolmanstr. 1, 10623, Berlin, Germany](https://pelias.github.io/compare/#/v1/search?text=Grolmanstr.+1%2C+10623%2C+Berlin%2C+Germany). This is an example of a wider bug which effects contracted separable street...
The query "2 Macquarie Street, Sydney" does not currently return [either of these two results](https://pelias.github.io/compare/#/v1/autocomplete?text=2+Macquarie+Street+Parramatta&debug=1) despite [Parramatta](https://en.wikipedia.org/wiki/Parramatta) being a suburb within the greater Metro Sydney Area. The reason for this...