Skip to content

Commit f70d64e

Browse files
elasticsearch-specification update
Update code based on https://github.com/elastic/elasticsearch-specification/blob/main/output/schema/schema.json from Fri Sep 6 00:41:48 UTC 2024.
1 parent 3f0c913 commit f70d64e

File tree

2 files changed

+53
-37
lines changed

2 files changed

+53
-37
lines changed

elasticsearch-ingest-node.schema.json

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,10 @@
519519
"type": "string",
520520
"description": "The field to expand into an object field. If set to `*`, all top-level fields will be expanded. Required."
521521
},
522+
"override": {
523+
"type": "boolean",
524+
"description": "Controls the behavior when there is already an existing nested object that conflicts with the expanded field. When `false`, the processor will merge conflicts by combining the old and the new values into an array. When `true`, the value from the expanded field will overwrite the existing value."
525+
},
522526
"path": {
523527
"type": "string",
524528
"description": "The field that contains the field to expand. Only required if the field to expand is part another object field, because the `field` option can only understand leaf fields."
@@ -822,6 +826,10 @@
822826
"target_field": {
823827
"type": "string",
824828
"description": "The field that will hold the geographical information looked up from the MaxMind database."
829+
},
830+
"download_database_on_pipeline_creation": {
831+
"type": "boolean",
832+
"description": "If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the missing database is downloaded when the pipeline is created. Else, the download is triggered by when the pipeline is used as the `default_pipeline` or `final_pipeline` in an index."
825833
}
826834
},
827835
"additionalProperties": false,
@@ -1341,6 +1349,10 @@
13411349
"type": "integer",
13421350
"description": "Version number used by external systems to track ingest pipelines."
13431351
},
1352+
"deprecated": {
1353+
"type": "boolean",
1354+
"description": "Marks this ingest pipeline as deprecated. When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning."
1355+
},
13441356
"_meta": {
13451357
"$ref": "#/$defs/Metadata",
13461358
"description": "Arbitrary metadata about the ingest pipeline. This map is not automatically generated by Elasticsearch."
@@ -2130,19 +2142,24 @@
21302142
"type": "boolean",
21312143
"description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document."
21322144
},
2133-
"options": {
2134-
"items": {
2135-
"type": "string"
2136-
},
2137-
"type": "array"
2138-
},
21392145
"regex_file": {
21402146
"type": "string",
21412147
"description": "The name of the file in the `config/ingest-user-agent` directory containing the regular expressions for parsing the user agent string. Both the directory and the file have to be created before starting Elasticsearch. If not specified, ingest-user-agent will use the `regexes.yaml` from uap-core it ships with."
21422148
},
21432149
"target_field": {
21442150
"type": "string",
21452151
"description": "The field that will be filled with the user agent details."
2152+
},
2153+
"properties": {
2154+
"items": {
2155+
"type": "string"
2156+
},
2157+
"type": "array",
2158+
"description": "Controls what properties are added to `target_field`."
2159+
},
2160+
"extract_device_type": {
2161+
"type": "boolean",
2162+
"description": "Extracts device type from the user agent string on a best-effort basis."
21462163
}
21472164
},
21482165
"additionalProperties": false,

processor.go

Lines changed: 30 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)