1Lucy::Search::TermQueryU(s3e)r Contributed Perl DocumentaLtuicoyn::Search::TermQuery(3)
2
3
4

NAME

6       Lucy::Search::TermQuery - Query which matches individual terms.
7

SYNOPSIS

9           my $term_query = Lucy::Search::TermQuery->new(
10               field => 'content',
11               term  => 'foo',
12           );
13           my $hits = $searcher->hits( query => $term_query );
14

DESCRIPTION

16       TermQuery is a subclass of Query for matching individual terms in a
17       specific field.
18

CONSTRUCTORS

20   new
21           my $term_query = Lucy::Search::TermQuery->new(
22               field => 'content',    # required
23               term  => 'foo',        # required
24           );
25
26       Create a new TermQuery.
27
28field - Field name.
29
30term - Term text.
31

METHODS

33   get_field
34           my $string = $term_query->get_field();
35
36       Accessor for objectXs "field" member.
37
38   get_term
39           my $obj = $term_query->get_term();
40
41       Accessor for objectXs "term" member.
42
43   make_compiler
44           my $compiler = $term_query->make_compiler(
45               searcher    => $searcher,     # required
46               boost       => $boost,        # required
47               subordinate => $subordinate,  # default: false
48           );
49
50       Abstract factory method returning a Compiler derived from this Query.
51
52searcher - A Searcher.
53
54boost - A scoring multiplier.
55
56subordinate - Indicates whether the Query is a subquery (as opposed
57           to a top-level query).  If false, the implementation must invoke
58           normalize() on the newly minted Compiler object before returning
59           it.
60

INHERITANCE

62       Lucy::Search::TermQuery isa Lucy::Search::Query isa Clownfish::Obj.
63
64
65
66perl v5.34.0                      2022-01-21        Lucy::Search::TermQuery(3)
Impressum