Application vs Model Searching

1 view
Skip to first unread message

Chris

unread,
Aug 24, 2010, 2:49:34 PM8/24/10
to Thinking Sphinx
When running an application-wide search via ThinkingSphinx.search
params[:query], a null set is returned. However, tailing the log
shows that Sphinx was able to find multiple records:

Sphinx (0.003270s) Found 14 results

If I run this same query by either restricting the classes on the
application-wide search to a single model, or run the traditional
Model.search method, the expected values are returned.

It appears that whatever code is trying to autoload the result set
returned from Sphinx is failing and thereby returning a null set, but
I'm not sure how to prove that or why such might occur. The two
models I am currently searching on are fairly dissimilar in structure,
but I've had this work on other applications.

Any thoughts?

Chris

unread,
Aug 25, 2010, 12:19:10 PM8/25/10
to Thinking Sphinx
Seems like a good night's sleep was all that was needed. After
turning off the laptop for the evening, everything worked without
problem this morning. Not sure if something got caught in some cache
somewhere, or if my multitude of changes to the search setup caused
some issues, but we're all good after a fresh restart...
Reply all
Reply to author
Forward
0 new messages