From Kibana - Dev Tools, I ran
GET local-neal-test-kibananew2c-2018.04.06
which give sthe following - showing that createdDate is actually a date.
So now back to my original quandry - why can't I sort by it?
> {
> "local-neal-test-kibananew2c-2018.04.06": {
> "aliases": {},
> "mappings": {
> "document2": {
> "properties": {
> "createdDate": {
> "type": "date"
> },
> "message": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> },
> "transactionType": {
> "type": "text",
> "fields": {
> "keyword": {
> "type": "keyword",
> "ignore_above": 256
> }
> }
> }
> }
> }
> },
> "settings": {
> "index": {
> "creation_date": "1523026621059",
> "number_of_shards": "5",
> "number_of_replicas": "1",
> "uuid": "3DzKTpm7TYKk_u35pj3eBA",
> "version": {
> "created": "6000099"
> },
> "provided_name": "local-neal-test-kibananew2c-2018.04.06"
> }
> }
> }
> }