KinoSearch::FieldSpec::text - Default behaviors for text fields
Arrange for your subclass of KinoSearch::Schema to load KinoSearch::FieldSpec::text via its alias, 'text'...
package MySchema; use base qw( KinoSearch::Schema ); our %fields = ( title => 'text', # alias for KinoSearch::FieldSpec::text content => 'text', );
... or define a custom subclass and use it instead:
package MySchema::UnAnalyzed; use base qw( KinoSearch::FieldSpec::text ) sub analyzed { 0 } package MySchema; use base qw( KinoSearch::Schema ); our %fields = ( title => 'text', url => 'MySchema::UnAnalyzed', );
KinoSearch::FieldSpec::text is an implementation of KinoSearch::FieldSpec tuned for ease of use with text fields. It has the following properties:
indexed TRUE stored TRUE analyzed TRUE vectorized TRUE binary FALSE compressed FALSE
Its common to use this class as a base class and override one or more of those values.
Copyright 2005-2007 Marvin Humphrey
See KinoSearch version 0.20.
To install KinoSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KinoSearch
CPAN shell
perl -MCPAN -e shell install KinoSearch
For more information on module installation, please visit the detailed CPAN module installation guide.