pub struct CountChunksReqPayload {
pub filters: Option<Option<Box<ChunkFilter>>>,
pub limit: Option<Option<i64>>,
pub query: Box<QueryTypes>,
pub score_threshold: Option<Option<f32>>,
pub search_type: CountSearchMethod,
pub use_quote_negated_terms: Option<Option<bool>>,
}Fields§
§filters: Option<Option<Box<ChunkFilter>>>§limit: Option<Option<i64>>Set limit to restrict the maximum number of chunks to count. This is useful for when you want to reduce the latency of the count operation. By default the limit will be the number of chunks in the dataset.
query: Box<QueryTypes>§score_threshold: Option<Option<f32>>Set score_threshold to a float to filter out chunks with a score below the threshold. This threshold applies before weight and bias modifications. If not specified, this defaults to 0.0.
search_type: CountSearchMethod§use_quote_negated_terms: Option<Option<bool>>If true, quoted and - prefixed words will be parsed from the queries and used as required and negated words respectively. Default is false.
Implementations§
Source§impl CountChunksReqPayload
impl CountChunksReqPayload
pub fn new( query: QueryTypes, search_type: CountSearchMethod, ) -> CountChunksReqPayload
Trait Implementations§
Source§impl Clone for CountChunksReqPayload
impl Clone for CountChunksReqPayload
Source§fn clone(&self) -> CountChunksReqPayload
fn clone(&self) -> CountChunksReqPayload
Returns a duplicate 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 CountChunksReqPayload
impl Debug for CountChunksReqPayload
Source§impl Default for CountChunksReqPayload
impl Default for CountChunksReqPayload
Source§fn default() -> CountChunksReqPayload
fn default() -> CountChunksReqPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CountChunksReqPayload
impl<'de> Deserialize<'de> for CountChunksReqPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CountChunksReqPayload
impl PartialEq for CountChunksReqPayload
Source§impl Serialize for CountChunksReqPayload
impl Serialize for CountChunksReqPayload
impl StructuralPartialEq for CountChunksReqPayload
Auto Trait Implementations§
impl Freeze for CountChunksReqPayload
impl RefUnwindSafe for CountChunksReqPayload
impl Send for CountChunksReqPayload
impl Sync for CountChunksReqPayload
impl Unpin for CountChunksReqPayload
impl UnwindSafe for CountChunksReqPayload
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