Hi
Here is the mapping :
PUT http://192.168.128.32:7013/testindex
{
"mappings": {
"_doc": {
"properties": {
"ip_addr": {
"type": "ip"
}
}
}
}
}
Here is the index PUT request:
PUT http://192.168.128.32:7013/testindex/_doc/2
{
"ip_addr": "192.168.1.0/24"
}
And the request fails with ...
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "failed to parse [ip_addr]"
}
],
"type": "mapper_parsing_exception",
"reason": "failed to parse [ip_addr]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "'192.168.1.0/24' is not an IP string literal."
}
}