pub struct FilterableField {
pub path: String,
pub field_type: FieldType,
}Expand description
A payload field declared filterable at collection creation: its dot-path and type. Declared fields are extracted into the per-segment secondary index at flush time (ADR-0022), enabling pre-filtered (hybrid) search.
Fields§
§path: StringDot-path into the JSON payload (e.g. "user.age").
field_type: FieldTypeThe field’s value type.
Implementations§
Source§impl FilterableField
impl FilterableField
Sourcepub fn keyword(path: impl Into<String>) -> FilterableField
pub fn keyword(path: impl Into<String>) -> FilterableField
A keyword (exact-match string) field at path.
Sourcepub fn numeric(path: impl Into<String>) -> FilterableField
pub fn numeric(path: impl Into<String>) -> FilterableField
A numeric field at path.
Trait Implementations§
Source§impl Clone for FilterableField
impl Clone for FilterableField
Source§fn clone(&self) -> FilterableField
fn clone(&self) -> FilterableField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilterableField
impl Debug for FilterableField
Source§impl<'de> Deserialize<'de> for FilterableField
impl<'de> Deserialize<'de> for FilterableField
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FilterableField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FilterableField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FilterableField
Source§impl PartialEq for FilterableField
impl PartialEq for FilterableField
Source§fn eq(&self, other: &FilterableField) -> bool
fn eq(&self, other: &FilterableField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FilterableField
impl Serialize for FilterableField
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FilterableField
Auto Trait Implementations§
impl Freeze for FilterableField
impl RefUnwindSafe for FilterableField
impl Send for FilterableField
impl Sync for FilterableField
impl Unpin for FilterableField
impl UnsafeUnpin for FilterableField
impl UnwindSafe for FilterableField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more