use crate::models;
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CountSearchMethod {
#[serde(rename = "fulltext")]
Fulltext,
#[serde(rename = "semantic")]
Semantic,
#[serde(rename = "bm25")]
Bm25,
}
impl ToString for CountSearchMethod {
fn to_string(&self) -> String {
match self {
Self::Fulltext => String::from("fulltext"),
Self::Semantic => String::from("semantic"),
Self::Bm25 => String::from("bm25"),
}
}
}
impl Default for CountSearchMethod {
fn default() -> CountSearchMethod {
Self::Fulltext
}
}