Fix search after removing primary_tag

This commit is contained in:
Damillora 2021-05-08 03:22:34 +07:00
parent e77fabd25e
commit eb25a333e7
2 changed files with 1 additions and 2 deletions

View File

@ -25,6 +25,5 @@ type ArticleSearchResult struct {
Url string `json:"url"`
Slug string `json:"slug"`
Excerpt string `json:"excerpt"`
HtmlMarkup string `json:"html"`
PublishedAt string `json:"published_at"`
}

View File

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