Elastic search how to ignore a field in mapping
because you have defined mapping for type ftype
and you are indexing a type t
.
Either change the type of added document to ftype
as :
put /comtest/ftype/1{ "a": "cdcwc", "b": 1, "c": { "6": 22, "322": [ 444, "ew", "fwefwe." ] }, "d": null, "e": "svgerbgerb", "f": false, "g": "rethrt", "h": null, "i": 55, "j": null, "k": null, "l": null, "m": "dasd", "n": 88, "o": "1", "p": "asas" }
or change the type
in mapping to t
as:
PUT /comtest { "mappings": { "t": { "properties": { "a": { "type": "string" }, "b": { "type": "long" }, "c": { "type" : "object", "enabled" : false }, "d": { "type": "string" }, "e": { "type": "string" }, "f": { "type": "boolean" }, "g": { "type": "string" }, "h": { "type": "string" }, "i": { "type": "long" }, "j": { "type": "string" }, "k": { "type": "long" }, "l": { "type": "date" }, "m": { "type": "string" }, "n": { "type": "string" }, "o": { "type": "string" }, "p": { "type": "string" } } } } }