On Thu, Jun 14, 2007 at 06:35:12PM +0200, Mattias Bud wrote:
> Mattias Bud wrote:
> > Jens Kraemer wrote:
> >> On Fri, Jun 08, 2007 at 01:41:34PM +0200, Mattias Bud wrote:
> >>>
> >>> No - local index.
> >>
> >> is this in development mode with 1 mongrel instance? if yes, make sure
> >> your Mongrel doesn't do index updates while you run rebuild_index from
> >> the console. Even better, run these tests without mongrel running, or in
> >> another RAILS_ENV.
> >>
> >> With multiple mongrels, use the DRb server.
> >>
> >> Jens
> >
> > I turned of mongrel and rebuilt - and it worked.
> >
> > Thanks for the help
>
> When moving this to the production server it fails again. Here i have
> the same vesion of the gem and plug-in. The server runs lighttpd and
> fast-cgi. i can't re-index this class if it has :index => :no. if I
> remove this from the :fields it works again.
>
> Looks like this
> acts_as_ferret({:store_class_name => true,
> :fields => { :title => {},
> :date_comment_index => {:index => :no}
> }
> }, { :analyzer =>
> Ferret::Analysis::StandardAnalyzer.new([]) })
>
> As I said, if i remove :index => :no it works.
>
> Is the solution to change to DRb?
At least you should give it a try. However I cannot imaging how having a
field indexed or not should influence rebuilding.
Jens
--
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk