- SearchIdentity 增加 NoTenantField,按目标 profile 决定是否注入 tenant_id (写入、归属预检、恢复搬运三条路径) - 归属冲突与写集合不匹配写明具体字段,排查不用再猜 - 网关侧 acquire 冲突打印 plan/claim/owner 三项
This commit is contained in:
@@ -22,6 +22,9 @@ type SearchIdentity struct {
|
||||
TenantID uint64
|
||||
KnowledgeBaseID string
|
||||
KnowledgeID string
|
||||
// NoTenantField 表示该版本的索引文档不带 tenant_id(0.9.0 就是这样)。
|
||||
// 归属校验只能比 knowledge_base_id,否则"本来就是自己的文档"会被判冲突。
|
||||
NoTenantField bool
|
||||
}
|
||||
|
||||
type SearchDocument struct {
|
||||
|
||||
Reference in New Issue
Block a user