text_search_core/
indexable.rs

1use tantivy::TantivyDocument;
2
3use crate::struct_info::StructInfo;
4
5pub trait Indexable : Clone {
6    fn get_struct_info() -> StructInfo;
7    fn as_document(&self) -> TantivyDocument;
8    fn from_doc(doc: tantivy::TantivyDocument) -> Self;
9    fn get_id_term(&self)  -> tantivy::Term;
10}