# File lib/thinking_sphinx/search.rb, line 302 def excerpt_for(string, model = nil) if model.nil? && one_class model ||= one_class end populate client.excerpts( { :docs => [string.to_s], :words => results[:words].keys.join(' '), :index => options[:index] || "#{model.source_of_sphinx_index.sphinx_name}_core" }.merge(options[:excerpt_options] || {}) ).first end