Plucene::Index::TermInfosWriter(3pm)

Plucene::Index::TermInfosWriter3pm

Write to the term infos file

Usage

        my $writer = Plucene::Index::TermInfosWriter->new(
                $dir_name, $segment, $field_infos);
        $writer->add(Plucene::Index::Term $term, 
                        Plucene::Index::TermInfo $term_info);
        $writer->write_term(Plucene::Index::Term $term);

Overview

This will allow for the writing and adding to a term infos file for a particular segment. It also writes the term infos index.

Methods

new

        my $writer = Plucene::Index::TermInfosWriter->new(
                $dir_name, $segment, $field_infos);

This will create a new Plucene::Index::TermInfosWriter object.

break_ref

This will break a circular reference.

add

        $writer->add(Plucene::Index::Term $term, 
                        Plucene::Index::TermInfo $term_info);

This will add the term and term info to the term infos file.

write_term

        $writer->write_term(Plucene::Index::Term $term);

This will write the term to the term infos file.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0
  4. 7–9
  5. 10–11
  6. 12–13

From libplucene-perl 1.25-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.