Struct tantivy::schema::IntOptions [] [src]

pub struct IntOptions { /* fields omitted */ }

Define how an int field should be handled by tantivy.

Methods

impl IntOptions
[src]

[src]

Returns true iff the value is stored.

[src]

Returns true iff the value is indexed.

[src]

Returns true iff the value is a fast field.

[src]

Set the u64 options as stored.

Only the fields that are set as stored are persisted into the Tantivy's store.

[src]

Set the u64 options as indexed.

Setting an integer as indexed will generate a posting list for each value taken by the integer.

[src]

Set the u64 options as a single-valued fast field.

Fast fields are designed for random access. Access time are similar to a random lookup in an array. If more than one value is associated to a fast field, only the last one is kept.

[src]

Returns the cardinality of the fastfield.

If the field has not been declared as a fastfield, then the method returns None.

Trait Implementations

impl Clone for IntOptions
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for IntOptions
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for IntOptions
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for IntOptions
[src]

impl Default for IntOptions
[src]

[src]

Returns the "default value" for a type. Read more

impl BitOr for IntOptions
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.