Tags: pelias/model
Tags
remove `_type` (#157) Remove references to `_type` from this repo in order to support elasticsearch v8. Prior to version 6 `_type` was recommended to be "_doc", in es7 it was optional (but if specified it was required to be "_doc"), in es8 it's not allowed at all. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html BREAKING CHANGE: Pelias no longer supports elasticsearch v6 This change drops support for elasticsearch v6 in order to support v8. The current recommended version remains v7.
feat(validation): Add validation to addParent(). (#150) Explicit parent field validation authored by @mansoor.sajjad With this change, any attempt to add a field with a name not supported by `pelias/schema` will throw an error. * Adding parentFields validation in addParent. * Removing 'macrohood' from the parentFields as it's not supported by the pelias schema. * Removing 'macrohood' from the parentFields in the unit test. Co-authored-by: mansoor.sajjad <[email protected]>
PreviousNext