struct Redis::FullText::SortBy

Overview

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)

Defined in:

search.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(attribute : String, direction : SortDirection = :asc) #

[View source]

Instance Method Detail

def attribute : String #

def clone #

[View source]
def copy_with(attribute _attribute = @attribute, direction _direction = @direction) #

[View source]
def direction : SortDirection #