19 lines
522 B
Rust
19 lines
522 B
Rust
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(),
|
|
"file.filesize".to_string(),
|
|
"file.last_modified".to_string()
|
|
];
|
|
}
|
|
}
|
|
|
|
pub mod query {
|
|
pub const MAX_LENGTH: usize = 100;
|
|
pub const MIN_LENGTH: usize = 3;
|
|
}
|