1
0
mirror of https://github.com/Damillora/Yuriko.git synced 2025-04-09 21:43:14 +00:00

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
pkg
models
services

@ -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"`
}

@ -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,
}