Giza.SphinxQL.order_by
You're seeing just the function
order_by
, go back to Giza.SphinxQL module for more information.
Link to this function
order_by(query, order_by)
Add an order by clause to return sorted by results. Sphinx accepts a max of 5 order by attributes and it's builtins are:
@id (match ID)
@weight (match weight)
@rank (match weight)
@relevance (match weight)
@random (return results in random order)
Examples
iex> SphinxQL.new()
|> SphinxQL.order_by("@relevance DESC, updated_at DESC")
|> SphinxQL.send()
%SphinxqlResponse{ .. }