From c7ff45976f93758a03812ce98afd40299fcdcd24 Mon Sep 17 00:00:00 2001 From: Damillora Date: Fri, 7 May 2021 21:37:05 +0700 Subject: [PATCH] Add search fields --- pkg/services/article.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/article.go b/pkg/services/article.go index 4eba3d2..f34d519 100644 --- a/pkg/services/article.go +++ b/pkg/services/article.go @@ -19,7 +19,7 @@ func SearchArticles(q string, page int) (SearchResult, error) { perPage := 10 searchParameters := &api.SearchCollectionParams{ Q: q, - QueryBy: []string{"title"}, + QueryBy: []string{"title","slug","primary_tag","excerpt","html"}, Page: &page, PerPage: &perPage, }