Enum tantivy::schema::FieldType [] [src]

pub enum FieldType {
    Str(TextOptions),
    U64(IntOptions),
    I64(IntOptions),
    HierarchicalFacet,
}

A FieldType describes the type (text, u64) of a field as well as how it should be handled by tantivy.

Variants

String field type configuration

Unsigned 64-bits integers field type configuration

Signed 64-bits integers 64 field type configuration

Hierachical Facet

Methods

impl FieldType
[src]

[src]

returns true iff the field is indexed.

[src]

Given a field configuration, return the maximal possible IndexRecordOption available.

If the field is not indexed, then returns None.

[src]

Parses a field value from json, given the target FieldType.

Tantivy will not try to cast values. For instance, If the json value is the integer 3 and the target field is a Str, this method will return an Error.

Trait Implementations

impl Clone for FieldType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FieldType
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for FieldType
[src]

impl PartialEq for FieldType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.