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

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

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.

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