mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac: search notes db query
This commit is contained in:
@@ -255,7 +255,9 @@ class NoteTable:
|
|||||||
query = query.filter(
|
query = query.filter(
|
||||||
or_(
|
or_(
|
||||||
Note.title.ilike(f"%{query_key}%"),
|
Note.title.ilike(f"%{query_key}%"),
|
||||||
Note.data["content"]["md"].ilike(f"%{query_key}%"),
|
cast(Note.data["content"]["md"], Text).ilike(
|
||||||
|
f"%{query_key}%"
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user