Skip to content

[Backport 8.x] Add x-model overlays for tokenizer, filter, charfilter schemas #3021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 40 additions & 3 deletions docs/overlays/elasticsearch-shared-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,19 @@ actions:
x-displayName: Machine learning anomaly detection
# description:
externalDocs:
url: https://www.elastic.co/guide/en/machine-learning/master/ml-ad-finding-anomalies.html
url: https://www.elastic.co/guide/en/machine-learning/current/ml-ad-finding-anomalies.html
description: Finding anomalies
- name: ml data frame
x-displayName: Machine learning data frame analytics
# description:
externalDocs:
url: https://www.elastic.co/guide/en/machine-learning/master/ml-dfa-overview.html
url: https://www.elastic.co/guide/en/machine-learning/current/ml-dfa-overview.html
description: Data frame analytics overview
- name: ml trained model
x-displayName: Machine learning trained model
# description:
externalDocs:
url: https://www.elastic.co/guide/en/machine-learning/master/ml-nlp-overview.html
url: https://www.elastic.co/guide/en/machine-learning/current/ml-nlp-overview.html
description: Natural language processing overview
- name: migration
x-displayName: Migration
Expand Down Expand Up @@ -243,6 +243,43 @@ actions:
# W
- name: watcher
x-displayName: Watcher
# Add x-model and/or abbreviate schemas that should point to other references
- target: "$.components['schemas']['_types.analysis:CharFilter'].oneOf"
description: Remove existing oneOf definition for CharFilter
remove: true
- target: "$.components['schemas']['_types.analysis:CharFilter']"
description: Simplify CharFilter definition
update:
x-model: true
description: >
Character filters that are used to preprocess characters before they are passed to the tokenizer.
externalDocs:
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-charfilters.html
description: Character filters reference
- target: "$.components['schemas']['_types.analysis:Tokenizer'].oneOf"
description: Remove existing oneOf definition for tokenizer
remove: true
- target: "$.components['schemas']['_types.analysis:Tokenizer']"
description: Simplify tokenizer definition
update:
x-model: true
description: >
A tokenizer to use to convert text into tokens.
externalDocs:
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenizers.html
description: Tokenizer reference
- target: "$.components['schemas']['_types.analysis:TokenFilter'].oneOf"
description: Remove existing oneOf definition for tokenfilter
remove: true
- target: "$.components['schemas']['_types.analysis:TokenFilter']"
description: Simplify tokenfilter definition
update:
x-model: true
description: >
Token filters that are applied after the tokenizer.
externalDocs:
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenfilters.html
description: Token filter reference
# Abbreviate and annotate items that are not shown in Bump.sh due to depth limits
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
description: Remove query object from anomaly detection datafeed
Expand Down
Loading