mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Check stopwords
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user