Skip to content

Commit

Permalink
performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
smix committed Feb 5, 2011
1 parent 77d4578 commit ed1373b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid_search/mongoid_search.rb
Expand Up @@ -53,7 +53,7 @@ def search_relevant(query, options={})

options.delete(:limit)
options.delete(:skip)
options.merge! :scope => {:keywords => keywords}, :query => query
options.merge! :scope => {:keywords => keywords}, :query => query.only(:_id, :_keywords)

res = collection.map_reduce(map, reduce, options)

Expand Down

0 comments on commit ed1373b

Please sign in to comment.