reindex pls

This commit is contained in:
2025-10-26 11:06:32 -04:00
parent 561b5bddce
commit 591788dfa4
2 changed files with 4 additions and 2 deletions

View File

@@ -24,7 +24,6 @@ RUN uv pip install --system -e .
# Copy application code # Copy application code
COPY *.py ./ COPY *.py ./
COPY blueprints ./blueprints COPY blueprints ./blueprints
COPY aerich.toml ./
COPY migrations ./migrations COPY migrations ./migrations
COPY startup.sh ./ COPY startup.sh ./
RUN chmod +x startup.sh RUN chmod +x startup.sh

View File

@@ -210,7 +210,10 @@ if __name__ == "__main__":
c.execute("DELETE FROM indexed_documents") c.execute("DELETE FROM indexed_documents")
conn.commit() conn.commit()
simba_docs.delete(ids=[]) # Delete all documents from the collection
all_docs = simba_docs.get()
if all_docs["ids"]:
simba_docs.delete(ids=all_docs["ids"])
logging.info("Fetching documents from Paperless-NGX") logging.info("Fetching documents from Paperless-NGX")
ppngx = PaperlessNGXService() ppngx = PaperlessNGXService()