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, Subscribers
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
.before_index_hooks ⇒ Object
32
33
34
|
# File 'lib/thinking_sphinx.rb', line 32
def self.before_index_hooks
@before_index_hooks
end
|
.count(query = '', options = {}) ⇒ Object
15
16
17
|
# File 'lib/thinking_sphinx.rb', line 15
def self.count(query = '', options = {})
search(query, options).total_entries
end
|
.facets(query = '', options = {}) ⇒ Object
19
20
21
|
# File 'lib/thinking_sphinx.rb', line 19
def self.facets(query = '', options = {})
ThinkingSphinx::FacetSearch.new query, options
end
|
.search(query = '', options = {}) ⇒ Object
23
24
25
|
# File 'lib/thinking_sphinx.rb', line 23
def self.search(query = '', options = {})
ThinkingSphinx::Search.new query, options
end
|
.search_for_ids(query = '', options = {}) ⇒ Object
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
|