mirror of
https://github.com/Damillora/Yuriko.git
synced 2024-11-24 10:27:33 +00:00
Fix search after removing primary_tag
This commit is contained in:
parent
e77fabd25e
commit
eb25a333e7
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user