Hi,
I'm using (thinking) sphinx. The application in Pat Allan's peepcode
works fine. But trying to use it in my app, I'm getting the following
in my log:

---------------------------------------
Sphinx: a
Sphinx Result: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  [4;36;1mDocument Load (1.0ms) [0m    [0;1mSELECT * FROM `documents`
WHERE (`documents`.`id` IN( 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ))  [0m

NoMethodError (You have a nil object when you didn't expect it!
The error occurred while evaluating nil.text_portion):
--------------------------------------

As you can see, sphinx is returning an array of id's equal to 0, so TS
just gets nil objects back from the database. The number of results
the search is finding seems reasonable though: searching for less
common words will return [0] or [0, 0], etc. I've reindexed, and the
problem remained.

On the other hand, in the log for the peepcode app, which is working,
I get nice arrays like [2, 5, 61] being returned by Sphinx.

Any suggestions?

- farmer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to