-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
In the search
function, if the sort
parameter is set to True
, there's the following code snippet -
query = query.filter(
vector.op('@@')(sa.func.tsq_parse(regconfig, search_query))
)
if sort:
query = query.order_by(
sa.desc(
sa.func.ts_rank_cd(
vector,
sa.func.tsq_parse(search_query)
)
)
)
Is there a reason why regconfig
is not used in the call to tsq_parse
when applying the order_by
clause? I'm noticing out-of-order results since I'm not using the default regconfig
and suspect this might be the root cause.
Metadata
Metadata
Assignees
Labels
No labels