Plucene::Index::SegmentInfo(3pm)

Plucene::Index::SegmentInfo3pm

Information on a segment

Usage

        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);

Overview

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.

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.