Ferret with relative index paths


#1

Hi,

I have ferret working fine on my Dev machine using a relative index
path as follows:

USER_INDEX = Index::Index.new(:path => “indexes/user”, :key => ‘id’,
:auto_flush => true)

And the indexes/user directory is located directly off the root of my
project tree.

But when I migrate this same code to my shared TextDrive account,
Ferret cannot find the index directory and throws this exception:

/usr/local/lib/ruby/gems/1.8/gems/ferret-0.3.2/lib/ferret/store/fs_store.rb:41:in
`initialize’: There is no directory: indexes/user. Use create = true
to create one (RuntimeError)

Do I have to use absolute paths? Or is it perhaps looking somewhere
else for the root of its relative paths in different environments?

Thanks,
Tom