[−][src]Struct tantivy::schema::IntOptions
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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for IntOptions
[src]
fn default() -> IntOptions
[src]
impl From<()> for IntOptions
[src]
fn from(_: ()) -> IntOptions
[src]
impl PartialEq<IntOptions> for IntOptions
[src]
fn eq(&self, other: &IntOptions) -> bool
[src]
fn ne(&self, other: &IntOptions) -> bool
[src]
impl Eq for IntOptions
[src]
impl Debug for IntOptions
[src]
impl<T: Into<IntOptions>> BitOr<T> for IntOptions
[src]
type Output = IntOptions
The resulting type after applying the |
operator.
fn bitor(self, other: T) -> IntOptions
[src]
impl Serialize for IntOptions
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for IntOptions
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for IntOptions
impl Send for IntOptions
impl Unpin for IntOptions
impl RefUnwindSafe for IntOptions
impl UnwindSafe for IntOptions
Blanket Implementations
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,