lib/flare/session.rb in flare-1.0.1 vs lib/flare/session.rb in flare-1.0.2
- old
+ new
@@ -64,12 +64,12 @@
:limit => RESULT_LIMIT,
:fields => '* score',
})
options.assert_valid_keys(:filter, :types, :page, :per_page, :limit, :fields, :order, :facet)
-
- args << '*:*' if args.empty?
-
+
+ args << '*:*' if args.reject{|x| x.blank?}.empty?
+
query = {
:q => args,
:fq => Array(options[:filter]).flatten,
:fl => options[:fields],
:start => start = (options[:page] -1) * options[:per_page],