From 60347a54831fa84c25c011905475246c4d089ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 26 Oct 2020 10:52:57 +0100 Subject: [PATCH] Move the AvailableDocumentsIds iterator into the update module --- src/lib.rs | 2 -- src/subcommand/serve.rs | 3 ++- src/{ => update}/available_documents_ids.rs | 0 src/update/mod.rs | 2 ++ 4 files changed, 4 insertions(+), 3 deletions(-) rename src/{ => update}/available_documents_ids.rs (100%) 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;