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 π
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
- ubuntu stonking: libkinosearch1-perl 1.01-6build2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms