Is there any way to make a 'string' .raw for a 'date' type?


(xlbrlx) #1

this does not seem to work:

"myDate": {
                            "type": "date",
                            "format": " yyyy-MM-dd || yyyy-MM || Y ||date_hour_minute_second",
                            "fields": {
                                "raw": {
                                    "type": "string",
                                    "index": "not_analyzed",
                                    "null_value": "",
                                    "doc_values": true
                                }
                            }
                        }

(Lee Hinman) #2

You could set up a copy_to parameter in the myDate field that copied the field to a different field, which you can make unanalyzed.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.