module ThinkingSphinx

Public Class Methods

before_index_hooks() click to toggle source
# File lib/thinking_sphinx.rb, line 34
def self.before_index_hooks
  @before_index_hooks
end
count(query = '', options = {}) click to toggle source
# File lib/thinking_sphinx.rb, line 17
def self.count(query = '', options = {})
  search(query, options).total_entries
end
facets(query = '', options = {}) click to toggle source
# File lib/thinking_sphinx.rb, line 21
def self.facets(query = '', options = {})
  ThinkingSphinx::FacetSearch.new query, options
end
search_for_ids(query = '', options = {}) click to toggle source
# File lib/thinking_sphinx.rb, line 29
def self.search_for_ids(query = '', options = {})
  search = ThinkingSphinx::Search.new query, options
  ThinkingSphinx::Search::Merger.new(search).merge! nil, :ids_only => true
end