Yes it is.
PUT /networks?pretty
{
"mappings": {
"properties": {
"range": { "type": "ip_range" },
"name": { "type": "keyword" },
"department": { "type": "keyword" }
}
}
}
PUT /networks/_doc/1?refresh=wait_for&pretty
{
"range": "2001:db8::/48",
"name": "production",
"department": "OPS"
}
PUT /_enrich/policy/networks-policy?pretty
{
"range": {
"indices": "networks",
"match_field": "range",
"enrich_fields": ["name", "department"]
}
}
POST /_enrich/policy/networks-policy/_execute?pretty
PUT /_ingest/pipeline/networks_lookup
{
"processors" : [
{
"enrich" : {
"description": "Add 'network' data based on 'ip'",
"policy_name": "networks-policy",
"field" : "ip",
"target_field": "network",
"max_matches": "10"
}
}
]
}
PUT /test_networks/_doc/my_id?pipeline=networks_lookup&pretty
{
"ip": "2001:db8::"
}
GET /test_networks/_doc/my_id