text-search-core 0.1.6

Core utils for the text-search crate.
Documentation
1
2
3
4
5
6
7
8
9
10
use tantivy::TantivyDocument;

use crate::struct_info::StructInfo;

pub trait Indexable : Clone {
    fn get_struct_info() -> StructInfo;
    fn as_document(&self) -> TantivyDocument;
    fn from_doc(doc: tantivy::TantivyDocument) -> Self;
    fn get_id_term(&self)  -> tantivy::Term;
}