pub struct ChunkFilter {
pub jsonb_prefilter: Option<Option<bool>>,
pub must: Option<Option<Vec<ConditionType>>>,
pub must_not: Option<Option<Vec<ConditionType>>>,
pub should: Option<Option<Vec<ConditionType>>>,
}
Expand description
ChunkFilter : Filters is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata.
Fields§
§jsonb_prefilter: Option<Option<bool>>
JOSNB prefilter tells the server to perform a full scan over the metadata JSONB column instead of using the filtered HNSW. Datasets on the enterprise plan with custom metadata indices will perform better with the filtered HNSW instead. When false, the server will use the filtered HNSW index to filter chunks. When true, the server will perform a full scan over the metadata JSONB column to filter chunks. Default is true.
must: Option<Option<Vec<ConditionType>>>
All of these field conditions have to match for the chunk to be included in the result set.
must_not: Option<Option<Vec<ConditionType>>>
None of these field conditions can match for the chunk to be included in the result set.
should: Option<Option<Vec<ConditionType>>>
Only one of these field conditions has to match for the chunk to be included in the result set.
Implementations§
Source§impl ChunkFilter
impl ChunkFilter
Sourcepub fn new() -> ChunkFilter
pub fn new() -> ChunkFilter
Filters is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata.
Trait Implementations§
Source§impl Clone for ChunkFilter
impl Clone for ChunkFilter
Source§fn clone(&self) -> ChunkFilter
fn clone(&self) -> ChunkFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more