Sha256: e08fafd80c2f88ff9ebf9eb34bb3f267b57e95666c7132d3a3a61eeacbfaf183
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
if RUBY_PLATFORM == 'java' require 'java' require 'jdbc/mysql' else require 'mysql2' end require 'riddle' require 'middleware' require 'active_record' require 'innertube' require 'active_support/core_ext/module/delegation' module ThinkingSphinx def self.count(query = '', options = {}) search(query, options).total_entries end def self.facets(query = '', options = {}) ThinkingSphinx::FacetSearch.new query, options end def self.search(query = '', options = {}) ThinkingSphinx::Search.new query, options end def self.search_for_ids(query = '', options = {}) search = ThinkingSphinx::Search.new query, options ThinkingSphinx::Search::Merger.new(search).merge! nil, :ids_only => true end def self.before_index_hooks @before_index_hooks end @before_index_hooks = [] end # Core require 'thinking_sphinx/batched_search' require 'thinking_sphinx/callbacks' require 'thinking_sphinx/core' require 'thinking_sphinx/configuration' require 'thinking_sphinx/connection' require 'thinking_sphinx/errors' require 'thinking_sphinx/excerpter' require 'thinking_sphinx/facet' require 'thinking_sphinx/facet_search' require 'thinking_sphinx/frameworks' require 'thinking_sphinx/index' require 'thinking_sphinx/index_set' require 'thinking_sphinx/masks' require 'thinking_sphinx/middlewares' require 'thinking_sphinx/panes' require 'thinking_sphinx/rake_interface' require 'thinking_sphinx/scopes' require 'thinking_sphinx/search' require 'thinking_sphinx/test' # Extended require 'thinking_sphinx/active_record' require 'thinking_sphinx/deltas' require 'thinking_sphinx/real_time' require 'thinking_sphinx/railtie' if defined?(Rails)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinking-sphinx-3.0.3 | lib/thinking_sphinx.rb |