chore: Move the SortByAttr into meilidb

This commit is contained in:
Clément Renault 2019-02-24 19:53:52 +01:00
parent 14790eeae3
commit d0786b4156
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE
3 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,6 @@ mod words_proximity;
mod sum_of_words_attribute; mod sum_of_words_attribute;
mod sum_of_words_position; mod sum_of_words_position;
mod exact; mod exact;
// mod sort_by_attr;
mod document_id; mod document_id;
use std::cmp::Ordering; use std::cmp::Ordering;
@ -17,7 +16,6 @@ pub use self::{
sum_of_words_attribute::SumOfWordsAttribute, sum_of_words_attribute::SumOfWordsAttribute,
sum_of_words_position::SumOfWordsPosition, sum_of_words_position::SumOfWordsPosition,
exact::Exact, exact::Exact,
// sort_by_attr::SortByAttr,
document_id::DocumentId, document_id::DocumentId,
}; };

View File

@ -3,9 +3,11 @@
pub mod database; pub mod database;
pub mod tokenizer; pub mod tokenizer;
mod common_words; mod common_words;
mod sort_by_attr;
pub use rocksdb; pub use rocksdb;
pub use self::sort_by_attr::SortByAttr;
pub use self::tokenizer::Tokenizer; pub use self::tokenizer::Tokenizer;
pub use self::common_words::CommonWords; pub use self::common_words::CommonWords;

View File

@ -2,10 +2,11 @@ use std::cmp::Ordering;
use std::error::Error; use std::error::Error;
use std::fmt; use std::fmt;
use meilidb_core::criterion::Criterion;
use meilidb_core::RawDocument;
use crate::database::schema::{Schema, SchemaAttr}; use crate::database::schema::{Schema, SchemaAttr};
use crate::criterion::Criterion;
use crate::database::RankedMap; use crate::database::RankedMap;
use crate::RawDocument;
/// An helper struct that permit to sort documents by /// An helper struct that permit to sort documents by
/// some of their stored attributes. /// some of their stored attributes.