@@ -21,3 +21,5 @@ FileSystemConf:
Key: moapp.filesystem.rpc
DocBucketName: "jydoc-stdlib"
PreviewBucketName: "jydoc-preview"
+SearchSource: # 文库搜索范围 1-剑鱼 2-豆丁
+ - "1" # 1-剑鱼 这配字符串方便拼接
@@ -13,4 +13,5 @@ type Config struct {
EsConfig jyDocRpcUtil.EsConfig
DocBucketName string
PreviewBucketName string
+ SearchSource []string // 文库搜索来源
}
@@ -51,5 +51,5 @@ func (l *DocQueryLogic) DocQuery(in *stdlib.DocQueryRequest) (*stdlib.DocQueryRe
}, nil
- return stdlibService.DocQuery(in), nil
+ return stdlibService.DocQuery(in, l.svcCtx.Config.SearchSource), nil