Method: XTF::Result::Element::Base#query_with_all_snippets
- Defined in:
- lib/xtf/result/element/base.rb
#query_with_all_snippets ⇒ Object
Converts maxSnippets to a value of -1 (all), so that proper hit counts are shown in the XTF-rendered document. An instance variable is lazily loaded.
21 22 23 |
# File 'lib/xtf/result/element/base.rb', line 21 def query_with_all_snippets self.query.gsub(/maxSnippets=("|')\d+("|')/, %Q{maxSnippets="-1"}) end |