isabek / es-response-parser

Elasticsearch response parser for Node.JS
10 stars 7 forks source link

Problem with 'key_as_string' on Date Histogram Aggregation #1

Open NativAt opened 8 years ago

NativAt commented 8 years ago

When I'm trying to parse response of Date Histogram Aggregation request. I'm not getting the "key_as_string" field, but just the bucket "key".

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html

isabek commented 8 years ago

@NativAt, could you past your input data?

NativAt commented 7 years ago

Please take a look here: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html

Date Histogram "Format" response is in: "key_as_string" and not in "key" which gives you unix timestamp.

Please check my bugfix proposal.

ghost commented 4 years ago

@NativAt do u have any idea's on below list response percentile percentile_ranks median count std deviation response-parser always returning empty values please give me suggestions on what should I need to do