Hi all,
I have a mapped field called 'start_date' that I want to display in a terms panel as a "human readable" date string, not a long. Is this possible? I did a search through this group and didn't see the question asked, so hopefully it's not a repeat!
Mapping:
"start_date": { "type": "date", "index" : "not_analyzed", "doc_values": true, "norms": { "enabled": false }  }
Query:
curl -XGET 'http://myhost:9200/myindex-20150729/_search?pretty' -d '{
  "facets": {
    "terms": {
      "terms": {
        "field": "start_date",
        "size": 10,
        "order": "count",
        "exclude": []
      },
      "facet_filter": {
        "fquery": {
          "query": {
            "filtered": {
              "query": {
                "bool": {
                  "should": [
                    {
                      "query_string": {
                        "query": "(process:Batch) AND (process_result:Fail)"
                      }
                    }
                  ]
                }
              },
              "filter": {
                "bool": {
                  "must": [
                    {
                      "range": {
                        "@timestamp": {
                          "from": 1438186360290,
                          "to": 1438272760290
                        }
                      }
                    },
                    {
                      "fquery": {
                        "query": {
                          "query_string": {
                            "query": "_type:perf_myapp"
                          }
                        },
                        "_cache": true
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "size": 0
}'
Result:
{
  "took" : 5330,
  "timed_out" : false,
  "_shards" : {
    "total" : 12,
    "successful" : 12,
    "failed" : 0
  },
  "hits" : {
    "total" : 1096575744,
    "max_score" : 0.0,
    "hits" : [ ]
  },
  "facets" : {
    "terms" : {
      "_type" : "terms",
      "missing" : 0,
      "total" : 39376,
      "other" : 16614,
      "terms" : [ {
        "term" : 1438128000000,
        "count" : 4164
      }, {
        "term" : 1438041600000,
        "count" : 3781
      }, {
        "term" : 1438214400000,
        "count" : 3179
      }, {
        "term" : 1437955200000,
        "count" : 2612
      }, {
        "term" : 1438300800000,
        "count" : 2117
      }, {
        "term" : 1439337600000,
        "count" : 1677
      }, {
        "term" : 1437782400000,
        "count" : 1443
      }, {
        "term" : 1437868800000,
        "count" : 1374
      }, {
        "term" : 1438732800000,
        "count" : 1243
      }, {
        "term" : 1437696000000,
        "count" : 1172
      } ]
    }
  }
}
Thank you so much for the advice!
Chris


