Add search fields

This commit is contained in:
Damillora 2021-05-07 21:37:05 +07:00
parent d0b93e28ad
commit c7ff45976f

View File

@ -19,7 +19,7 @@ func SearchArticles(q string, page int) (SearchResult, error) {
perPage := 10 perPage := 10
searchParameters := &api.SearchCollectionParams{ searchParameters := &api.SearchCollectionParams{
Q: q, Q: q,
QueryBy: []string{"title"}, QueryBy: []string{"title","slug","primary_tag","excerpt","html"},
Page: &page, Page: &page,
PerPage: &perPage, PerPage: &perPage,
} }