Simple fulltext search library
map
https://serde.rs/field-attrs.html
file.try_clone
```rust
struct Index {}
impl Field { }
use naro::fields::{Text,NGram};
struct Document {
// id
id: u64,
#[naro(weight = 123)]
pub title: Text,
#[naro(weight = 12)]
pub content: Text,
#[naro(weight = 12)]
pub tag: NGram,
}
// Storage
struct Engine
}
// Storage implementation
impl
pub fn new() -> Self {
}
pub fn add(&mut self, document: T) -> u32 {
}
pub fn delete(&mut self, id: u32) -> Error {
}
} ```
We will not write our custom storage, since that's not aim of this project.
We will use RocksDB as it looks like best fit.
Peter Vrba phonkee@phonkee.eu