Struct tantivy::schema::IntOptions [−][src]
Define how an u64, i64, of f64 field should be handled by tantivy.
Implementations
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(mut self: Self) -> IntOptions
[src]
Set the field as stored.
Only the fields that are set as stored are persisted into the Tantivy's store.
pub fn set_indexed(mut self: Self) -> IntOptions
[src]
Set the field as indexed.
Setting an integer as indexed will generate a posting list for each value taken by the integer.
pub fn set_fast(mut self: Self, cardinality: Cardinality) -> IntOptions
[src]
Set the field 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<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 Clone for IntOptions
[src]
fn clone(&self) -> IntOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for IntOptions
[src]
impl Default for IntOptions
[src]
fn default() -> IntOptions
[src]
impl<'de> Deserialize<'de> for IntOptions
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for 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 Serialize for IntOptions
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for IntOptions
[src]
impl StructuralPartialEq for IntOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for IntOptions
[src]
impl Send for IntOptions
[src]
impl Sync for IntOptions
[src]
impl Unpin for IntOptions
[src]
impl UnwindSafe for IntOptions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,