naro

Simple fulltext search library

map> document -> words....

https://serde.rs/field-attrs.html

file.try_clone

```rust

struct Index {}

impl Field { }

use naro::fields::{Text,NGram};

[derive(Searchable)]

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 Engine {

pub fn new() -> Self {
}

pub fn add(&mut self, document: T) -> u32 {
}

pub fn delete(&mut self, id: u32) -> Error {
}

} ```

Storage

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.

author

Peter Vrba phonkee@phonkee.eu