logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

KinoSearch1::Search::TermQuery - match individual Terms

Description

       TermQuery is a subclass of KinoSearch1::Search::Query for matching individual Terms.  Note that since
       Term objects are associated with one and only one field, so are TermQueries.

License, Disclaimer, Bugs, Etc.

       See KinoSearch1 version 1.01.

perl v5.40.0                                       2024-10-20                KinoSearch1::Search::TermQuery(3pm)

Methods

new
           my $term_query = KinoSearch1::Search::TermQuery->new(
               term => $term,
           );

       Constructor.  Takes hash-style parameters:

       •   term - a KinoSearch1::Index::Term.

Name

       KinoSearch1::Search::TermQuery - match individual Terms

Synopsis

           my $term = KinoSearch1::Index::Term->new( $field, $term_text );
           my $term_query = KinoSearch1::Search::TermQuery->new(
               term => $term,
           );
           my $hits = $searcher->search( query => $term_query );

See Also