1Lucy::Plan::BlobType(3)User Contributed Perl DocumentatioLnucy::Plan::BlobType(3)
2
3
4

NAME

6       Lucy::Plan::BlobType - Default behaviors for binary fields.
7

SYNOPSIS

9           my $string_type = Lucy::Plan::StringType->new;
10           my $blob_type   = Lucy::Plan::BlobType->new( stored => 1 );
11           my $schema      = Lucy::Plan::Schema->new;
12           $schema->spec_field( name => 'id',   type => $string_type );
13           $schema->spec_field( name => 'jpeg', type => $blob_type );
14

DESCRIPTION

16       BlobType is an implementation of FieldType tuned for use with fields
17       containing binary data, which cannot be indexed or searched X only
18       stored.
19

CONSTRUCTORS

21   new
22           my $blob_type = Lucy::Plan::BlobType->new(
23               stored => 1,  # default: false
24           );
25
26       Create a new BlobType.
27
28stored - boolean indicating whether the field should be stored.
29

INHERITANCE

31       Lucy::Plan::BlobType isa Lucy::Plan::FieldType isa Clownfish::Obj.
32
33
34
35perl v5.36.0                      2022-07-22           Lucy::Plan::BlobType(3)
Impressum