Commit graph

10 commits

Author SHA1 Message Date
d2e93fe3a8 DOCS 2026-11-25 16:14:48 +01:00
e1e2364ac5 Fix disappearing SMB documents: disable pruning with prune_freq=0
Root cause (verified on a live Onyx 5.0.3 instance): pruning a File
connector whose connector_specific_config.file_locations is empty deletes
every document the connector holds — the prune reconciles the index
against the connector's "source" (no files) and removes everything,
including the documents we push via the ingestion API.

We created the connector with prune_freq=None to keep pruning off, but
Onyx's update_connector() rewrites a None prune_freq to
DEFAULT_PRUNING_FREQ (7 days). So any later update to the connector
silently enabled weekly pruning, which wiped the SMB documents after
~1-2 weeks ("disappearing after ~14 days").

Send prune_freq=0 instead: pruning is skipped while prune_freq is falsy,
and 0 (unlike None) survives update_connector() — it is never replaced by
the 7-day default. Verified live: a prune deletes the docs (1->0) while a
re-index does not; prune_freq=0 is stored as 0 and keeps pruning off.
2026-11-16 15:21:07 +01:00
41ca33d8fd Fix connector lookup on Onyx 5.0 (paginated indexing-status)
Onyx 5.0 paginated /admin/connector/indexing-status to 10 connectors per
source per page (default page 1). find_cc_pair_id_by_name read only the
first page, so with >10 connectors in a source it missed the existing
AIDO SMB connector and provisioning then failed with
"Connector by this name already exists, duplicate naming not allowed."

Request every connector via the new get_all_connectors flag so the
lookup is reliable regardless of connector count. Verified against the
v5.0 source and a live v5.0 instance.
2026-11-16 15:20:27 +01:00
fba30fe8b4 Add optional per-source modified-date filter
Index only files whose modified date is within an optional range, set
per SMB source. Both bounds are optional:
  SMB_SOURCE_<N>_MODIFIED_AFTER=2024-01-01   (inclusive)
  SMB_SOURCE_<N>_MODIFIED_BEFORE=2025-01-01  (exclusive)
Set both for a range, only AFTER for everything newer, only BEFORE for
everything older, neither for no filter. Also JSON keys modified_after /
modified_before, and SMB_DEFAULT_MODIFIED_AFTER/_BEFORE fallbacks. Dates
are read as UTC so the filter is reproducible across hosts.

A file outside the range is skipped during the walk, so it is excluded
from `seen` and the reconcile pass removes it from Onyx — narrowing the
range prunes out-of-range documents. Verified with unit + end-to-end
tests (in-range only, widening adds, narrowing deletes).
2026-11-16 15:19:54 +01:00
cc28ee9758 Update compose.yml 2026-10-02 00:31:28 +02:00
72198e9605 Update compose.yml 2026-10-02 00:29:48 +02:00
8587c2cdde Update compose.yml 2026-10-01 23:50:09 +02:00
81310ce624 Update compose.yml 2026-10-01 23:43:57 +02:00
2f054cf15d switch to standalone only 2026-10-01 23:40:59 +02:00
98aa3f92fc Initial Commit 2026-10-01 23:33:06 +02:00