An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Marketplace search for multiple keywords uses AND logic https://github.com/siyuan-note/siyuan/issues/14293
Danielbc1c2ef5c538
diff --git a/kernel/model/bazzar.go b/kernel/model/bazzar.goindex c7229a0552..a839c3c1a8 100644--- a/kernel/model/bazzar.go+++ b/kernel/model/bazzar.go@@ -501,7 +501,7 @@ func matchPackage(keywords []string, pkg *bazaar.Package) bool {return false}- hitCount := 0+ hits := map[string]bool{}for _, keyword := range keywords {if strings.Contains(strings.ToLower(pkg.DisplayName.Default), keyword) ||strings.Contains(strings.ToLower(pkg.DisplayName.ZhCN), keyword) ||@@ -513,16 +513,18 @@ func matchPackage(keywords []string, pkg *bazaar.Package) bool {strings.Contains(strings.ToLower(pkg.Description.EnUS), keyword) ||strings.Contains(strings.ToLower(path.Base(pkg.RepoURL)), keyword) ||strings.Contains(strings.ToLower(pkg.Author), keyword) {- hitCount+++ hits[keyword] = true+ continue}for _, pkgKeyword := range pkg.Keywords {if strings.Contains(strings.ToLower(pkgKeyword), keyword) {- hitCount+++ hits[keyword] = true+ break}}}- return hitCount == len(keywords)+ return len(hits) == len(keywords)}func getSearchKeywords(query string) (ret []string) {