Permalink
Browse files

updating changelog along with documentation

  • Loading branch information...
1 parent b500d5b commit 83f4341257432bdf7f3dbc490f55d2c19616928f @ryanb committed Jun 12, 2009
Showing with 36 additions and 0 deletions.
  1. +24 −0 CHANGELOG
  2. +6 −0 README.rdoc
  3. +6 −0 lib/xapit/membership.rb
View
@@ -1,3 +1,27 @@
+*0.2.0* (June 12th, 2009)
+
+* sort numeric attributes properly
+
+* adding xapit generator for use with gem install
+
+* adding Xapit.setup/remove_database instead of through Xapit::Config
+
+* adding foundation for adapters to support other ORMs
+
+* facet options which do not narrow down results are ignored
+
+* performance improvements when fetching records and displaying facets
+
+* search conditions can take an array or range of values
+
+ :conditions => { :priority => [2, 5, 7] }
+ :conditions => { :priority => 2..7 }
+
+* adding not_condition option in search method
+
+* fixing spelling suggestions when used with stemming
+
+
*0.1.0* (May 28th, 2009)
* initial release
View
@@ -94,6 +94,12 @@ You can then perform a search on the model.
# search based on indexed fields
@articles = Article.search("phone", :conditions => { :category_id => params[:category_id] })
+ # search for multiple negative conditions (doesn't match 3, 5, or 8)
+ @articles = Article.search(:not_conditions => { :category_id => [3, 5, 8] })
+
+ # search for range of conditions by number
+ @articles = Article.search(:conditions => { :released_at => 2.years.ago..Time.now })
+
# manually sort based on any number of indexed fields, sort defaults to most relevant
@articles = Article.search("phone", :order => [:category_id, :id], :descending => true)
View
@@ -73,6 +73,12 @@ module ClassMethods
# # search based on indexed fields
# @articles = Article.search("phone", :conditions => { :category_id => params[:category_id] })
#
+ # # search for multiple negative conditions (doesn't match 3, 5, or 8)
+ # @articles = Article.search(:not_conditions => { :category_id => [3, 5, 8] })
+ #
+ # # search for range of conditions by number
+ # @articles = Article.search(:conditions => { :released_at => 2.years.ago..Time.now })
+ #
# # manually sort based on any number of indexed fields, sort defaults to most relevant
# @articles = Article.search("phone", :order => [:category_id, :id], :descending => true)
#

0 comments on commit 83f4341

Please sign in to comment.