Sorry for asking so many questions recently. Just wondered. I originally had acts_as_ferret in my model and I performed a few searches. I then decided to change this line to acts_as_ferret :fields => [ ?name? ] However when I perform searches it is still listing results with queries contained in fields other than the ''name'' field. How do i fix this? -- Posted via http://www.ruby-forum.com/.
Run Model.rebuild_index On 9/4/06, Richard <angrypirana at googlemail.com> wrote:> Sorry for asking so many questions recently. > > Just wondered. I originally had acts_as_ferret in my model and I > performed a few searches. I then decided to change this line to > acts_as_ferret :fields => [ ''name'' ] > > However when I perform searches it is still listing results with queries > contained in fields other than the ''name'' field. How do i fix this? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk
Cuong Tran wrote:> Run Model.rebuild_indexHow do I initiate this command? More info please or just a link to where it tells you this stuff. -- Posted via http://www.ruby-forum.com/.
On 9/5/06, Richard <angrypirana at googlemail.com> wrote:> Cuong Tran wrote: > > Run Model.rebuild_index > > How do I initiate this command? More info please or just a link to where > it tells you this stuff.Hi Richard, You could have an action that calls the command. Or you could call it from the console. I hope that helps. This is more of a Rails question than a Ferret question. Cheers, Dave
David Balmain wrote:> On 9/5/06, Richard <angrypirana at googlemail.com> wrote: >> Cuong Tran wrote: >> > Run Model.rebuild_index >> >> How do I initiate this command? More info please or just a link to where >> it tells you this stuff. > > Hi Richard, > > You could have an action that calls the command. Or you could call it > from the console. I hope that helps. This is more of a Rails question > than a Ferret question. > > Cheers, > DaveThanks Dave and Cuong what you said worked perfectly. -- Posted via http://www.ruby-forum.com/.