about summary refs log tree commit diff
path: root/indexer
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-10-28 10:43:14 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-10-28 10:43:14 +0200
commitd3f66edbd84a6b462b08ca2e260a1dbb1ba4b730 (patch)
treec319a9b6e078c696d04bbef85c600d1b405ee25b /indexer
parentFrontend: Html: Set footer at the bottom of the page (diff)
downloadOSSE-d3f66edbd84a6b462b08ca2e260a1dbb1ba4b730.tar.gz
OSSE-d3f66edbd84a6b462b08ca2e260a1dbb1ba4b730.tar.bz2
OSSE-d3f66edbd84a6b462b08ca2e260a1dbb1ba4b730.zip
Misc: Add TODOs
Diffstat (limited to 'indexer')
-rw-r--r--indexer/src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/indexer/src/main.rs b/indexer/src/main.rs
index d1ad867..8f12528 100644
--- a/indexer/src/main.rs
+++ b/indexer/src/main.rs
@@ -107,6 +107,7 @@ async fn search(data: web::Data<AppState>, term: web::Path<String>) -> impl Resp
     let query: Vec<&str> = term.split(' ').collect();
     let database = data.database.lock().unwrap();
 
+    //percentage of valid words
     let mut valid_results: Option<HashSet<CrawledResource>> = None;
     for w in query {
         let curr_word_results = match search_word_in_db(&database, w) {