however I tried Terms aggregation here's the result, I want to achieve the first screenshot to diplay the year only but It should display all the years from 1990 - 2019.
The visualization tries to be smart and limits the amount of ticks displayed for dates - in this case it's only showing only every second label.
To work around this, try to create a scripted field for the year (as a number, not a date) and use the terms aggregation on that: doc['year'].value.getYear()
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.