pub struct SearchResults {
pub schema: &'static str,
pub hits: Vec<SearchHit>,
pub generated: Vec<GeneratedHit>,
pub memory: Vec<MemoryHit>,
}Expand description
The three channels a search returns.
They are separate fields rather than one merged list because merging is precisely what must not happen: generated text and remembered prose may both be retrievable, but neither may ever be indistinguishable from a derived or authored fact, and a single ranked list would make the distinction a matter of reading each element carefully.
Fields§
§schema: &'static strStable schema tag (SCHEMA).
hits: Vec<SearchHit>The graph channel: ranked nodes, exactly what search returns.
generated: Vec<GeneratedHit>The generated channel. Empty unless
SearchOptions::include_generated was set — off by default, so a
silent clip’s confabulated prose cannot reach a default search.
memory: Vec<MemoryHit>The memory channel. Empty unless SearchOptions::include_memory was
set — off by default, so unreviewed accumulated prose cannot reach a
default search either.
Trait Implementations§
Source§impl Clone for SearchResults
impl Clone for SearchResults
Source§fn clone(&self) -> SearchResults
fn clone(&self) -> SearchResults
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more