Refactor search results and add some actual search functionality
This commit is contained in:
@@ -4,7 +4,11 @@ pub mod elastic_search {
|
||||
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 static ref FIELDS: Vec<String> = vec![
|
||||
"file.filename".to_string(),
|
||||
"file.filesize".to_string(),
|
||||
"file.last_modified".to_string()
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user