Conditions in Production

0 views
Skip to first unread message

zmbmartin

unread,
Jan 5, 2010, 3:02:40 PM1/5/10
to Thinking Sphinx
I am using @posts = Post.search(params[:search], :conditions =>
{ :status => 'Publish' }, :page => params[:page], :per_page =>
5, :order => 'created_at desc')

in development mode it works fine but in production I am getting no
results?

Not sure where to start

Pat Allan

unread,
Jan 5, 2010, 6:28:03 PM1/5/10
to thinkin...@googlegroups.com
I guess the first thing is: have you added the status field or created_at attribute recently? Have you reindexed and restarted Sphinx on your production server since those changes? And what does your define_index block look like?

Also: what version of TS are you using?

Cheers

--
Pat

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

Reply all
Reply to author
Forward
0 new messages