Method: Sunspot::DSL::Fulltext#phrase_slop
- Defined in:
- lib/sunspot/dsl/fulltext.rb
#phrase_slop(slop) ⇒ Object
The maximum number of words that can appear between search terms for a field to qualify for phrase field boost. See #query_phrase_slop for examples. Phrase slop is only meaningful if phrase fields are specified (see #phrase_fields), and it does not have an effect on which results are returned; only on what their respective boosts are.
136 137 138 |
# File 'lib/sunspot/dsl/fulltext.rb', line 136 def phrase_slop(slop) @query.phrase_slop = slop end |