mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-08 19:17:40 +08:00
fix search service null category
This commit is contained in:
@@ -67,7 +67,7 @@ public class SearchService {
|
|||||||
"post",
|
"post",
|
||||||
p.getId(),
|
p.getId(),
|
||||||
p.getTitle(),
|
p.getTitle(),
|
||||||
p.getCategory().getName(),
|
p.getCategory() != null ? p.getCategory().getName() : null,
|
||||||
extractSnippet(p.getContent(), keyword, false),
|
extractSnippet(p.getContent(), keyword, false),
|
||||||
null
|
null
|
||||||
)),
|
)),
|
||||||
@@ -76,7 +76,7 @@ public class SearchService {
|
|||||||
"post_title",
|
"post_title",
|
||||||
p.getId(),
|
p.getId(),
|
||||||
p.getTitle(),
|
p.getTitle(),
|
||||||
p.getCategory().getName(),
|
p.getCategory() != null ? p.getCategory().getName() : null,
|
||||||
extractSnippet(p.getContent(), keyword, true),
|
extractSnippet(p.getContent(), keyword, true),
|
||||||
null
|
null
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user