pub struct LexicalHit {
pub resource: ResourceId,
pub ordinal: usize,
pub score: f32,
}Expand description
A segment matching a keyword query.
Fields§
§resource: ResourceId§ordinal: usize§score: f32BM25 relevance, higher is better. Only comparable within one query.
Trait Implementations§
Source§impl Clone for LexicalHit
impl Clone for LexicalHit
Source§impl Debug for LexicalHit
impl Debug for LexicalHit
Source§impl PartialEq for LexicalHit
impl PartialEq for LexicalHit
impl StructuralPartialEq for LexicalHit
Auto Trait Implementations§
impl Freeze for LexicalHit
impl RefUnwindSafe for LexicalHit
impl Send for LexicalHit
impl Sync for LexicalHit
impl Unpin for LexicalHit
impl UnsafeUnpin for LexicalHit
impl UnwindSafe for LexicalHit
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