KinoSearch::Plan::BlobType - Default behaviors for binary fields.
my $string_type = KinoSearch::Plan::StringType->new; my $blob_type = KinoSearch::Plan::BlobType->new( stored => 1 ); my $schema = KinoSearch::Plan::Schema->new; $schema->spec_field( name => 'id', type => $string_type ); $schema->spec_field( name => 'jpeg', type => $blob_type );
BlobType is an implementation of FieldType tuned for use with fields containing binary data, which cannot be indexed or searched -- only stored.
my $blob_type = KinoSearch::Plan::BlobType->new( stored => 1, # default: false );
stored - boolean indicating whether the field should be stored.
KinoSearch::Plan::BlobType isa KinoSearch::Plan::FieldType isa KinoSearch::Object::Obj.
Copyright 2005-2010 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install KSx::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KSx::Simple
CPAN shell
perl -MCPAN -e shell install KSx::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.