mirror of
https://github.com/Damillora/Yuriko.git
synced 2024-11-22 01:37:31 +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"`
|
Url string `json:"url"`
|
||||||
Slug string `json:"slug"`
|
Slug string `json:"slug"`
|
||||||
Excerpt string `json:"excerpt"`
|
Excerpt string `json:"excerpt"`
|
||||||
HtmlMarkup string `json:"html"`
|
|
||||||
PublishedAt string `json:"published_at"`
|
PublishedAt string `json:"published_at"`
|
||||||
}
|
}
|
||||||
|
@ -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", "slug", "primary_tag", "excerpt", "html"},
|
QueryBy: []string{"title", "slug", "excerpt", "html"},
|
||||||
Page: &page,
|
Page: &page,
|
||||||
PerPage: &perPage,
|
PerPage: &perPage,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user