Refactor search results and add some actual search functionality

This commit is contained in:
Jonas Zeunert
2024-04-23 17:01:18 +02:00
parent 4c7d6143ae
commit 94d4425661
6 changed files with 109 additions and 26 deletions

View File

@@ -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()
];
}
}