Repository navigation
fix: correct multi-tenant retrieval scope - #20824
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue was established in the reviewed changes. The multi-tenant searches appear mergeable after normal checks. Pre-merge checks |
|
Lynn-Inf
left a comment
There was a problem hiding this comment.
LGTM — the fix correctly scopes retrieval to all requested dataset tenants for the officially supported engines (Elasticsearch and Infinity).
For reference (not blocking): oceanbase (also backing seekdb) still has the same pattern in FilterDocIdsByMetaPushdown — it resolves only kbIDs[0]'s tenant while filtering the full kbIDs list, so multi-tenant metadata filtering silently drops docs there too. Since oceanbase is externally maintained (and vastbase/serenedb are community engines whose push-down is a no-op), this can be left to community contributors rather than included here.
# Conflicts: # internal/service/metadata.go
Search metadata across all requested dataset tenants instead of only the first, preventing missing documents in metadata filtering.
Search all relevant tenant indices for KNN rescoring and parent-chunk lookup, preserving scores and parent context across tenants.