Skip to content

Commit 966c2f2

Browse files
authored
Add x-model overlays for tokenizer, filter, charfilter schemas (#2976)
1 parent 4e82e6b commit 966c2f2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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/master/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/master/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/master/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)