Class | ThinkingSphinx::Search |
In: |
lib/thinking_sphinx/search.rb
|
Parent: | Object |
Once you‘ve got those indexes in and built, this is the stuff that matters - how to search! This class provides a generic search interface - which you can use to search all your indexed models at once. Most times, you will just want a specific model‘s results - to search and search_for_ids methods will do the job in exactly the same manner when called from a model.
CoreMethods | = | %w( == class class_eval extend frozen? id instance_eval instance_of? instance_values instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? kind_of? member? method methods nil? object_id respond_to? send should type ) |
SafeMethods | = | %w( partition private_methods protected_methods public_methods send class ) |
HashOptions | = | [:conditions, :with, :without, :with_all] |
ArrayOptions | = | [:classes, :without_ids] |
args | [R] | |
options | [R] |
The current page number of the result set. Defaults to 1 if no page was explicitly requested.
@return [Integer]
The next page number of the result set. If there are no more pages available, nil is returned.
@return [Integer, nil]
The amount of records per set of paged results. Defaults to 20 unless a specific page size is requested.
@return [Integer]
The previous page number of the result set. If this is the first page, then nil is returned.
@return [Integer, nil]