mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Use full text search instead of ilike for search functionality
This commit is contained in:
@@ -10,7 +10,7 @@ export const load: PageServerLoad = async ({ fetch, cookies, url }) => {
|
||||
const baseFetchUrl = `${API_BASE_PREFIX}/website`;
|
||||
|
||||
if (searchQuery) {
|
||||
params.append("title", `ilike.*${searchQuery}*`);
|
||||
params.append("title_search", `wfts(english).${searchQuery}`);
|
||||
}
|
||||
|
||||
switch (sortBy) {
|
||||
|
||||
Reference in New Issue
Block a user