Hi, I am looking for solution to work with ferret without DRB. I would like to turn off ferret indexing from application and use existing ferret index only for searching (read only), while I would create indexes once a day from script. Is it possible and how to turn indexing off and would ferret still complain if 2 mongrels try to open index file. thanks, Bojan -- Posted via http://www.ruby-forum.com/.
Hey .. are you talking about ferret, or acts_as_ferret? its no problem with ferret, with acts_as_ferret, there is a flag on your model, see Model.enable_ferret and Model.disable_ferret Not sure if you can still search, but i guess that might be possible, as this might only disable the after_save hooks .. give it a try :) Ben On 2007-09-07, at 11:59 AM, Bojan Mihelac wrote:> Hi, > I am looking for solution to work with ferret without DRB. I would > like > to turn off ferret indexing from application and use existing ferret > index only for searching (read only), while I would create indexes > once > a day from script. Is it possible and how to turn indexing off and > would > ferret still complain if 2 mongrels try to open index file. > > thanks, > Bojan > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk
Benjamin Krause wrote:> Hey .. > > are you talking about ferret, or acts_as_ferret? > > its no problem with ferret, with acts_as_ferret, there is a flag on > your model, see > > Model.enable_ferret and Model.disable_ferret > > Not sure if you can still search, but i guess that might be possible, > as this might only disable the after_save hooks .. give it a try :) > > BenHi Benjamin, I was thinking about disabling ferret from acts_as_ferret. It does help to Model.disable_ferret (in environment.rb if anyone is interested) and it is possible to search. Thank you! Bojan -- Posted via http://www.ruby-forum.com/.