Read the term infos file
my $reader = Plucene::Index::TermInfosReader->new( $dir_name, $segment, $fis); my Plucene::Index::TermInfo $term_info = $reader->get(Plucene::Index::Term $term); my Plucene::Index::SegmentTermEnum $enum = $reader->terms(Plucene::Index::Term $term);
This reads a term infos file.
my $reader = Plucene::Index::TermInfosReader->new( $dir_name, $segment, $fis);
This will create a new Plucene::Index::TermInfosReader object with the passed directory name, segment name and field infos.
my Plucene::Index::TermInfo $term_info = $reader->get(Plucene::Index::Term $term);
These are never called.
my Plucene::Index::SegmentTermEnum $enum = $reader->terms(Plucene::Index::Term $term);
This will return the Plucene::Index::SegmentTermEnum for the passed-in Plucene::Index::Term.