You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix #1749 - FT.SEARCH SORTBY
This commit is contained in:
@@ -48,8 +48,8 @@ interface SearchOptions {
|
||||
SCORER?: string;
|
||||
// EXPLAINSCORE?: true; // TODO: WITHSCORES
|
||||
// PAYLOAD?: ;
|
||||
// SORTBY?: SortByOptions;
|
||||
MSORTBY?: SortByOptions | Array<SortByOptions>;
|
||||
SORTBY?: SortByOptions;
|
||||
// MSORTBY?: SortByOptions | Array<SortByOptions>;
|
||||
LIMIT?: {
|
||||
from: number | string;
|
||||
size: number | string;
|
||||
@@ -149,15 +149,14 @@ export function transformArguments(
|
||||
// args.push('PAYLOAD', options.PAYLOAD);
|
||||
// }
|
||||
|
||||
// if (options?.SORTBY) {
|
||||
// args.push('SORTBY');
|
||||
// pushSortByArguments(args, options.SORTBY);
|
||||
// }
|
||||
|
||||
if (options?.MSORTBY) {
|
||||
pushSortByArguments(args, 'MSORTBY', options.MSORTBY);
|
||||
if (options?.SORTBY) {
|
||||
pushSortByArguments(args, 'SORTBY', options.SORTBY);
|
||||
}
|
||||
|
||||
// if (options?.MSORTBY) {
|
||||
// pushSortByArguments(args, 'MSORTBY', options.MSORTBY);
|
||||
// }
|
||||
|
||||
if (options?.LIMIT) {
|
||||
args.push(
|
||||
'LIMIT',
|
||||
|
Reference in New Issue
Block a user