Lucy::Index::LexiconReader(3pm)

Lucy::Index::LexiconReader3pm

Read lexicon data.

Usage

    my $lex_reader = $seg_reader->obtain("Lucy::Index::LexiconReader");
    my $lexicon    = $lex_reader->lexicon( field => 'title' );

Overview

LexiconReader reads term dictionary information.

Abstract methods

lexicon( [labeled params] )

Return a new Lexicon for the given "field". Will return undef if either the field is not indexed, or if no documents contain a value for the field.

•

field - Field name.

•

term - Pre-locate the Lexicon to this term.

doc_freq( [labeled params] )

Return the number of documents where the specified term is present.

Inheritance

Lucy::Index::LexiconReader isa Lucy::Index::DataReader isa Lucy::Object::Obj.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From liblucy-perl 0.3.3-7+b1 in Debian 9 (Stretch). Parsed by carta from the page's man source.