pub struct SearchResult {Show 23 fields
pub file: String,
pub lines: (usize, usize),
pub node_type: String,
pub code: String,
pub matched_by_filename: Option<bool>,
pub rank: Option<usize>,
pub score: Option<f64>,
pub tfidf_score: Option<f64>,
pub bm25_score: Option<f64>,
pub tfidf_rank: Option<usize>,
pub bm25_rank: Option<usize>,
pub new_score: Option<f64>,
pub hybrid2_rank: Option<usize>,
pub combined_score_rank: Option<usize>,
pub file_unique_terms: Option<usize>,
pub file_total_matches: Option<usize>,
pub file_match_rank: Option<usize>,
pub block_unique_terms: Option<usize>,
pub block_total_matches: Option<usize>,
pub parent_file_id: Option<String>,
pub block_id: Option<usize>,
pub matched_keywords: Option<Vec<String>>,
pub tokenized_content: Option<Vec<String>>,
}
Fields§
§file: String
§lines: (usize, usize)
§node_type: String
§code: String
§matched_by_filename: Option<bool>
§rank: Option<usize>
§score: Option<f64>
§tfidf_score: Option<f64>
§bm25_score: Option<f64>
§tfidf_rank: Option<usize>
§bm25_rank: Option<usize>
§new_score: Option<f64>
§hybrid2_rank: Option<usize>
§combined_score_rank: Option<usize>
§file_unique_terms: Option<usize>
§file_total_matches: Option<usize>
§file_match_rank: Option<usize>
§block_unique_terms: Option<usize>
§block_total_matches: Option<usize>
§parent_file_id: Option<String>
§block_id: Option<usize>
§matched_keywords: Option<Vec<String>>
§tokenized_content: Option<Vec<String>>
Tokenized version of the code block with filename prepended
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
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 moreAuto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnwindSafe for SearchResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more