Range query with Lucene7.7.1 on old indexes.

2021-09-01 Thread Antony Joseph
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("2019010100"), long("20190101115959"), True, True) I am getting the

Re: Range query with Lucene7.7.1 on old indexes.

2021-09-01 Thread Uwe Schindler
Hi, The old trie based range fields were deprecated in License 6 and removed in 7. https://lucene.apache.org/core/6_6_0/core/org/apache/lucene/search/LegacyNumericRangeQuery.html Upgrading the index does not help, because there's no easy way to convert trie fields to points and thats not done au