anrake
2006-Oct-09 01:38 UTC
[Ferret-talk] AaF not indexing models when no index present in multi_searc
The first time I tried to run a multi_search, I got an error and discovered there were no indexes for any of the models. index > model folders were there but no actual indexes. I couldn''t figure out how to get it to create indexes so I edited a record for each model which created all the indexes. Then when I ran the search, everything worked well. Is there a bug related to this somewhere or anyway to better force index creation when none exists. I''m running the newest version (but not trunk) of each Ferret and acts_as_ferret -- Posted via http://www.ruby-forum.com/.
Jens Kraemer
2006-Oct-09 16:38 UTC
[Ferret-talk] AaF not indexing models when no index present in multi_searc
On Mon, Oct 09, 2006 at 03:38:52AM +0200, anrake wrote:> The first time I tried to run a multi_search, I got an error and > discovered there were no indexes for any of the models. index > model > folders were there but no actual indexes. I couldn''t figure out how to > get it to create indexes so I edited a record for each model which > created all the indexes. Then when I ran the search, everything worked > well.calling Model.find_by_contents(''some query'') on each model would have been sufficient, this method does rebuild the index if it doesn''t exist yet.> Is there a bug related to this somewhere or anyway to better force index > creation when none exists. I''m running the newest version (but not > trunk) of each Ferret and acts_as_ferretThis is a known issue (there''s a #todo in the code somewhere...). I opened up a ticket for this one. Hope to get it fixed soon ;-) cheers, Jens -- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
anrake
2006-Oct-10 11:26 UTC
[Ferret-talk] AaF not indexing models when no index present in multi_s
Thanks for that. It''s nice to know it''s not because I messed up something. Everything works fine for now. Thanks for the great plugin and for taking the time to answer so many questions on this forum. They''ve been a big help ironing out other issues too. Jens Kraemer wrote:> On Mon, Oct 09, 2006 at 03:38:52AM +0200, anrake wrote: >> The first time I tried to run a multi_search, I got an error and >> discovered there were no indexes for any of the models. index > model >> folders were there but no actual indexes. I couldn''t figure out how to >> get it to create indexes so I edited a record for each model which >> created all the indexes. Then when I ran the search, everything worked >> well. > > calling Model.find_by_contents(''some query'') on each model would have > been sufficient, this method does rebuild the index if it doesn''t exist > yet. > >> Is there a bug related to this somewhere or anyway to better force index >> creation when none exists. I''m running the newest version (but not >> trunk) of each Ferret and acts_as_ferret > > This is a known issue (there''s a #todo in the code somewhere...). I > opened up a ticket for this one. Hope to get it fixed soon ;-) > > > cheers, > Jens > > > -- > webit! Gesellschaft f?r neue Medien mbH www.webit.de > Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de > Schnorrstra?e 76 Tel +49 351 46766 0 > D-01069 Dresden Fax +49 351 46766 66-- Posted via http://www.ruby-forum.com/.