---
name: "Lucy::Plan::StringType"
section: "3pm"
platform: "linux"
package: "liblucy-perl"
version: "0.3.3-7+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Lucy::Plan::StringType"
---

# Lucy::Plan::StringType(3pm)

Non-tokenized text type.

## NAME

Lucy::Plan::StringType - Non-tokenized text type.

## SYNOPSIS

```
    my $type   = Lucy::Plan::StringType->new;
    my $schema = Lucy::Plan::Schema->new;
    $schema->spec_field( name => 'category', type => $type );
```

## DESCRIPTION

Lucy::Plan::StringType is used for "exact-match" strings.

## CONSTRUCTORS

### *new()*

```
    my $type = Lucy::Plan::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

Lucy::Plan::StringType isa Lucy::Plan::TextType isa Lucy::Plan::FieldType isa Lucy::Object::Obj.
