Hi!

On Tue, Aug 29, 2006 at 07:03:41AM +0200, Raj Singh wrote:
> Hi Jan,
> 
> Thanks for the detailed explanation. I myself tried to install ferret on 
> windows. After going through a lot of hoops I gave up. I hit the dead 
> end after a lot of work.

seems to be easier to switch your working env to Linux or OS/X than
getting Ferret to build on Windows ;-)

> I used aaf and everything works like a charm.
> 
> Since the only thing I did was to add a line stating 'acts_as_ferret', I 
> believe the indexing is being done on the memory. In order to get the 
> indexing on the hard drive I need to do something like
> 
> index = Index::Index.new(:path => '/path/to/index')
> 
> When I'm using aaf where do I specify this path. How do I tell aaf to 
> keep all the indexed information at a particular path rather than 
> keeping it in memory.

aaf does store the index in the filesystem. The default path for doing
so is RAILS_ROOT/index/<environment>/class_name. So if your class is
named Article and you're in development mode, the index will be stored
in RAILS_ROOT/index/development/article/.

If you like, you can specify another index directory with the index_dir
option:

class Article
  acts_as_ferret :index_dir => "#{RAILS_ROOT}/shared/index/article"
  [..]
end

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

Reply via email to