Redis::FullText::SortBy
Inherits Struct < Value < Object
Pass to the search method's sortby argument to sort the results on the
given attribute.
redis.ft.search "people-index", "@name:Jamie",
sortby: Redis::FullText::SortBy.new("name", :asc)
Constructors
new(attribute : String, direction : SortDirection = :asc)
SourceInstance methods
attribute
clone
Sourcecopy_with(attribute _attribute = @attribute, direction _direction = @direction)
Sourcedirection