Skip to content

Commit 2eab36e

Browse files
[Backport 8.x] Add x-model overlays for tokenizer, filter, charfilter schemas (#3021)
1 parent c93f947 commit 2eab36e

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,19 @@ actions:
143143
x-displayName: Machine learning anomaly detection
144144
# description:
145145
externalDocs:
146-
url: https://www.elastic.co/guide/en/machine-learning/master/ml-ad-finding-anomalies.html
146+
url: https://www.elastic.co/guide/en/machine-learning/current/ml-ad-finding-anomalies.html
147147
description: Finding anomalies
148148
- name: ml data frame
149149
x-displayName: Machine learning data frame analytics
150150
# description:
151151
externalDocs:
152-
url: https://www.elastic.co/guide/en/machine-learning/master/ml-dfa-overview.html
152+
url: https://www.elastic.co/guide/en/machine-learning/current/ml-dfa-overview.html
153153
description: Data frame analytics overview
154154
- name: ml trained model
155155
x-displayName: Machine learning trained model
156156
# description:
157157
externalDocs:
158-
url: https://www.elastic.co/guide/en/machine-learning/master/ml-nlp-overview.html
158+
url: https://www.elastic.co/guide/en/machine-learning/current/ml-nlp-overview.html
159159
description: Natural language processing overview
160160
- name: migration
161161
x-displayName: Migration
@@ -243,6 +243,43 @@ actions:
243243
# W
244244
- name: watcher
245245
x-displayName: Watcher
246+
# Add x-model and/or abbreviate schemas that should point to other references
247+
- target: "$.components['schemas']['_types.analysis:CharFilter'].oneOf"
248+
description: Remove existing oneOf definition for CharFilter
249+
remove: true
250+
- target: "$.components['schemas']['_types.analysis:CharFilter']"
251+
description: Simplify CharFilter definition
252+
update:
253+
x-model: true
254+
description: >
255+
Character filters that are used to preprocess characters before they are passed to the tokenizer.
256+
externalDocs:
257+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-charfilters.html
258+
description: Character filters reference
259+
- target: "$.components['schemas']['_types.analysis:Tokenizer'].oneOf"
260+
description: Remove existing oneOf definition for tokenizer
261+
remove: true
262+
- target: "$.components['schemas']['_types.analysis:Tokenizer']"
263+
description: Simplify tokenizer definition
264+
update:
265+
x-model: true
266+
description: >
267+
A tokenizer to use to convert text into tokens.
268+
externalDocs:
269+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenizers.html
270+
description: Tokenizer reference
271+
- target: "$.components['schemas']['_types.analysis:TokenFilter'].oneOf"
272+
description: Remove existing oneOf definition for tokenfilter
273+
remove: true
274+
- target: "$.components['schemas']['_types.analysis:TokenFilter']"
275+
description: Simplify tokenfilter definition
276+
update:
277+
x-model: true
278+
description: >
279+
Token filters that are applied after the tokenizer.
280+
externalDocs:
281+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenfilters.html
282+
description: Token filter reference
246283
# Abbreviate and annotate items that are not shown in Bump.sh due to depth limits
247284
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
248285
description: Remove query object from anomaly detection datafeed

0 commit comments

Comments
 (0)