quick_search/src/main.rs

28 lines
637 B
Rust
Raw Normal View History

use std::sync::Arc;
use dioxus::prelude::*;
2024-06-10 12:45:33 -04:00
mod frontend;
mod file_handling;
mod document_extraction;
mod indexing;
2024-06-10 12:45:33 -04:00
fn main() {
// 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
/*
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;
*/