module ThinkingSphinx

Constants

MAXIMUM_STATEMENT_LENGTH

Public Class Methods

before_index_hooks() click to toggle source
# File lib/thinking_sphinx.rb, line 37
def self.before_index_hooks
  @before_index_hooks
end
count(query = '', options = {}) click to toggle source
# File lib/thinking_sphinx.rb, line 20
def self.count(query = '', options = {})
  search_for_ids(query, options).total_entries
end
facets(query = '', options = {}) click to toggle source
# File lib/thinking_sphinx.rb, line 24
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 32
def self.search_for_ids(query = '', options = {})
  search = ThinkingSphinx::Search.new query, options
  ThinkingSphinx::Search::Merger.new(search).merge! nil, :ids_only => true
end