File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
packages/search/lib/commands Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ interface SearchOptions {
48
48
SCORER ?: string ;
49
49
// EXPLAINSCORE?: true; // TODO: WITHSCORES
50
50
// PAYLOAD?: ;
51
- // SORTBY?: SortByOptions;
52
- MSORTBY ?: SortByOptions | Array < SortByOptions > ;
51
+ SORTBY ?: SortByOptions ;
52
+ // MSORTBY?: SortByOptions | Array<SortByOptions>;
53
53
LIMIT ?: {
54
54
from : number | string ;
55
55
size : number | string ;
@@ -149,15 +149,14 @@ export function transformArguments(
149
149
// args.push('PAYLOAD', options.PAYLOAD);
150
150
// }
151
151
152
- // if (options?.SORTBY) {
153
- // args.push('SORTBY');
154
- // pushSortByArguments(args, options.SORTBY);
155
- // }
156
-
157
- if ( options ?. MSORTBY ) {
158
- pushSortByArguments ( args , 'MSORTBY' , options . MSORTBY ) ;
152
+ if ( options ?. SORTBY ) {
153
+ pushSortByArguments ( args , 'SORTBY' , options . SORTBY ) ;
159
154
}
160
155
156
+ // if (options?.MSORTBY) {
157
+ // pushSortByArguments(args, 'MSORTBY', options.MSORTBY);
158
+ // }
159
+
161
160
if ( options ?. LIMIT ) {
162
161
args . push (
163
162
'LIMIT' ,
You can’t perform that action at this time.
0 commit comments