On Thu, Jan 04, 2007 at 12:25:17AM +0100, Scott Fortmann-roe wrote:
> >
> > could you try to reproduce this behaviour with a plain ruby script only
> > using Ferret directly? I think it's a problem related to Ferret itself.
> >
> > cheers,
> > Jens
> >
>
> I would be happy to but I am having a little bit of a hard time figuring
> out how to search the acts_as_ferret index using ferret by itself. Could
> you offer some guidance on this. (It seemed like ferret use to have a
> Search::IndexSearcher class that no longer exists, what do I use
> instead? The acts_as_ferret source is very convoluted)
require 'rubygems'
require 'ferret'
index = Ferret::I.new(:path => 'path/to/ferret/index/dir')
index.search('querystring here')
easiest is to do this in irb.
Jens
--
webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [EMAIL PROTECTED]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk