Commit 9c957ffd9a6bc5c356ead1ea445cac2e9b6d4369

Authored by Andrew Kane
1 parent f9499c66

Prefer default_fields if specified [skip ci]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick/query.rb
... ... @@ -489,7 +489,7 @@ module Searchkick
489 489  
490 490 def set_fields
491 491 boost_fields = {}
492   - fields = options[:fields] || searchkick_options[:searchable] || searchkick_options[:default_fields]
  492 + fields = options[:fields] || searchkick_options[:default_fields] || searchkick_options[:searchable]
493 493 all = searchkick_options.key?(:_all) ? searchkick_options[:_all] : below60?
494 494 default_match = options[:match] || searchkick_options[:match] || :word
495 495 fields =
... ...