IndexReader NotImplemented


Hi there,

Sorry if this has come up before, but I couldn’t see it obviously
addressed anywhere. There are a few methods in IndexReader that raise
NotImplementedErrors. I’m specifically interested in get_term_vector,
but there are a number of others. Is there anything specific holding
these back, or would patches to implement them be accepted?



Hi Alex,

These methods are implemented by SegmentReader and MultiReader.
IndexReader is kind of an abstract class. When you open an IndexReader
you’ll get either a SegmentReader or a MultiReader so go ahead and use
those methods. They’ll be implemented.


PS: make sure you use the IndexReader#open method to create an