pub struct QueryGatherResponse {
pub query_id: u64,
pub shard_id: ShardId,
pub results: Vec<ScoredNode>,
pub term_frequencies: HashMap<String, u64>,
pub total_documents: u64,
pub execution_time_ms: u64,
}Expand description
Query gather response (from shards to coordinator).
Shards send this back to the coordinator with their local results.
Fields§
§query_id: u64The query ID this response is for.
shard_id: ShardIdThe shard that produced these results.
results: Vec<ScoredNode>Matching nodes with scores.
term_frequencies: HashMap<String, u64>Term frequencies for TF-IDF computation.
total_documents: u64Total document count on this shard (for IDF calculation).
execution_time_ms: u64Time taken to execute the query in milliseconds.
Trait Implementations§
Source§impl Clone for QueryGatherResponse
impl Clone for QueryGatherResponse
Source§fn clone(&self) -> QueryGatherResponse
fn clone(&self) -> QueryGatherResponse
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 QueryGatherResponse
impl Debug for QueryGatherResponse
Source§impl<'de> Deserialize<'de> for QueryGatherResponse
impl<'de> Deserialize<'de> for QueryGatherResponse
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 QueryGatherResponse
impl RefUnwindSafe for QueryGatherResponse
impl Send for QueryGatherResponse
impl Sync for QueryGatherResponse
impl Unpin for QueryGatherResponse
impl UnsafeUnpin for QueryGatherResponse
impl UnwindSafe for QueryGatherResponse
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