It worked fine on my local machine in my production environment. On my
local machine, I did the following:
1. edited sphinx.yml file to:

development:
    bin_path: /usr/local/bin

production:
  bin_path: '/usr/local/bin'
  port: 13003

2. "rake db:index RAILS_ENV=production"
3. "rake db:start RAILS_ENV=production"
3. "rails c production". In the console, I got the expected results:
"Movie.search(:with => {:author_ids => 6}, :per_page => 1000).count"
returned 25





On Nov 8, 7:03 pm, Pat Allan <[email protected]> wrote:
> Given it works locally in dev, and you've got the same dataset there - can 
> you try it locally with the production env?
>
> --
> Pat
>
> On 09/11/2011, at 9:57 AM, alex wrote:
>
>
>
>
>
>
>
> > yes, other facets work fine (for instance, I have a "category" facet,
> > and I can filter by category in my movies search result -while author
> > filters do not appear-, and I have a view showing the movies per
> > category with a code similar to the one showing the movies by a given
> > author, that also work fine).
>
> > Here is the production output when I do "cap ts:index":
>
> > alex@machine:~/Sites/xxx:ruby-1.9.2@global: (master)$ cap ts:index
> >  * executing `ts:index'
> >  * executing "ls -x /home/web-app/www/releases"
> >    servers: ["xxx.com"]
> >    [xxx.com] executing command
> >    command finished in 875ms
> >  * executing "cd /home/web-app/www/releases/20111105041417 && bundle
> > exec rake ts:index RAILS_ENV=production"
> >    servers: ["xxx.com"]
> >    [xxx.com] executing command
> > ** [out :: xxx.com] Generating Configuration to /home/web-app/www/
> > releases/20111105041417/config/production.sphinx.conf
> > ** [out :: xxx.com]
> > ** [out :: xxx.com] Sphinx 0.9.8.1-release (r1533)
> > ** [out :: xxx.com] Copyright (c) 2001-2008, Andrew Aksyonoff
> > ** [out :: xxx.com]
> > ** [out :: xxx.com] using config file '/home/web-app/www/releases/
> > 20111105041417/config/production.sphinx.conf'...
> > ** [out :: xxx.com] indexing index 'movie_core'...
> > ** [out :: xxx.com] collected 1000 docs, 0.9 MB
> > ** [out :: xxx.com] collected 2000 docs, 1.9 MB
> > ** [out :: xxx.com] collected 2895 docs, 2.2 MB
> > ** [out :: xxx.com] collected 0 attr values
> > ** [out :: xxx.com] sorted 0.0 Mvalues, 100.0% done
> > ** [out :: xxx.com] sorted 0.0 Mvalues, 100.0% done
> > ** [out :: xxx.com] sorted 0.3 Mhits, 100.0% done
> > ** [out :: xxx.com] total 2895 docs, 2219208 bytes
> > ** [out :: xxx.com] total 3.212 sec, 690872.00 bytes/sec, 901.26 docs/
> > sec
> > ** [out :: xxx.com] indexing index 'movie_delta'...
> > ** [out :: xxx.com] collected 0 docs, 0.0 MB
> > ** [out :: xxx.com] collected 0 attr values
> > ** [out :: xxx.com] sorted 0.0 Mvalues, nan% done
> > ** [out :: xxx.com] sorted 0.0 Mvalues, nan% done
> > ** [out :: xxx.com] total 0 docs, 0 bytes
> > ** [out :: xxx.com] total 0.016 sec, 0.00 bytes/sec, 0.00 docs/sec
> > ** [out :: xxx.com] distributed index 'movie' can not be directly
> > indexed; skipping.
> >    command finished in 35429ms
>
> > --
> > 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 
> > athttp://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.

Reply via email to