"FT.AGGREGATE" "trips_hash_index" "(@VisibleToCompanyIDs:{2}) (@TripMainTypeID:{6|4|1|3|2}) (@TripStatusID:{1|5|4|6|3})" "SORTBY" "8" "@CreatedDateTimeUTC" "DESC" "@TripStartDate" "ASC" "@TripEndDate" "ASC" "@TripID" "DESC" "LIMIT" "0" "10"
"FT.SEARCH" "trips_hash_index" "(@VisibleToCompanyIDs:{2}) (@TripMainTypeID:{6|4|1|3|2}) (@TripStatusID:{1|5|4|6|3})" "SORTBY" "TripID" "DESC" "LIMIT" "0" "10"
ft.info trips_hash_index 1) index_name 2) "trips_hash_index" 3) fields 4) 1) 1) PrimaryKey 2) type 3) TEXT 4) WEIGHT 5) "1" 6) SORTABLE 2) 1) TripID 2) type 3) NUMERIC 4) SORTABLE 3) 1) UserID 2) type 3) TAG 4) SEPARATOR 5) , 4) 1) TripDescription 2) type 3) TEXT 4) WEIGHT 5) "1" 5) 1) TripStartDate 2) type 3) NUMERIC 4) SORTABLE 6) 1) TripEndDate 2) type 3) NUMERIC 4) SORTABLE 7) 1) TripTypeID 2) type 3) TAG 4) SEPARATOR 5) , 8) 1) TripMainTypeID 2) type 3) TAG 4) SEPARATOR 5) , 9) 1) TripStatusID 2) type 3) TAG 4) SEPARATOR 5) , 10) 1) CreatedDateTimeUTC 2) type 3) NUMERIC 4) SORTABLE 11) 1) VisibleToCompanyIDs 2) type 3) TAG 4) SEPARATOR 5) , 12) 1) ParentTripID 2) type 3) TAG 4) SEPARATOR 5) , 13) 1) Supplier 2) type 3) TAG 4) SEPARATOR 5) , 14) 1) TripCarrierTypeID 2) type 3) TAG 4) SEPARATOR 5) , 15) 1) ClientIDs 2) type 3) TAG 4) SEPARATOR 5) , 5) index_options 6) 1) "NOOFFSETS" 7) gc_stats 8) 1) current_hz 2) "3.0289804935455322" 3) bytes_collected 4) (integer) 68723 5) effectiv_cycles_rate 6) "0.036071268224674498" 9) cursor_stats10) 1) global_idle 2) (integer) 0 3) global_total 4) (integer) 0 5) index_capacity 6) (integer) 128 7) index_total 8) (integer) 011) num_docs12) (integer) 59971513) max_doc_id14) (integer) 60043215) num_terms16) (integer) 87875217) num_records18) (integer) 493787619) inverted_sz_mb20) "4.6262814823090749e+18"21) offset_vectors_sz_mb22) "0"23) doc_table_size_mb24) "4.6329217579703337e+18"25) key_table_size_mb26) "4.6255695592675082e+18"27) records_per_doc_avg28) "8.2337043428962087"29) bytes_per_record_avg30) "4.2159641108849231"31) offsets_per_term_avg32) "0"33) offset_bits_per_record_avg34) "nan"
SORTBY … MAX
, since MAX is used to optimized sorting, by sorting only for the n-largest elements. https://oss.redislabs.com/redisearch/Aggregations/#parameters_in_detail