Hi,

I am unable to use the Searcher's explain method.  Anytime I call it, I get
Segmentation Faults and it kills the process I have running my Rails site.
Has anyone else had this problem?  Here is some code I am trying to use it
in...

search = Search.create(:query => query)

@quotations = []

searcher = Ferret::Search::Searcher.new("index")  # FerretConfig::INDEX

bq = self.build_query(query)  # Builds a Boolean Query

searcher.search_each(bq) {|doc, score|
  @quotations << SearchResult.new(searcher[doc][:id],
searcher[doc][:quotation], searcher[doc][:author], score)
}

p searcher.explain(bq, @quotations[0].id).to_s

searcher.close




Thanks in advance for any help!

-James
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to