fix(filesystem): use summary projection for default semantic search

Route default semantic search to the summary projection when summary is the only populated semantic channel.
This commit is contained in:
Bukely_ 2026-05-26 20:27:29 +08:00 committed by BukeLy
parent 3519adfbd1
commit ad45f96dfa
2 changed files with 67 additions and 0 deletions

View file

@ -130,6 +130,8 @@ class HybridProjectionSearchBackend:
if self._channel_document_count(channel) > 0
)
if not channels:
if self._channel_document_count("summary") > 0:
return self.search_channel("summary", query, limit=limit, filters=filters)
return []
channel_hits = self._search_channels(
query=query,