2025-09-11 14:00:33 -04:00
|
|
|
use std::sync::Arc;
|
2025-09-11 13:42:18 -04:00
|
|
|
use dioxus::prelude::*;
|
2024-06-10 12:45:33 -04:00
|
|
|
|
2025-09-11 13:42:18 -04:00
|
|
|
mod frontend;
|
|
|
|
|
mod file_handling;
|
|
|
|
|
mod document_extraction;
|
2025-09-11 14:00:33 -04:00
|
|
|
mod indexing;
|
2024-06-10 12:45:33 -04:00
|
|
|
|
|
|
|
|
fn main() {
|
2025-09-11 14:00:33 -04:00
|
|
|
// Launch the frontend with the indexing service
|
|
|
|
|
launch(app);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn app() -> Element {
|
|
|
|
|
let indexing_service = Arc::new(indexing::IndexingService::new());
|
|
|
|
|
|
|
|
|
|
rsx! {
|
|
|
|
|
frontend::App {
|
|
|
|
|
indexing_service: indexing_service
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-10 13:56:01 -04:00
|
|
|
|
2024-06-10 18:16:28 -04:00
|
|
|
/*
|
2025-09-11 13:42:18 -04:00
|
|
|
SELECT name, hash, count(*) as cnt FROM files GROUP BY hash ORDER BY cnt DESC;
|
|
|
|
|
|
|
|
|
|
SELECT name, path, text, snippet(searchabletext, 2 , "<b>", "</b>", "...", 64) as "snip" FROM searchabletext WHERE text MATCH 'Terrasound' LIMIT 100;
|
2025-09-11 14:00:33 -04:00
|
|
|
*/
|