KinoSe...eQuery(3pm)

πŸ’– KinoSearch1::Search::PhraseQuery πŸ’–

okay bestie, so this page is from the User Contributed Perl Documentation section, and it's giving KinoSearch1::Search::PhraseQuery(3pm). it's a Perl manpage. it's adorable. let's go πŸŽ€


✨ NAME ✨

KinoSearch1::Search::PhraseQuery β€” match an ordered list of Terms πŸ¦‹


🌸 SYNOPSIS 🌸

my $phrase_query = KinoSearch1::Search::PhraseQuery->new;
for ( qw( the who ) ) {
    my $term = KinoSearch1::Index::Term( 'bodytext', $_ );
    $phrase_query->add_term($term);
}
my $hits = $searcher->search( query => $phrase_query );

like,, that's it. that's the whole vibe. you build the query, you feed it terms, you search. slay ✨


πŸ’… DESCRIPTION πŸ’…

so PhraseQuery is a subclass of KinoSearch1::Search::Query, and its whole personality is matching against ordered collections of terms. not just "any of these words show up" β€” no no, the order MATTERS, queen πŸ‘‘


πŸ‘‘ METHODS πŸ‘‘

πŸŽ€ new

my $phrase_query = KinoSearch1::Search::PhraseQuery->new;

this is the Constructor. it literally takes no arguments. zero. none. an empty plate. just call it and it hands you back a fresh PhraseQuery object, no questions asked πŸ™ˆ

πŸŽ€ add_term

$phrase_query->add_term($term);

appends a term to the phrase that's gonna be matched. it takes one argument, and that argument is a KinoSearch1::Index::Term object. keep calling it and the phrase keeps growing, one term at a time 🫢

fr fr: if the order of your terms matters to you (and bestie, it does), this is the method doing the heavy lifting.

Copyright 2005-2010 Marvin Humphrey


🌈 LICENSE, DISCLAIMER, BUGS, etc. 🌈

See KinoSearch1 version 1.01.


k that's the whole page, no cap πŸ’€πŸ’– this was documented under perl v5.42.3, dated 2026-08-20, and honestly? iconic. periodt πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from