Logan Bell > Lucy-0.3.2 > Lucy::Search::TermQuery

Download:
Lucy-0.3.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Module Version: 0.003002   Source   Latest Release: Lucy-0.3.3

NAME ^

Lucy::Search::TermQuery - Query which matches individual terms.

SYNOPSIS ^

    my $term_query = Lucy::Search::TermQuery->new(
        field => 'content',
        term  => 'foo', 
    );
    my $hits = $searcher->hits( query => $term_query );

DESCRIPTION ^

TermQuery is a subclass of Lucy::Search::Query for matching individual terms in a specific field.

CONSTRUCTORS ^

new( [labeled params] )

    my $term_query = Lucy::Search::TermQuery->new(
        field => 'content',    # required
        term  => 'foo',        # required
    );

METHODS ^

get_field()

Accessor for object's field member.

get_term()

Accessor for object's term member.

INHERITANCE ^

Lucy::Search::TermQuery isa Lucy::Search::Query isa Lucy::Object::Obj.

syntax highlighting: