Hi Pat,
Thanks for the response -- so this is really weird: I have the same
ruby/rails code running on dev and production right now, but my dev
box is OS X and production is CentOS. I even have the same source of
Sphinx (Sphinx 0.9.9-rc2 (r1785)) compiled on both...
The following query causes my production machine to raise the no
method exception (due to my total_pages call) but works just fine on
my dev box: "Would it be funny to see ZA NEWS tv commercials on SABC
(when they were not going to run the show)?" As I put in the gist, I
first escape that query, split it, and join it with ORs: query.gsub
(Riddle.escape_pattern, ' ').split(/\s+/).join(' | '). This gives me
the following raw query for sphinx: 'Would | it | be | funny | to |
see | ZA | NEWS | tv | commercials | on | SABC | when | they | were |
not | going | to | run | the | show | ?' (I do this so that the query
is run as a pure BM25 search -- I want the rare words to rank higher,
regardless of phrase construction).
Any thoughts on how to figure out what is causing the Sphinx error?
As for TS, I think I'll just rescue until the patch fixes the
total_pages issue...
Thanks again,
Aaron