feat: Make the schema consider document ids

This commit is contained in:
Clément Renault
2018-12-25 12:26:38 +01:00
parent 2e5c5fad33
commit 444a4c1af7
10 changed files with 287 additions and 74 deletions

View File

@ -18,7 +18,7 @@ pub use self::common_words::CommonWords;
/// It is used to inform the database the document you want to deserialize.
/// Helpful for custom ranking.
#[derive(Debug, Copy, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
pub struct DocumentId(pub u64);
pub struct DocumentId(u64);
/// Represent an attribute number along with the word index
/// according to the tokenizer used.