Module: ThinkingSphinx

Defined in:
lib/thinking_sphinx.rb,
lib/thinking_sphinx/active_record/sql_source.rb,
lib/thinking_sphinx/active_record/sql_builder.rb,
lib/thinking_sphinx/active_record/sql_builder/query.rb,
lib/thinking_sphinx/active_record/sql_builder/statement.rb,
lib/thinking_sphinx/active_record/sql_builder/clause_builder.rb

Defined Under Namespace

Modules: ActiveRecord, Connection, Core, Deltas, EnginePaths, Frameworks, Masks, Middlewares, Panes, RealTime, Scopes Classes: BatchedSearch, Callbacks, Configuration, Deletion, Excerpter, Facet, FacetSearch, Index, IndexSet, MixedScopesError, ParseError, QueryError, QueryExecutionError, Railtie, RakeInterface, Search, SphinxError, SyntaxError, Test

Class Method Summary (collapse)

Class Method Details

+ (Object) before_index_hooks



32
33
34
# File 'lib/thinking_sphinx.rb', line 32

def self.before_index_hooks
  @before_index_hooks
end

+ (Object) count(query = '', options = {})



15
16
17
# File 'lib/thinking_sphinx.rb', line 15

def self.count(query = '', options = {})
  search(query, options).total_entries
end

+ (Object) facets(query = '', options = {})



19
20
21
# File 'lib/thinking_sphinx.rb', line 19

def self.facets(query = '', options = {})
  ThinkingSphinx::FacetSearch.new query, options
end

+ (Object) search(query = '', options = {})



23
24
25
# File 'lib/thinking_sphinx.rb', line 23

def self.search(query = '', options = {})
  ThinkingSphinx::Search.new query, options
end

+ (Object) search_for_ids(query = '', options = {})



27
28
29
30
# File 'lib/thinking_sphinx.rb', line 27

def self.search_for_ids(query = '', options = {})
  search = ThinkingSphinx::Search.new query, options
  ThinkingSphinx::Search::Merger.new(search).merge! nil, :ids_only => true
end