<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -35,6 +35,41 @@ This can be empty or nil, in which case all no search conditions are set (and al
 
   User.search_for(params[:q]).each { |project| ... }
 
+You can define multiple scopes like so:
+
+  class User &lt; ActiveRecord::Base
+    searchable_on do
+      name :name_search
+      fields :first_name, :last_name
+    end
+
+    searchable_on do
+      name :login_search
+      fields :login, :email
+    end
+    
+    # this is an alternative way to create the login_search
+    acts_as_scoped_search :login_search, :login, :email
+  end
+
+If you'd rather select the columns to search when invoking the named scope, you can do
+that with any scoped search, or with the default &quot;scoped_search&quot; scope created by the following:
+
+  class User &lt; ActiveRecord::Base
+    # Creates a default scope called :scoped_search which searches all fields 
+    # of this model
+    acts_as_scoped_search 
+    
+    # you can refer to the default scope in another scope
+    named_scope :search_text_fields, lambda { |keywords| 
+      self.scoped_search(keywords, :login, :email, :first_name, :last_name) 
+    }
+    
+    # or from a function
+    def search_text_fields_function(keywords)
+      self.scoped_search(keywords, :login, :email, :first_name, :last_name)
+    end
+  end
 
 You can also search on associate models.  This works with &lt;b&gt;belongs_to&lt;/b&gt;, &lt;b&gt;has_one&lt;/b&gt;, &lt;b&gt;has_many&lt;/b&gt;, 
 &lt;b&gt;has_many :through&lt;/b&gt;, and &lt;b&gt;HABTM&lt;/b&gt;.  For example if a User &lt;b&gt;has_many&lt;/b&gt; Notes (title, content, created_at, updated_at)</diff>
      <filename>README.rdoc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eea01f29d3b36b65c83fe9b10905766810de69fc</id>
    </parent>
  </parents>
  <author>
    <name>Robert Sanders</name>
    <email>robert@esquimaux.org</email>
  </author>
  <url>http://github.com/wvanbergen/scoped_search/commit/4b616617fc1aff423f59355ff52ad8173782f523</url>
  <id>4b616617fc1aff423f59355ff52ad8173782f523</id>
  <committed-date>2009-06-24T22:08:24-07:00</committed-date>
  <authored-date>2009-06-24T12:03:48-07:00</authored-date>
  <message>updated doc

Signed-off-by: Willem van Bergen &lt;willem@vanbergen.org&gt;</message>
  <tree>040840a4bc6dcd48ce7b019b9298903ef219ed1b</tree>
  <committer>
    <name>Willem van Bergen</name>
    <email>willem@vanbergen.org</email>
  </committer>
</commit>
