mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
log number of docs
This commit is contained in:
@@ -1016,6 +1016,7 @@ impl SearchBackend for Typesense {
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let num_documents = documents.len();
|
||||||
let jsonl = documents_to_jsonl(documents)?;
|
let jsonl = documents_to_jsonl(documents)?;
|
||||||
for alias in [
|
for alias in [
|
||||||
self.config.get_alias_name("projects"),
|
self.config.get_alias_name("projects"),
|
||||||
@@ -1027,7 +1028,12 @@ impl SearchBackend for Typesense {
|
|||||||
self.config.get_next_collection_name(&alias, false);
|
self.config.get_next_collection_name(&alias, false);
|
||||||
|
|
||||||
debug!(
|
debug!(
|
||||||
"Inserting into alias {alias:?}, live {live:?}, shadow alt {shadow_alt:?}, shadow current {shadow_current:?}"
|
?alias,
|
||||||
|
?live,
|
||||||
|
?shadow_alt,
|
||||||
|
?shadow_current,
|
||||||
|
num_documents,
|
||||||
|
"Inserting into alias",
|
||||||
);
|
);
|
||||||
|
|
||||||
for collection in
|
for collection in
|
||||||
|
|||||||
Reference in New Issue
Block a user