Skip to content

Commit 3f0c913

Browse files
elasticsearch-specification update
Update code based on https://github.com/elastic/elasticsearch-specification/blob/main/output/schema/schema.json from Wed Sep 4 00:42:04 UTC 2024.
1 parent 64cf899 commit 3f0c913

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

elasticsearch-ingest-node.schema.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,75 @@
702702
"processor"
703703
]
704704
},
705+
"GeoGridProcessor": {
706+
"properties": {
707+
"description": {
708+
"type": "string",
709+
"description": "Description of the processor. Useful for describing the purpose of the processor or its configuration."
710+
},
711+
"if": {
712+
"type": "string",
713+
"description": "Conditionally execute the processor."
714+
},
715+
"ignore_failure": {
716+
"type": "boolean",
717+
"description": "Ignore failures for the processor."
718+
},
719+
"on_failure": {
720+
"items": {
721+
"$ref": "#/$defs/ProcessorContainer"
722+
},
723+
"type": "array",
724+
"description": "Handle failures for the processor."
725+
},
726+
"tag": {
727+
"type": "string",
728+
"description": "Identifier for the processor. Useful for debugging and metrics."
729+
},
730+
"field": {
731+
"type": "string",
732+
"description": "The field to interpret as a geo-tile.= The field format is determined by the `tile_type`. Required."
733+
},
734+
"tile_type": {
735+
"type": "string",
736+
"description": "Three tile formats are understood: geohash, geotile and geohex. Required."
737+
},
738+
"target_field": {
739+
"type": "string",
740+
"description": "The field to assign the polygon shape to, by default, the `field` is updated in-place."
741+
},
742+
"parent_field": {
743+
"type": "string",
744+
"description": "If specified and a parent tile exists, save that tile address to this field."
745+
},
746+
"children_field": {
747+
"type": "string",
748+
"description": "If specified and children tiles exist, save those tile addresses to this field as an array of strings."
749+
},
750+
"non_children_field": {
751+
"type": "string",
752+
"description": "If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings."
753+
},
754+
"precision_field": {
755+
"type": "string",
756+
"description": "If specified, save the tile precision (zoom) as an integer to this field."
757+
},
758+
"ignore_missing": {
759+
"type": "boolean",
760+
"description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document."
761+
},
762+
"target_format": {
763+
"type": "string",
764+
"description": "Which format to save the generated polygon in."
765+
}
766+
},
767+
"additionalProperties": false,
768+
"type": "object",
769+
"required": [
770+
"field",
771+
"tile_type"
772+
]
773+
},
705774
"GeoIpProcessor": {
706775
"properties": {
707776
"description": {
@@ -1378,6 +1447,10 @@
13781447
"$ref": "#/$defs/ForeachProcessor",
13791448
"description": "Runs an ingest processor on each element of an array or object."
13801449
},
1450+
"geo_grid": {
1451+
"$ref": "#/$defs/GeoGridProcessor",
1452+
"description": "Converts geo-grid definitions of grid tiles or cells to regular bounding boxes or polygons which describe their shape. This is useful if there is a need to interact with the tile shapes as spatially indexable fields."
1453+
},
13811454
"geoip": {
13821455
"$ref": "#/$defs/GeoIpProcessor",
13831456
"description": "The `geoip` processor adds information about the geographical location of an IPv4 or IPv6 address."

processor.go

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

0 commit comments

Comments
 (0)