lib/flare/session.rb in flare-1.3.0 vs lib/flare/session.rb in flare-1.4.0
- old
+ new
@@ -68,13 +68,11 @@
:per_page => PER_PAGE,
:limit => RESULT_LIMIT,
:fields => '* score',
})
- args << '*:*' if args.reject{|x| x.blank?}.empty?
-
query = {
- :q => args.blank?,
+ :q => Array(options[:q] || (args.blank? ? "*:*" : args)).flatten,
:fq => Array(options[:fq]).flatten,
:fl => options[:fields],
:start => start = (options[:page] -1) * options[:per_page],
:rows => options[:per_page],
:sort => options[:sort]