KinoSe...mQuery(3pm)

πŸ’– KinoSearch1::Search::TermQuery β€” match individual Terms πŸ’–

okay bestie, so this is <rainbow>KinoSearch1::Search::TermQuery</rainbow>, from the User Contributed Perl Documentation corner of the 3pm section, and it is exactly what it says on the tin: it hunts down individual Terms. no cap. πŸŽ€


✨ 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 );

like. look at her. build a Term, wrap it in a TermQuery, yeet it at the searcher, get $hits back. slay. πŸ‘‘


🌸 DESCRIPTION 🌸

So TermQuery is a subclass of KinoSearch1::Search::Query, and its whole entire job β€” its main character purpose, if you will β€” is matching individual Terms. πŸ¦‹

And here's the lowkey important bit, babes: Term objects are associated with one and only one field. So therefore, by extension, so are TermQuery objects. one term, one field, periodt. πŸ’…


🫢 METHODS 🫢

🌟 new

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

Constructor, bestie! she's giving ✨builder energy✨. Takes hash-style parameters:

  • term β€” a KinoSearch1::Index::Term. that's the whole vibe. that's the term you're querying with. πŸ“

Copyright 2005-2010 Marvin Humphrey πŸ’œ


πŸ’€ LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch1 version 1.01. (go read that one, bestie, it's got the whole legal tea πŸ«–)


and that's a wrap, gorgeous 🌈 this was KinoSearch1::Search::TermQuery, documented under perl v5.42.3, dated 2026-08-20, and you absolutely ate that. mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from