I had a working Rails 3.0 site with TS 2.0.10 that used the following 
controller method to gather cross-model results:

  def results
    @results = ThinkingSphinx.search Riddle.escape(params[:q].to_s),
    :page => params[:page],
    :match_mode => :phrase,
    :order => 'class_crc ASC, @relevance DESC',
    :excerpt_options => {
      :exact_phrase => true,
      :limit    => 2000,
      :around     => 20,
      :force_all_words => true,
      :chunk_separator => '</li><li>'
    }.reject{ |r| r.class.to_s == 'NilClass' }
    @hits = @results.total_entries rescue 0
  end


In my current Rails 4.1 iteration of this application, I was not able to get 
the exact_phrase and show_all_words keys to work at all. My controller has 
those commented out, so the search results work, but are greedier than I'd like 
them to be.

Is there anything new in this area that I have missed from your otherwise great 
upgrade guide?

Thanks, 

Walter

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to