In the old Lucene version, building date range query was easy:
query = NumericRangeQuery.newLongRange(name, startDate(null if not), endDate(null if not), includeStart, includeEnd);
I switched to Lucene 7 (lucene-core 7.3.1) and I cannot find a corresponding query type that can accept my date as a long(date.getTime()) :(
Can anyone help? I tried TermRangeQuery but its only taking a string as a constructor argument.
Thank you