Displaying 1 result from an estimated 1 matches for "ferret_path".
2006 Sep 26
3
concurrency / #search_each problem / segfault
...|
doc = index[doc_id]
..
end
and writing via
Article.ferret_index << self.to_doc
where Article.ferret_index is implemented as in ''act_as_ferret'':
@@ferret_index = nil
def Article::ferret_index
@@ferret_index ||= Ferret::Index::Index.new( :path => ferret_path,
:auto_flush => true, :create_if_missing => false )
end
The 2 errors I got (when I do "doc = index[doc_id]") were :
ArgumentError (:12250 is out of range [0..12243] for IndexWriter#[]):
/usr/lib/ruby/gems/1.8/gems/ferret-0.10.8/lib/ferret/index.rb:382:in
`[]''
/...