Using Elasticsearch 2.4, directly by DSL query.
I am looking for a way to output values that only appeared in the last X months compared to the entire timeline.
Example: given a dataset with these data
I would like to retrieve the data that appeared in the last 12 months but never appeared before 12 months ago. In other words, the data that appeared for the first time ever in the last 12 months.
Expected result would be:
I'm not sure how to approach this with an ES query, does anyone have an idea?
Thanks in advance