Faceted Search
Filtering, Pagination and Sorting
class CustomerFilter < AllFutures::Base
# Facets
attribute :search, :string
attribute :threshold, :float, default: 0.1
attribute :status, :string
attribute :lawyers, :boolean, default: false
attribute :low, :integer, default: 21
attribute :high, :integer, default: 65
# Pagination
attribute :items, :integer, default: 10
attribute :page, :integer, default: 1
# Sorting
attribute :order, :string, default: "name"
attribute :direction, :string, default: "asc"
endFiltering, Pagination and Sorting

Providing a scope
Draw the rest of the owl
Last updated