search for: sub_readers

Displaying 2 results from an estimated 2 matches for "sub_readers".

2006 May 10
1
acts_as_ferret choking
...s/ferret-0.9.1/lib/ferret/index/ > index.rb:258:in `<<'' > /Users/sk/Documents/svn/cms/branches/nodes/vendor/plugins/ > acts_as_ferret/lib/acts_as_ferret.rb:407:in `ferret_update'' > (...) The problem seems to be caused by the following code in acts_as_ferret: @sub_readers.each { |r| return false unless r.latest? } which, in turn, causes a NoMethodError because @segment_infos is nil. The problem (or, at least, the symptom) goes away when I add a rescue clause inside the block that gets passed to @sub_readers.each, but it feels like a bad way of solving it. Any...
2006 May 05
1
Is there any working way to search multiple indexes?
...nt pass any fields to the QueryParser qp.fields = ["title"] NoMethodError: undefined method `fields='' for #<Ferret::QueryParser:0x407db070> So I tried using the MultiReader, like acts_as_ferret does, but it won''t take any arguments @reader = Index::MultiReader.new(sub_readers) ArgumentError: wrong number of arguments (1 for 0) Is everything I''m trying to do unimplemented in the c version, or am I just overlooking something obvious? thanks, joshua -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fer...