Struct tantivy_common::JsonPathWriter
source · pub struct JsonPathWriter { /* private fields */ }
Expand description
Create a new JsonPathWriter, that creates flattened json paths for tantivy.
Implementations§
source§impl JsonPathWriter
impl JsonPathWriter
pub fn new() -> Self
sourcepub fn set_expand_dots(&mut self, expand_dots: bool)
pub fn set_expand_dots(&mut self, expand_dots: bool)
When expand_dots is enabled, json object like
{"k8s.node.id": 5}
is processed as if it was
{"k8s": {"node": {"id": 5}}}
.
This option has the merit of allowing users to
write queries like k8s.node.id:5
.
On the other, enabling that feature can lead to
ambiguity.
Trait Implementations§
source§impl Clone for JsonPathWriter
impl Clone for JsonPathWriter
source§fn clone(&self) -> JsonPathWriter
fn clone(&self) -> JsonPathWriter
Returns a copy of the value. Read more
1.0.0 · 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 JsonPathWriter
impl Debug for JsonPathWriter
source§impl Default for JsonPathWriter
impl Default for JsonPathWriter
source§fn default() -> JsonPathWriter
fn default() -> JsonPathWriter
Returns the “default value” for a type. Read more
source§impl From<JsonPathWriter> for String
impl From<JsonPathWriter> for String
source§fn from(value: JsonPathWriter) -> Self
fn from(value: JsonPathWriter) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonPathWriter
impl RefUnwindSafe for JsonPathWriter
impl Send for JsonPathWriter
impl Sync for JsonPathWriter
impl Unpin for JsonPathWriter
impl UnwindSafe for JsonPathWriter
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