Skip to content

Scoped Search – A Rails plugin

July 7, 2011

Scoped Search is a free, open source, Rails plug-in. Designed to makes writing a search driven Rails application easy. It combines free text search with powerful scoping syntax, and an AJAX auto-completer. It enables simple search terms as well as powerful syntax including negation logical operations, human readable date and more.

With scoped search applications data can be accessed via single search box. The user search terms are converted into an SQL query using Rails ActiveRecord named scope. Searching is performed using a query string, which should be passed to the named_scope search_for. Based on a definition in what fields to look, it will build query conditions and return those as a named scope. Scoped search is great if you want to offer a simple search box to your users and build a query based on the search string they enter.

The built-in syntax auto-completer will help the user learn the powerful search syntax. The auto-completer can also suggest values from the database.

Advertisements

From → Design, Developers

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: