# phpman > man > Plucene::Index::TermInfosReader(3pm)

## NAME
    [Plucene::Index::TermInfosReader](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATermInfosReader/markdown) - read the term infos file

## SYNOPSIS
            my $reader = [Plucene::Index::TermInfosReader](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATermInfosReader/markdown)->new(
                            $dir_name, $segment, $fis);

            my [Plucene::Index::TermInfo](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATermInfo/markdown) $term_info =
                    $reader->get([Plucene::Index::Term](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATerm/markdown) $term);

            my [Plucene::Index::SegmentTermEnum](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ASegmentTermEnum/markdown) $enum =
                    $reader->terms([Plucene::Index::Term](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATerm/markdown) $term);

## DESCRIPTION
    This reads a term infos file.

## METHODS
  new
            my $reader = [Plucene::Index::TermInfosReader](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATermInfosReader/markdown)->new(
                            $dir_name, $segment, $fis);

    This will create a new [Plucene::Index::TermInfosReader](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATermInfosReader/markdown) object with the passed directory name,
    segment name and field infos.

  get
            my [Plucene::Index::TermInfo](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATermInfo/markdown) $term_info =
                    $reader->get([Plucene::Index::Term](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATerm/markdown) $term);

  get_int / get_position
    These are never called.

  terms
            my [Plucene::Index::SegmentTermEnum](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ASegmentTermEnum/markdown) $enum =
                    $reader->terms([Plucene::Index::Term](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATerm/markdown) $term);

    This will return the [Plucene::Index::SegmentTermEnum](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ASegmentTermEnum/markdown) for the passed-in [Plucene::Index::Term](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ATerm/markdown).

