|
1 | 1 | # Overlays that are applicable to both Elasticsearch and Elasticsearch Serverless OpenAPI documents
|
2 | 2 | overlay: 1.0.0
|
3 | 3 | info:
|
4 |
| - title: Overlays for examples that apply to both Elasticsearcb and Elasticsearch Serverless OpenAPI documents |
| 4 | + title: Overlays for changes that apply to both Elasticsearcb and Elasticsearch Serverless OpenAPI documents |
5 | 5 | version: 0.0.1
|
6 | 6 | actions:
|
| 7 | +# Abbreviate and annotate items that are not shown in Bump.sh due to depth limits |
| 8 | + - target: "$.components['schemas']['ml._types:Datafeed'].properties.query" |
| 9 | + description: Remove query object from ML anomaly detection datafeed |
| 10 | + remove: true |
| 11 | + - target: "$.components['schemas']['ml._types:Datafeed'].properties" |
| 12 | + description: Re-add a simplified query object in ML anomaly detection datafeed |
| 13 | + update: |
| 14 | + query: |
| 15 | + x-abbreviated: true |
| 16 | + type: object |
| 17 | + description: > |
| 18 | + The Elasticsearch query domain-specific language (DSL). |
| 19 | + This value corresponds to the query object in an Elasticsearch search POST body. |
| 20 | + All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. |
| 21 | + By default, this property has the following value: `{"match_all": {"boost": 1}}`. |
| 22 | + externalDocs: |
| 23 | + url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html |
| 24 | + description: Query DSL |
| 25 | + - target: "$.components['schemas']['ml._types:CategorizationAnalyzerDefinition'].properties.tokenizer" |
| 26 | + description: Remove tokenizer object from ML anomaly detection analysis config |
| 27 | + remove: true |
| 28 | + - target: "$.components['schemas']['ml._types:CategorizationAnalyzerDefinition'].properties" |
| 29 | + description: Re-add a simplified tokenizer object in ML anomaly detection analysis config |
| 30 | + update: |
| 31 | + tokenizer: |
| 32 | + x-abbreviated: true |
| 33 | + oneOf: |
| 34 | + - type: object |
| 35 | + - type: string |
| 36 | + description: > |
| 37 | + The name or definition of the tokenizer to use after character filters are applied. |
| 38 | + This property is compulsory if `categorization_analyzer` is specified as an object. |
| 39 | + Machine learning provides a tokenizer called `ml_standard` that tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English. |
| 40 | + If you want to use that tokenizer but change the character or token filters, specify `"tokenizer": "ml_standard"` in your `categorization_analyzer`. |
| 41 | + Additionally, the `ml_classic` tokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2). |
| 42 | + `ml_classic` was the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify `"tokenizer": "ml_classic"` in your `categorization_analyzer`. |
| 43 | + externalDocs: |
| 44 | + url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenizers.html |
| 45 | + description: Tokenizer reference |
| 46 | +# Examples |
7 | 47 | - target: "$.components['requestBodies']['async_search.submit']"
|
8 | 48 | description: "Add example for asynch search submit request"
|
9 | 49 | update:
|
|
0 commit comments