KinoSearch::FieldType::FullTextType - Full-text search field type.
my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new( language => 'en', ); my $type = KinoSearch::FieldType::FullTextType->new( analyzer => $polyanalyzer, ); my $schema = KinoSearch::Schema->new; $schema->spec_field( name => 'title', type => $type ); $schema->spec_field( name => 'content', type => $type );
KinoSearch::FieldType::FullTextType is an implementation of KinoSearch::FieldType tuned for "full text search".
Full text fields are associated with an Analyzer, which is used to tokenize and normalize the text so that it can be searched for individual words.
For a sortable, single-value field type using character data, see StringType.
my $type = KinoSearch::FieldType::FullTextType->new( analyzer => $analyzer, # required boost => 2.0, # default: 1.0 indexed => 1, # default: true stored => 1, # default: true highlightable => 1, # default: false );
analyzer - An Analyzer.
boost - floating point per-field boost.
indexed - boolean indicating whether the field should be indexed.
stored - boolean indicating whether the field should be stored.
highlightable - boolean indicating whether the field should be highlightable.
Indicate whether to store data required by KinoSearch::Highlight::Highlighter for excerpt selection and search term highlighting.
Accessor for "highlightable" property.
KinoSearch::FieldType::FullTextType isa KinoSearch::FieldType::TextType isa KinoSearch::FieldType isa KinoSearch::Obj.
Copyright 2005-2009 Marvin Humphrey
See KinoSearch version 0.30.
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.