Great to hear! It's a shame it required the work-around, mind you… but at least it's working.
-- Pat On 29/08/2011, at 7:29 PM, Craig Paterson wrote: > Well, that seems to have done the trick - I must have missed it, I had > no idea you could specify the models like that. Thanks Pat, working > now :) > > On Sat, Aug 27, 2011 at 2:50 PM, Craig Paterson <[email protected]> wrote: >> Thanks Pat - will give that a bash and let you know >> >> On Sat, Aug 27, 2011 at 8:12 AM, Pat Allan <[email protected]> wrote: >>> Hi Craig >>> >>> This is a bit of a workaround, but can you try defining the indexed_models >>> array in your sphinx.yml for the staging environment, and list all models >>> that have an index? Something like this: >>> >>> indexed_models: >>> - Article >>> - Post >>> - User >>> >>> See if that helps matters. >>> >>> -- >>> Pat >>> >>> On 25/08/2011, at 5:38 PM, Craig Paterson wrote: >>> >>>> Hi Pat - apologies for my even slower response to your response :) >>>> Revisiting this issue now, I'd put it on the back-burner. Nothing >>>> special going on on my side, I am deploying via capistrano so I'm >>>> using a cap task to generate the config.. using shared/config folder >>>> and symlinking to the config from the "current" folder. I've tried >>>> moving the config around, ssh'ing in and generating it manually, >>>> everything I can think of, it just won't generate the index info in >>>> the staging configuration. As though it isn't finding the index >>>> definition in the model.. the config file for staging env looks like >>>> this (its generated using erb from within the cap task to use the >>>> right paths): >>>> >>>> staging: >>>> port: 9312 >>>> enable_star: 1 >>>> min_infix_len: 3 >>>> bin_path: /usr/local/bin >>>> searchd_file_path: /var/www/rails/appname/shared/db/sphinx >>>> query_log_file: /var/www/rails/appname/shared/log/searchd.query.log >>>> config_file: /var/www/rails/appname/shared/config/staging.sphinx.conf >>>> searchd_log_file: /var/www/rails/appname/shared/log/searchd.log >>>> pid_file: /var/www/rails/appname/shared/pids/searchd.production.pid >>>> >>>> On Sun, Aug 7, 2011 at 4:01 AM, Pat Allan <[email protected]> >>>> wrote: >>>>> Hi Craig >>>>> >>>>> Sorry for the slow response. This is definitely an odd issue - there's >>>>> nothing in TS that ties things to a hard-coded path... what's in your >>>>> sphinx.yml file? Are you doing anything particularly different for your >>>>> staging environment? What's the full command you're running to generate >>>>> the configuration file? >>>>> >>>>> -- >>>>> Pat >>>>> >>>>> On 05/08/2011, at 4:44 AM, Craig wrote: >>>>> >>>>>> Hi all, >>>>>> >>>>>> I've been hassling with a strange problem for a while now .. in my >>>>>> development environment my config generates perfectly, even if I force >>>>>> it to generate for staging configuration. On the actual staging >>>>>> environment though, no matter what I do, it doesn't seem to pick up >>>>>> the indexes. It generates the configuration without any indexes, only >>>>>> file and connection info. >>>>>> >>>>>> Is there something I'm missing? Is there a sphinx.yml option that >>>>>> gives it the path to force-load models or something? >>>>>> >>>>>> Craig >>>>>> >>>>>> -- >>>>>> 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. >>>>>> >>>>> >>>>> -- >>>>> 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. >>>>> >>>>> >>>> >>>> -- >>>> 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. >>>> >>> >>> -- >>> 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. >>> >>> >> > > -- > 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. > -- 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.
