Author image Marvin Humphrey
and 1 contributors

NAME

KinoSearch::Index::Term - String of text associated with a field.

SYNOPSIS

    my $foo_term   = KinoSearch::Index::Term->new( 'content', 'foo' );
    my $term_query = KinoSearch::Search::TermQuery->new( term => $foo_term );

DESCRIPTION

A Term is a unit of search. It has two characteristics: a field name, and term text.

METHODS

new

    my $term = KinoSearch::Index::Term->new( FIELD_NAME, TERM_TEXT );

Constructor.

set_text get_text set_field get_field

Getters and setters.

to_string

Returns a string representation of the Term object.

SEE ALSO

KinoSearch::Docs::IRTheory.

COPYRIGHT

Copyright 2005-2007 Marvin Humphrey

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.20.