- load the data by simply opening up the UI
- go the the Search UI in RedisInsight
*
Computer
"@sector:Technology -@hqstate:(CA|NY)"
@ceo:%dill%
@ceo:"Sean M. Connolly"
@title:Wal*
"@profits:[-inf,0]" SORTBY profits ASC LIMIT 0 5
NOTE: field must be marked as Sortable
Aggregation functions are available here: https://oss.redislabs.com/redisearch/Aggregations/#list_of_field_apply_functions
"*" APPLY "upper(@hqstate)" as state GROUPBY 1 @state REDUCE COUNT 0 AS my_count SORTBY 2 @my_count DESC
"-@hqstate:(CA|NY)" GROUPBY 1 @hqstate REDUCE COUNT 0 AS my_count SORTBY 2 @my_count DESC
"*" GROUPBY 2 @hqstate @industry REDUCE COUNT 0 AS my_count SORTBY 4 @my_count DESC @hqstate DESC
"*" GROUPBY 2 @sector @hqstate REDUCE SUM 1 @revenues SORTBY 4 @revenues DESC @hqstate DESC