Init repo

This commit is contained in:
Jonas Zeunert
2024-04-22 21:37:32 +02:00
parent 8063acde00
commit f6d6fd43d2
8 changed files with 2009 additions and 0 deletions

14
src/options.rs Normal file
View File

@@ -0,0 +1,14 @@
pub mod elastic_search {
use lazy_static::lazy_static;
use reqwest::Url;
lazy_static! {
pub static ref URL: Url =
Url::parse("http://127.0.0.1:9200/_search?filter_path=hits.hits._source").unwrap();
pub static ref FIELDS: Vec<String> = vec!["file.filename".to_string()];
}
}
pub mod query {
pub const MAX_LENGTH: usize = 100;
pub const MIN_LENGTH: usize = 3;
}