Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Override the default behavior of the Active Scaffold search function to allow use of the Sphinx search engine.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
MIT-LICENSE
README
Rakefile
init.rb
install.rb
uninstall.rb

README

Modifications for this version
========

This version has been modified to work with ActiveScaffold for Rails 3.1

ActiveScaffold Thinking Sphinx Adapter
========

as_thinking_sphinx is a simple adapter to allow the built-in ActiveScaffold search to 
use the Sphinx search engine as well as the default. 

It was created because of the need to search tables with a large number of records.

Prerequisites
========

Sphinx (http://www.sphinxsearch.com/)
Thinking Sphinx (http://freelancing-god.github.com/ts/en/)
ActiveScaffold (http://activescaffold.com/)
	
Installation
========
	
This assumes you already have a working Sphinx installation with the Thinking Sphinx gem 
installed and running.  Your models should already have indexes configured. 

  script/plugin install git://github.com/coryp/as_thinking_sphinx.git

Configuration
=======

In the scaffold controllers in which you would like to use Sphinx, add the following line 
in your active_scaffold config block:

  config.search.engine = 'thinking_sphinx'

That's it!

Super-advanced configuration: If you want to specify the model you will be searching on (since by default it is derived from the current controller), add the following option:

  config.search.model_name = 'product'


Copyright (c) 2012 Andrew Cates, released under the MIT license
Copyright (c) 2010 Cory Patterson, released under the MIT license
Copyright (c) 2010 Hans Masing, released under the MIT license

Something went wrong with that request. Please try again.