The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

KinoSearch::FieldType::StringType - Non-tokenized text type.

SYNOPSIS

    my $type   = KinoSearch::FieldType::StringType->new;
    my $schema = KinoSearch::Schema->new;
    $schema->spec_field( name => 'category', type => $type );

DESCRIPTION

KinoSearch::FieldType::StringType is used for "exact-match" strings.

CONSTRUCTORS

new()

    my $type = KinoSearch::FieldType::StringType->new(
        boost    => 0.1,    # default: 1.0
        indexed  => 1,      # default: true
        stored   => 1,      # default: true
        sortable => 1,      # default: false
    );
  • boost - floating point per-field boost.

  • indexed - boolean indicating whether the field should be indexed.

  • stored - boolean indicating whether the field should be stored.

  • sortable - boolean indicating whether the field should be sortable.

INHERITANCE

KinoSearch::FieldType::StringType isa KinoSearch::FieldType::TextType isa KinoSearch::FieldType isa KinoSearch::Obj.

COPYRIGHT

Copyright 2005-2009 Marvin Humphrey

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.30.