#[repr(u16)]pub enum Profile {
TextDefault = 1,
Code = 2,
Voice = 3,
}Expand description
A named starting configuration.
Variants§
TextDefault = 1
General-purpose English text.
Stemming and stopwords on, matching the Lucene EnglishAnalyzer
shape that the task-13 BEIR targets were produced with.
Code = 2
Source code, identifiers, tickets, and SKUs.
Stemming and stopwords off: stemming an identifier produces a term
nobody queries, and no/not/if are meaningful in code.
Voice = 3
Spoken text and transcripts.
Number-word normalization matters most here, because a transcript spells what a document digitizes.
Implementations§
Trait Implementations§
impl Copy for Profile
impl Eq for Profile
Source§impl Ord for Profile
impl Ord for Profile
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Profile
impl PartialOrd for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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