Module ThinkingSphinx
In: lib/thinking_sphinx/association.rb
lib/thinking_sphinx/class_facet.rb
lib/thinking_sphinx/excerpter.rb
lib/thinking_sphinx/deltas/default_delta.rb
lib/thinking_sphinx/join.rb
lib/thinking_sphinx/index.rb
lib/thinking_sphinx/deltas.rb
lib/thinking_sphinx/search_methods.rb
lib/thinking_sphinx/core/string.rb
lib/thinking_sphinx/rails_additions.rb
lib/thinking_sphinx/property.rb
lib/thinking_sphinx/source.rb
lib/thinking_sphinx/configuration.rb
lib/thinking_sphinx/field.rb
lib/thinking_sphinx/facet_search.rb
lib/thinking_sphinx/active_record.rb
lib/thinking_sphinx/auto_version.rb
lib/thinking_sphinx/attribute.rb
lib/thinking_sphinx/source/sql.rb
lib/thinking_sphinx/source/internal_properties.rb
lib/thinking_sphinx/index/faux_column.rb
lib/thinking_sphinx/index/builder.rb
lib/thinking_sphinx/facet.rb
lib/thinking_sphinx/bundled_search.rb
lib/thinking_sphinx/adapters/mysql_adapter.rb
lib/thinking_sphinx/adapters/abstract_adapter.rb
lib/thinking_sphinx/adapters/postgresql_adapter.rb
lib/thinking_sphinx/active_record/has_many_association_with_scopes.rb
lib/thinking_sphinx/active_record/delta.rb
lib/thinking_sphinx/active_record/scopes.rb
lib/thinking_sphinx/active_record/attribute_updates.rb
lib/thinking_sphinx/active_record/has_many_association.rb
lib/thinking_sphinx/search.rb
lib/thinking_sphinx.rb

encoding: UTF-8

Methods

Classes and Modules

Module ThinkingSphinx::AbstractQuotedTableName
Module ThinkingSphinx::ActiveRecord
Module ThinkingSphinx::ActiveRecordQuotedName
Module ThinkingSphinx::ActiveRecordStoreFullSTIClass
Module ThinkingSphinx::ArrayExtractOptions
Module ThinkingSphinx::ClassAttributeMethods
Module ThinkingSphinx::Core
Module ThinkingSphinx::Deltas
Module ThinkingSphinx::HashExcept
Module ThinkingSphinx::MysqlQuotedTableName
Module ThinkingSphinx::SearchMethods
Module ThinkingSphinx::SingletonClass
Class ThinkingSphinx::AbstractAdapter
Class ThinkingSphinx::Association
Class ThinkingSphinx::Attribute
Class ThinkingSphinx::AutoVersion
Class ThinkingSphinx::BundledSearch
Class ThinkingSphinx::ClassFacet
Class ThinkingSphinx::Configuration
Class ThinkingSphinx::ConnectionError
Class ThinkingSphinx::Context
Class ThinkingSphinx::Excerpter
Class ThinkingSphinx::Facet
Class ThinkingSphinx::FacetSearch
Class ThinkingSphinx::Field
Class ThinkingSphinx::Index
Class ThinkingSphinx::Join
Class ThinkingSphinx::MysqlAdapter
Class ThinkingSphinx::PostgreSQLAdapter
Class ThinkingSphinx::Property
Class ThinkingSphinx::Search
Class ThinkingSphinx::Source
Class ThinkingSphinx::SphinxError
Class ThinkingSphinx::StaleIdsException
Class ThinkingSphinx::Test

Public Class methods

Enable/disable indexes - you may want to do this while migrating data.

  ThinkingSphinx.define_indexes = false

Check if index definition is disabled.

Enable/disable all delta indexing.

  ThinkingSphinx.deltas_enabled = false

Check if delta indexing is enabled.

Tells Thinking Sphinx that Sphinx is running on a different machine, and thus it can‘t reliably guess whether it is running or not (ie: the sphinx_running? method), and so just assumes it is.

Useful for multi-machine deployments. Set it in your production.rb file.

  ThinkingSphinx.remote_sphinx = true

An indication of whether Sphinx is running on a remote machine instead of the same machine.

Check if Sphinx is running. If remote_sphinx is set to true (indicating Sphinx is on a different machine), this will always return true, and you will have to handle any connection errors yourself.

Check if Sphinx is actually running, provided the pid is on the same machine as this code.

Enable/disable updates to Sphinx

  ThinkingSphinx.updates_enabled = false

Check if updates are enabled. True by default, unless within the test environment.

Checks to see if MySQL will allow simplistic GROUP BY statements. If not, or if not using MySQL, this will return false.

The current version of Thinking Sphinx.

@return [String] The version number as a string

[Validate]