search for: build_query

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

2010 Jun 03
3
issue submitting a form
...e="next" value="/blog/">:Nokogiri::XML::Element (NoMethodError) from /Users/lukastolyarov/.gem/ruby/1.8/gems/mechanize-1.0.0/lib/mechanize/form.rb:171:in `sort'' from /Users/lukastolyarov/.gem/ruby/1.8/gems/mechanize-1.0.0/lib/mechanize/form.rb:171:in `build_query'' from /Users/lukastolyarov/.gem/ruby/1.8/gems/mechanize-1.0.0/lib/mechanize/form.rb:221:in `request_data'' from /Users/lukastolyarov/.gem/ruby/1.8/gems/mechanize-1.0.0/lib/mechanize.rb:452:in `post_form'' from /Users/lukastolyarov/.gem/ruby/1.8/gems/...
2008 May 09
1
Searcher Explain
...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! -Jame...