module ThinkingSphinx
Public Class Methods
before_index_hooks()
click to toggle source
# File lib/thinking_sphinx.rb, line 35 def self.before_index_hooks @before_index_hooks end
count(query = '', options = {})
click to toggle source
# File lib/thinking_sphinx.rb, line 18 def self.count(query = '', options = {}) search(query, options).total_entries end
facets(query = '', options = {})
click to toggle source
# File lib/thinking_sphinx.rb, line 22 def self.facets(query = '', options = {}) ThinkingSphinx::FacetSearch.new query, options end
search(query = '', options = {})
click to toggle source
# File lib/thinking_sphinx.rb, line 26 def self.search(query = '', options = {}) ThinkingSphinx::Search.new query, options end
search_for_ids(query = '', options = {})
click to toggle source
# File lib/thinking_sphinx.rb, line 30 def self.search_for_ids(query = '', options = {}) search = ThinkingSphinx::Search.new query, options ThinkingSphinx::Search::Merger.new(search).merge! nil, :ids_only => true end