diff --git a/src/lib.rs b/src/lib.rs index 53c7b19e7..da04b682d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -mod available_documents_ids; mod criterion; mod fields_ids_map; mod index; @@ -16,7 +15,6 @@ use std::collections::HashMap; use std::hash::BuildHasherDefault; use fxhash::{FxHasher32, FxHasher64}; -pub use self::available_documents_ids::AvailableDocumentsIds; pub use self::criterion::{Criterion, default_criteria}; pub use self::fields_ids_map::FieldsIdsMap; pub use self::index::Index; diff --git a/src/subcommand/serve.rs b/src/subcommand/serve.rs index 43302e7a1..8a7ba3784 100644 --- a/src/subcommand/serve.rs +++ b/src/subcommand/serve.rs @@ -23,7 +23,8 @@ use warp::{Filter, http::Response}; use crate::indexing::{self, IndexerOpt, Transform, TransformOutput}; use crate::tokenizer::{simple_tokenizer, TokenType}; -use crate::{Index, UpdateStore, SearchResult, AvailableDocumentsIds}; +use crate::update::AvailableDocumentsIds; +use crate::{Index, UpdateStore, SearchResult}; #[derive(Debug, StructOpt)] /// The HTTP main server of the milli project. diff --git a/src/available_documents_ids.rs b/src/update/available_documents_ids.rs similarity index 100% rename from src/available_documents_ids.rs rename to src/update/available_documents_ids.rs diff --git a/src/update/mod.rs b/src/update/mod.rs index 59b125020..aa5ad7e26 100644 --- a/src/update/mod.rs +++ b/src/update/mod.rs @@ -1,5 +1,7 @@ +mod available_documents_ids; mod update_builder; mod update_store; +pub use self::available_documents_ids::AvailableDocumentsIds; pub use self::update_builder::UpdateBuilder; pub use self::update_store::UpdateStore;