Class ActsAsIndexed::Configuration
In: lib/acts_as_indexed/configuration.rb
Parent: Object

Used to set up and modify settings for acts_as_indexed.

Methods

Attributes

case_sensitive  [RW]  Enable or disable case sensitivity. Set to true to enable. Default is false.
disable_auto_indexing  [RW]  Disable indexing, useful for large test suites. Set to false to disable. Default is false.
if_proc  [RW]  Proc that allows you to turn on or off index for a record. Useful if you don‘t want an object to be placed in the index, such as a draft post.
index_file  [RW]  Sets the location for the index. Specify as an array. The default, for example, would be set as [Rails.root,’tmp’,’index].
index_file_depth  [R]  Tuning value for the index partitioning. Larger values result in quicker searches, but slower indexing. Default is 3.
is_windows_filesystem  [W]  Disable advanced features not compatible with the Windows filesystem. Set to true to disable. Default is guessed depending on current platform.
min_word_size  [R]  Sets the minimum length for a word in a query. Words shorter than this value are ignored in searches unless preceded by the ’+’ operator. Default is 3.

Public Class methods

Public Instance methods

Since we cannot expect Rails to be available on load, it is best to put off setting the index_file attribute until as late as possible.

[Validate]