Check stopwords

This commit is contained in:
2025-09-10 20:06:46 +08:00
parent af81f66f25
commit 45beaced89
3 changed files with 34 additions and 0 deletions

View File

@@ -317,6 +317,9 @@ func SearchResource(query string, page int) ([]model.ResourceView, int, error) {
if err != nil {
return nil, 0, err
}
if len(res) == 0 && search.IsStopWord(keyword) {
continue
}
if first {
temp = utils.RemoveDuplicate(res)
first = false