I'm trying to get all documents of the week but in the time range of 10 am to 2 pm for example, is there a way to do it in Lucene, because I have to put this query into a timelion.
if I am right what you are trying to do is to plot 7 days of the week but only for 10 am to 2 pm. If there is a way to manipulate your data a little then follow the following steps:
2.Before pushing the data into elastic index use a job/script to mark all the time ranges between 2 to 10 with a "1" and all other timestamps as "0"