Skip to content
Browse files

adding documentation for wildcard matching - closes #26

  • Loading branch information...
1 parent f0f077f commit 3b33a287185fde73844f68fb3ac9437cdb2cb6e5 @ryanb committed Jun 26, 2009
Showing with 5 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +3 −0 lib/xapit/membership.rb
View
2 CHANGELOG
@@ -1,3 +1,5 @@
+* adding wildcard matching for general search query (ClassicQueryParser only)
+
* adding wildcard matching when asterisk exists at end of condition
:conditions => { :name => "foo*" }
View
3 lib/xapit/membership.rb
@@ -89,6 +89,9 @@ module ClassMethods
# # no need to specify first query string when searching all records
# @articles = Article.search(:conditions => { :category_id => params[:category_id] })
#
+ # # search partial terms with asterisk (only supported at end of term)
+ # @articles = Article.search("sab*", :conditions => { :name => "Din*" })
+ #
def search(*args)
Collection.new(self, *args)
end

0 comments on commit 3b33a28

Please sign in to comment.
Something went wrong with that request. Please try again.