Displaying 2 results from an estimated 2 matches for "ferret_configur".
Did you mean:
ferret_config
2006 May 23
1
acts_as_ferret: dynamic index selection
Hi
What is the be practice regards setting the index path dynamically?
My application needs to switch indexes based on the logged in user, I
put the following before_filter into my controller (the
Document.index_dir method calculates the user''s index path):
before_filter { Document.ferret_configuration[:path] =
Document.index_dir }
It seems to work, the only rough edge is that the acts_as_ferret
declaration immediately creates a spurious index directory rather than
deferring until the index is actually accessed (and the index path
known), this also means the index directory is not automagi...
2006 Jul 21
3
segfaulting at rebiuild_index
....1.4 and ferret .9.4 and
aaf from svn) I get a segfault
./script/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:243:
[BUG] Segmentation fault
this line is where the indx is rebuilt.
"
def rebuild_index(*additional_models)
index =
Ferret::Index::Index.new(ferret_configuration.merge(:create => true))
"
I can get index = Ferret::Index::Index.new to run from the console.
But, If i try the above from a model, Employee.rebuild_index, it
segfaults.
a fresh check out from the same svn repo on my laptop works fine. it
still segaults after chmod 777 index/ -R...