logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Plucene::Index::SegmentInfo - Information on a Segment

Description

       This class holds information on a segment.

       The index database is composed of 'segments' each stored in a separate file.  When you add documents to
       the index, new segments may be created. You can compact the database and reduce the number of segments by
       optimizing it.

Methods

name/doc_count/dir
       Get / set these attributes.

perl v5.36.0                                       2022-12-04                   Plucene::Index::SegmentInfo(3pm)

Name

       Plucene::Index::SegmentInfo - Information on a Segment

Synopsis

               my $segment_info = Plucene::Index::SegmentInfo->new;

               # get
               my $name = $segment_info->name;
               my $doc_count = $segment_info->doc_count;
               my $dir = $segment_info->dir;

               # set
               $segment_info->name($new_name);
               $segment_info->doc_count($new_doc_count);
               $segment_info->dir($new_dir);

See Also