File tree 1 file changed +22
-4
lines changed
1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,12 @@ func ExampleClient_query_range() {
230
230
FieldName : "price" ,
231
231
},
232
232
},
233
+ SortBy : []redis.FTSearchSortBy {
234
+ {
235
+ FieldName : "price" ,
236
+ Asc : true ,
237
+ },
238
+ },
233
239
},
234
240
).Result ()
235
241
@@ -263,6 +269,12 @@ func ExampleClient_query_range() {
263
269
FieldName : "price" ,
264
270
},
265
271
},
272
+ SortBy : []redis.FTSearchSortBy {
273
+ {
274
+ FieldName : "price" ,
275
+ Asc : true ,
276
+ },
277
+ },
266
278
},
267
279
).Result ()
268
280
@@ -289,6 +301,12 @@ func ExampleClient_query_range() {
289
301
FieldName : "price" ,
290
302
},
291
303
},
304
+ SortBy : []redis.FTSearchSortBy {
305
+ {
306
+ FieldName : "price" ,
307
+ Asc : true ,
308
+ },
309
+ },
292
310
Filters : []redis.FTSearchFilter {
293
311
{
294
312
FieldName : "price" ,
@@ -354,19 +372,19 @@ func ExampleClient_query_range() {
354
372
355
373
// Output:
356
374
// 3
357
- // bicycle:2 : price 815
358
375
// bicycle:5 : price 810
376
+ // bicycle:2 : price 815
359
377
// bicycle:9 : price 815
360
378
// 3
361
- // bicycle:2 : price 815
362
379
// bicycle:5 : price 810
380
+ // bicycle:2 : price 815
363
381
// bicycle:9 : price 815
364
382
// 5
365
383
// bicycle:1 : price 1200
366
- // bicycle:4 : price 3200
384
+ // bicycle:8 : price 1200
367
385
// bicycle:6 : price 2300
386
+ // bicycle:4 : price 3200
368
387
// bicycle:3 : price 3400
369
- // bicycle:8 : price 1200
370
388
// 7
371
389
// bicycle:0 : price 270
372
390
// bicycle:7 : price 430
You can’t perform that action at this time.
0 commit comments