Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
As all keywords are lowercase, it doesn't need the case insensitive r…
Browse files Browse the repository at this point in the history
…egex.

It'll save some overhead.
  • Loading branch information
mauriciozaffari committed Sep 17, 2010
1 parent 8fad1d6 commit 425ef3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid_search/mongoid_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def search_in(*args)
end

def search(query)
self.send("#{self.match.to_s}_in", :_keywords => KeywordsExtractor.extract(query).map { |q| /#{q}/i })
self.send("#{self.match.to_s}_in", :_keywords => KeywordsExtractor.extract(query).map { |q| /#{q}/ })
end
end

Expand Down

0 comments on commit 425ef3d

Please sign in to comment.