diff options
Diffstat (limited to 'server')
| -rw-r--r-- | server/src/routes/search.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/src/routes/search.rs b/server/src/routes/search.rs index 3254394..401f475 100644 --- a/server/src/routes/search.rs +++ b/server/src/routes/search.rs @@ -28,7 +28,15 @@ pub async fn r_search(ri: RequestInfo<'_>, q: Option<&str>) -> MyResult<RawHtml< let rows = txn .query(Query { filter: Filter::Match(Path(vec![NO_VISIBILITY.0]), VISI_VISIBLE.into()), - sort: Sort::TextSearch(Path(vec![NO_TITLE.0]), q.to_owned()), + sort: Sort::TextSearch( + vec![ + Path(vec![NO_TITLE.0]), + Path(vec![NO_DESCRIPTION.0]), + Path(vec![NO_TAGLINE.0]), + Path(vec![NO_SUBTITLE.0]), + ], + q.to_owned(), + ), ..Default::default() })? .take(64) |