schema
schema copied to clipboard
elasticsearch schema files and tooling
today I noticed that we were not able to match the query `Av Michoacán` against the indexed term `Avenida Michoacán` this PR adds Spanish language synonyms for street suffixes. consider...
cherry-picked from https://github.com/pelias/schema/pull/412 and based on https://github.com/pelias/schema/pull/414. This PR adds a `normalizer` which is the nearest thing to an `analyzer` for `keyword` fields. more info here: https://github.com/elastic/elasticsearch/issues/18064 This allows us...
This PR is based on https://github.com/pelias/schema/pull/415. [view diff](https://github.com/pelias/schema/compare/normalizers...normalizers_es6) A nice-to-have but not a biggie, this PR ensures that normalized keyword fields are whitespace trimmed. AFAIK to the `trim` filter not...
From the Travis logs while testing `elasticsearch@7` support: > future versions of Elasticsearch will require Java 11; your Java version from [/usr/lib/jvm/java-8-oracle/jre] does not meet this requirement
linked to https://github.com/pelias/api/issues/1375 the [icu_normalizer docs](https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-icu-normalization-charfilter.html) say that the default normalization mode is `nfkc_cf`. this is basically `nfkc` with 'code folding' too, so we could switch to this mode so...
Each of our Elasticsearch documents stores the original source ID from the upstream data in two places: as part of the GID in the `_id` field, and in the `source_id`...
Since we enabled the translation service we don't really need to 'store' admin strings in ES any longer. We still need to 'index' the values so they can be used...
names such as `51 Friedrich-Richter-Straße` (address-osmnode-2967205513) should be searchable using the tokens `['friedrich','richter','strasse']` as well as `['friedrichrichterstrasse']` and `['friedrich-richter-strasse']`
It just occurred to me that this repo doesn't have much documentation about how the mappings work. Would be good to update the readme/wiki to (at least) give some information...
This was never set up, and thus we have not been linting code in this repository. Fixes https://github.com/pelias/schema/issues/311