Lucy::...lyQuery(3pm)
π NAME π
Lucy::Search::PolyQuery β the base class energy for all your composite Query objects, bestie π«Ά
β¨ SYNOPSIS β¨
sub walk {
my $query = shift;
if ( $query->isa("Lucy::Search::PolyQuery") ) {
if ( $query->isa("Lucy::Search::ORQuery") ) { ... }
elsif ( $query->isa("Lucy::Search::ANDQuery") ) { ... }
elsif ( $query->isa("Lucy::Search::RequiredOptionalQuery") ) {
...
}
elsif ( $query->isa("Lucy::Search::NOTQuery") ) { ... }
}
else { ... }
}
look at that little type-checking cascade, it's giving very demure, very mindful π
πΈ DESCRIPTION πΈ
okay so. PolyQuery is the shared base class β the group chat that everyone's in β for ANDQuery, ORQuery, NOTQuery, and RequiredOptionalQuery. π
and here's the iconic part: all of these classes can serve as nodes in a composite Query with a tree structure which may be walked. π³β¨ like, a whole tree of queries, and you can just... walk it. main character behavior fr fr.
π¦ METHODS π¦
add_child
$poly_query->add_child($query);
Add a child Query node. that's it, that's the whole thing β you're literally just handing your poly query a baby query to hold πΌπ
π INHERITANCE π
Lucy::Search::PolyQuery isa Lucy::Search::Query isa Clownfish::Obj.
three generations of slay, the lineage is immaculate π
and that's the whole page, bestie β this was Lucy::...lyQuery(3pm), part of the User Contributed Perl Documentation, hanging out with perl v5.42.0 and dated 2025-07-25. go walk a query tree for me, ily, bye ππ¦β¨
π¦ where this page comes from
- fedora 43: perl-Lucy 0.6.2-26.fc43 Β· Apache-2.0 AND MIT AND Unicode-DFS-2015
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms