Forum: Ferret IndexReader NotImplemented

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-02-17 19:31
(Received via mailing list)
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?

Thanks,
B5e329ffa0cc78efbfc7ae2d084c149f?d=identicon&s=25 David Balmain (Guest)
on 2006-02-18 02:59
(Received via mailing list)
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.

Cheers,
Dave

PS: make sure you use the IndexReader#open method to create an
IndexReader.
This topic is locked and can not be replied to.