Lucy::Search::TermQuery - Query which matches individual terms.
my $term_query = Lucy::Search::TermQuery->new( field => 'content', term => 'foo', ); my $hits = $searcher->hits( query => $term_query );
TermQuery is a subclass of Lucy::Search::Query for matching individual terms in a specific field.
my $term_query = Lucy::Search::TermQuery->new( field => 'content', # required term => 'foo', # required );
field - Field name.
term - Term text.
Accessor for object's field member.
field
Accessor for object's term member.
term
Lucy::Search::TermQuery isa Lucy::Search::Query isa Lucy::Object::Obj.
To install Lucy::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lucy::Simple
CPAN shell
perl -MCPAN -e shell install Lucy::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.