If you don't care about the date itself but just the hour of the day, you need to index that value as a the hour of the day.
I'd recommend doing some maths here and for 17:43 add a field:
"mn_of_the_day": 1063
And then use that field.
To do this, you can either do that from your application which generates the data, or you can use an Ingest Script Processor.
If you can't do that before indexing, then you can do that with a runtime field (using a script) but that will be much slower. You have an example in the documentation which computes the day of the week. You can use that as a start.
Interesting. Am I correct in assuming that format on a range query does not cast the value? That seems to be what the documentation indicates.
I originally was looking to do this with a painless script but was unable to find a way to pull full time from a date, I can pull hour or minute but not them together, unless I'm missing something
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.