Struct tantivy::schema::IntOptions
[−]
[src]
pub struct IntOptions { /* fields omitted */ }
Define how an int field should be handled by tantivy.
Methods
impl IntOptions
[src]
pub fn is_stored(&self) -> bool
[src]
Returns true iff the value is stored.
pub fn is_indexed(&self) -> bool
[src]
Returns true iff the value is indexed.
pub fn is_fast(&self) -> bool
[src]
Returns true iff the value is a fast field.
pub fn set_stored(self) -> IntOptions
[src]
Set the u64 options as stored.
Only the fields that are set as stored are persisted into the Tantivy's store.
pub fn set_indexed(self) -> IntOptions
[src]
Set the u64 options as indexed.
Setting an integer as indexed will generate a posting list for each value taken by the integer.
pub fn set_fast(self, cardinality: Cardinality) -> IntOptions
[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.
pub fn get_fastfield_cardinality(&self) -> Option<Cardinality>
[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]
fn clone(&self) -> IntOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for IntOptions
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for IntOptions
[src]
fn eq(&self, __arg_0: &IntOptions) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IntOptions) -> bool
[src]
This method tests for !=
.
impl Eq for IntOptions
[src]
impl Default for IntOptions
[src]
fn default() -> IntOptions
[src]
Returns the "default value" for a type. Read more
impl BitOr for IntOptions
[src]
type Output = IntOptions
The resulting type after applying the |
operator.
fn bitor(self, other: IntOptions) -> IntOptions
[src]
Performs the |
operation.