1Lucy::Plan::StringType(U3spemr)Contributed Perl DocumentLautciyo:n:Plan::StringType(3pm)
2
3
4
6 Lucy::Plan::StringType - Non-tokenized text type.
7
9 my $type = Lucy::Plan::StringType->new;
10 my $schema = Lucy::Plan::Schema->new;
11 $schema->spec_field( name => 'category', type => $type );
12
14 Lucy::Plan::StringType is used for “exact-match” strings.
15
17 new
18 my $type = Lucy::Plan::StringType->new(
19 boost => 0.1, # default: 1.0
20 indexed => 1, # default: true
21 stored => 1, # default: true
22 sortable => 1, # default: false
23 );
24
25 • boost - floating point per-field boost.
26
27 • indexed - boolean indicating whether the field should be indexed.
28
29 • stored - boolean indicating whether the field should be stored.
30
31 • sortable - boolean indicating whether the field should be sortable.
32
34 Lucy::Plan::StringType isa Lucy::Plan::TextType isa
35 Lucy::Plan::FieldType isa Clownfish::Obj.
36
37
38
39perl v5.38.0 2023-07-20 Lucy::Plan::StringType(3pm)