Open siddhantgoel opened 5 years ago
In the search function, if the sort parameter is set to True, there's the following code snippet -
search
sort
True
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.
regconfig
tsq_parse
order_by
In the
search
function, if thesort
parameter is set toTrue
, there's the following code snippet -Is there a reason why
regconfig
is not used in the call totsq_parse
when applying theorder_by
clause? I'm noticing out-of-order results since I'm not using the defaultregconfig
and suspect this might be the root cause.