NAME
KinoSearch::FieldSpec::text - Default behaviors for text fields
SYNOPSIS
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',
);
DESCRIPTION
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
Copyright 2005-2007 Marvin Humphrey
LICENSE, DISCLAIMER, BUGS, etc.
See KinoSearch version 0.20.