I have a properly configured and functioning development environment
configured with the latest Ruby Enterprise, Passenger, Thinking
Sphinx, Sphinx, etc. Everything works fine.

I have deployed to production. All software installs went well,
migrations applied, etc.

I am able to successfully run searchd against a newly created index
built using the rake tasks. I can use console to search my model
successfully. HOWEVER, when access the application I am getting nil
results returned to the views causing all sorts of exceptions.

Here's the sphinx.yml -

production:
    enable_star: 1
    min_prefix_length: 3
    min_infix_length: 4
    morphology: stem_en
    config_file: /home/www/biznik.com/shared/config/
production.sphinx.conf
    searchd_file_path: /home/www/biznik.com/shared/db/sphinx/
production
    searchd_log_file: /home/www/biznik.com/shared/log/searchd.log
    query_log_file: /home/www/biznik.com/shared/log/searchd.query.log
    pid_file: /home/www/biznik.com/shared/pids/searchd.production.pid
    bin_path: /usr/local/bin

Samples from the searchd log file look like the service is not being
hit when the model is searched from the production app:

[Thu Jul 30 08:13:52.829 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:14:39.027 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:17:31.074 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:18:03.899 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:18:09.384 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:18:40.661 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:19:11.654 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:20:35.390 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:20:38.376 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:20:50.652 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:21:00.504 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:21:04.625 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:21:33.066 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:22:30.614 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:22:45.863 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]
[Thu Jul 30 08:23:30.611 2009] 0.000 sec [scan/2/rel 1 (0,20)]
[member_core]

The db paths are properly symlinked to the current app/db directory.
The searchd location is referenced in the sphinx.yml file for delta
indexing. I have configured delayed deltas and do see the entries
being made in the delayed_jobs table. They are properly processed when
the rake task runs.

I've been searching all night for pointers without luck. Any
assistance would be greatly appreciated.

--~--~---------~--~----~------------~-------~--~----~
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