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.
In the
searchfunction, if thesortparameter is set toTrue, there's the following code snippet -Is there a reason why
regconfigis not used in the call totsq_parsewhen applying theorder_byclause? I'm noticing out-of-order results since I'm not using the defaultregconfigand suspect this might be the root cause.