Class: SunspotMatchers::KeywordsMatcher
Instance Attribute Summary
Attributes inherited from BaseMatcher
#args
Instance Method Summary
collapse
Methods inherited from BaseMatcher
#actual_params, #actual_search, #build_comparison_search, #compare_key, #compare_multi_value, #compare_single_value, #comparison_matcher_for_key, #comparison_params, #differences, #field, #filter_values, #initialize, #match?, #missing_param_error_message, #query_params_for_search, #search_tuple, #search_types, #unexpected_match_error_message, #wildcard?
Instance Method Details
#keys_to_compare ⇒ Object
198
199
200
|
# File 'lib/sunspot_matchers/matchers.rb', line 198
def keys_to_compare
[:q, :qf]
end
|
#search_method ⇒ Object
194
195
196
|
# File 'lib/sunspot_matchers/matchers.rb', line 194
def search_method
:keywords
end
|
#wildcard_matcher_for_keys ⇒ Object
202
203
204
|
# File 'lib/sunspot_matchers/matchers.rb', line 202
def wildcard_matcher_for_keys
{:q => /./, :qf => /./}
end
|