Init repo
This commit is contained in:
14
src/options.rs
Normal file
14
src/options.rs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user