1Lucy::Search::ANDQuery(U3s)er Contributed Perl DocumentatLiuocny::Search::ANDQuery(3)
2
3
4

NAME

6       Lucy::Search::ANDQuery - Intersect multiple result sets.
7

SYNOPSIS

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

DESCRIPTION

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

CONSTRUCTORS

21   new
22           my $foo_and_bar_query = Lucy::Search::ANDQuery->new(
23               children => [ $foo_query, $bar_query ],
24           );
25
26       Create a new ANDQuery.
27
28       ·   children - An array of child Queries.
29

METHODS

31   make_compiler
32           my $compiler = $and_query->make_compiler(
33               searcher    => $searcher,     # required
34               boost       => $boost,        # required
35               subordinate => $subordinate,  # default: false
36           );
37
38       Abstract factory method returning a Compiler derived from this Query.
39
40       ·   searcher - A Searcher.
41
42       ·   boost - A scoring multiplier.
43
44       ·   subordinate - Indicates whether the Query is a subquery (as opposed
45           to a top-level query).  If false, the implementation must invoke
46           normalize() on the newly minted Compiler object before returning
47           it.
48

INHERITANCE

50       Lucy::Search::ANDQuery isa Lucy::Search::PolyQuery isa
51       Lucy::Search::Query isa Clownfish::Obj.
52
53
54
55perl v5.30.1                      2020-01-30         Lucy::Search::ANDQuery(3)
Impressum