pub struct LocalQueryResult {
pub shard_id: ShardId,
pub results: Vec<ScoredNode>,
pub term_frequencies: HashMap<String, u64>,
}Expand description
Result of a local query on a shard.
Fields§
§shard_id: ShardIdThe shard that produced these results.
results: Vec<ScoredNode>The scored nodes matching the query.
term_frequencies: HashMap<String, u64>Local term frequencies for global DF computation. Sent back to coordinator for aggregation.
Trait Implementations§
Source§impl Clone for LocalQueryResult
impl Clone for LocalQueryResult
Source§fn clone(&self) -> LocalQueryResult
fn clone(&self) -> LocalQueryResult
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 LocalQueryResult
impl Debug for LocalQueryResult
Source§impl<'de> Deserialize<'de> for LocalQueryResult
impl<'de> Deserialize<'de> for LocalQueryResult
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
Auto Trait Implementations§
impl Freeze for LocalQueryResult
impl RefUnwindSafe for LocalQueryResult
impl Send for LocalQueryResult
impl Sync for LocalQueryResult
impl Unpin for LocalQueryResult
impl UnsafeUnpin for LocalQueryResult
impl UnwindSafe for LocalQueryResult
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