1Lucy::Plan::StringType(U3s)er Contributed Perl DocumentatLiuocny::Plan::StringType(3)
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 Xexact-matchX 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.34.0 2021-07-22 Lucy::Plan::StringType(3)