Following up: the search results controller is as follows:

```
class ResultsController < ApplicationController
  def index
    @results = []
    if params[:q].present?
      @results = 
ThinkingSphinx.search(ThinkingSphinx::Query.escape(params[:q].to_s), :excerpts 
=> {
        # :limit    => 1000,
        :around     => 40,
        :force_all_words => true,
        :chunk_separator => ' &#8230; '
        }, page: params[:page])
      @results.context[:panes] << ThinkingSphinx::Panes::ExcerptsPane
    end
  end
end

```

This is virtually unchanged for years.

Walter

> On Aug 2, 2022, at 4:00 PM, Walter Lee Davis <[email protected]> wrote:
> 
> I am using ThinkingSphinx latest, with Manticore fairly recent, and an 
> upgraded Rails 7 application. If the details matter a lot, I can dig in and 
> find them. But I have discovered an odd edge case. When the user enters a 
> search string that ends with a ? (which gets properly encoded in the form 
> submission as %3F), the search returns no results. When that character is 
> stripped off, I get lots of results.
> 
> There are no errors in Rails logging related to this, both return a 200. The 
> no results shows my regular "no results" page, and there is no further detail 
> from the search engine (although I do not know off-hand where to tail its 
> logs).
> 
> Please let me know if there is anything I can do of a debugging nature to 
> make this easier to diagnose. This site has been running for a very long 
> time, and only recently upgraded to the latest version of TS along with the 
> Rails 7 upgrade. No further changes were made to the site beyond the 
> modernization of the configuration etc. as outlined in the Wiki.
> 
> Thanks in advance,
> 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/thinking-sphinx/73E33C92-C658-46E2-826F-1EEE831617E7%40wdstudio.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/thinking-sphinx/D988AA4A-EE80-4998-B908-325B0C3D945C%40wdstudio.com.

Reply via email to