Unable to create ES mapping date field

89 views Asked by At

I have a table, one column is a UDT

CREATE TYPE baseinfo (
    head_commission_nr text,
    internal_source text,
    internal_changed date,
);

ES mapping for that part of the table:

    "internal_changed": {
      "type": "date",
      "cql_collection": "singleton"
    }

Indexing fails with:

"type": "mapper_parsing_exception", "reason": "Failed to execute query:null : Field "internal_changed" with type date does not match type timestamp", "caused_by": { "type": "invalid_request_exception", "reason": "Field "internal_changed" with type date does not match type timestamp" }

What am I doing wrong?

1

There are 1 answers

5
hamid bayat On

delete the indices have been created and change the mapping like this:

 "internal_changed": {
      "type": "date",
      "format": "yyyy-MM-dd ",
      "cql_collection": "singleton"
    }