Hi all,
Using: python 2.7.14, pylucene 4.10.0
Index:
xdate = long("20190101183030")
doc.add(LongField('xdate', xdate, Field.Store.YES)) # stored and not
analyzed
Query:
query = NumericRangeQuery.newLongRange("xdate", long("20190101000000"),
long("20190101115959"), True, True)
I am getting the results. It works fine.
Now i upgraded the lucene index 4.10.0 to lucene 7.7.1
Using : Python3.8.11, pylucene 7.7.1
I am searching on my old indexes, using the following queries
query = NumericDocValuesField.newSlowRangeQuery("xdate",
long("20190101000000"), long("20190101115959"))
No results.
query = LongPoint.newRangeQuery("xdate", long("20190101000000"),
long("20190101115959"))
No results.
How to get the results on my old indexes using date range query?
Can anyone help?
Thanks
Using: python 2.7.14, pylucene 4.10.0
Index:
xdate = long("20190101183030")
doc.add(LongField('xdate', xdate, Field.Store.YES)) # stored and not
analyzed
Query:
query = NumericRangeQuery.newLongRange("xdate", long("20190101000000"),
long("20190101115959"), True, True)
I am getting the results. It works fine.
Now i upgraded the lucene index 4.10.0 to lucene 7.7.1
Using : Python3.8.11, pylucene 7.7.1
I am searching on my old indexes, using the following queries
query = NumericDocValuesField.newSlowRangeQuery("xdate",
long("20190101000000"), long("20190101115959"))
No results.
query = LongPoint.newRangeQuery("xdate", long("20190101000000"),
long("20190101115959"))
No results.
How to get the results on my old indexes using date range query?
Can anyone help?
Thanks