hi
can create a field with the following request?
{"mappings":
{"properties":
{"address":
{"type":"text","format":"url"}
}
}
}
If not,How can it be created by request with specifying the format?
It can be created manually in Kibana But I want it to be created by request
below request:
PUT index_name { "mappings": { "properties": { "address": { "type": "text", "format": "url" } } } }
answer given in Dev tools:
{ "error" : { "root_cause" : [ { "type" : "mapper_parsing_exception", "reason" : "unknown parameter [format] on mapper [address] of type [text]" } ], "type" : "mapper_parsing_exception", "reason" : "Failed to parse mapping [_doc]: unknown parameter [format] on mapper [address] of type [text]", "caused_by" : { "type" : "mapper_parsing_exception", "reason" : "unknown parameter [format] on mapper [address] of type [text]" } }, "status" : 400 }
Thank you for your kind look