I use PyLucene 4.9.0-0 for a school project and I need to use FilterLeafReader but I can't figure out how to import this class.
I tried from org.apache.lucene.search import FilterLeafReader
but i receive an import error.
FilterLeafReader
does not exist in Lucene 4.9, and so is not available in PyLucene 4.9.
AtomicReader
classes were renamed LeafReader
in 5.0, so you should be using FilterAtomicReader
instead. Also, in either case, it's in org.apache.lucene.index
, not org.apache.lucene.search