Lucy::Search::ANDQuery(3pm)

Lucy::Search::ANDQuery3pm

Intersect multiple result sets.

Usage

    my $foo_and_bar_query = Lucy::Search::ANDQuery->new(
        children => [ $foo_query, $bar_query ],
    );
    my $hits = $searcher->hits( query => $foo_and_bar_query );
    ...

Overview

ANDQuery is a composite Query which matches only when all of its children match, so its result set is the intersection of their result sets. Documents which match receive a summed score.

Constructors

new( [labeled params] )

    my $foo_and_bar_query = Lucy::Search::ANDQuery->new(
        children => [ $foo_query, $bar_query ],
    );
•

children - An array of child Queries.

Methods

add_child(query)

Add a child Query node.

Inheritance

Lucy::Search::ANDQuery isa Lucy::Search::PolyQuery isa Lucy::Search::Query isa Lucy::Object::Obj.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From liblucy-perl 0.3.3-7+b1 in Debian 9 (Stretch). Parsed by carta from the page's man source.