From 5a2be87f658d01bc5b3b7ecdba92ac69bf09dcf7 Mon Sep 17 00:00:00 2001
From: ai_xiaopei <xiaopei@aisim.cn>
Date: Thu, 03 Sep 2026 15:15:37 +0800
Subject: [PATCH] fix(search): 搜索准确性四连修——FTS5 MATCH 引号包裹(连字符不再被解析成 MINUS);KeywordSearch 截断按命中关键词数排序(高频 bigram 不再挤出强相关文档);原词奖励档(完整短语压过泛化 bigram);tags 字段真实参与评分(此前误用 Section)

---
 cmd/explore.go |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cmd/explore.go b/cmd/explore.go
index 84152d6..eb808c3 100644
--- a/cmd/explore.go
+++ b/cmd/explore.go
@@ -78,8 +78,9 @@
 	if topN <= 0 && cfg.Explore.TopN > 0 {
 		topN = cfg.Explore.TopN
 	}
+	hardBudget := cfg.Explore.HardBudget // 0 = Explore 内部用缺省 32000
 
-	res, err := search.Explore(store, allKeywords, search.ExploreOptions{Budget: budget, TopN: topN})
+	res, err := search.Explore(store, allKeywords, search.ExploreOptions{Budget: budget, TopN: topN, HardBudget: hardBudget})
 	if err != nil {
 		return fmt.Errorf("explore 失败: %w", err)
 	}

--
Gitblit v1.10.0