trieve_client/models/
count_search_method.rs1use crate::models;
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum CountSearchMethod {
16 #[serde(rename = "fulltext")]
17 Fulltext,
18 #[serde(rename = "semantic")]
19 Semantic,
20 #[serde(rename = "bm25")]
21 Bm25,
22
23}
24
25impl ToString for CountSearchMethod {
26 fn to_string(&self) -> String {
27 match self {
28 Self::Fulltext => String::from("fulltext"),
29 Self::Semantic => String::from("semantic"),
30 Self::Bm25 => String::from("bm25"),
31 }
32 }
33}
34
35impl Default for CountSearchMethod {
36 fn default() -> CountSearchMethod {
37 Self::Fulltext
38 }
39}
40