Forum: Ferret Problems with Ferret 0.9.0

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Andreas S. (Guest)
on 2006-03-29 17:12
Hi,

I upgraded from 0.3.2 to 0.9.0, and now my old search code doesn't work
anymore. I get a lot of ArgumentErrors, for example:

  "query.add_clause(Search::BooleanClause.new(query_parser.parse(term),
Search::BooleanClause::Occur::MUST))"
  raises:
  ArgumentError (wrong number of arguments (2 for 0))

  "index_searcher.search_each(query)"
  raises:
  ArgumentError (wrong number of arguments (1 for 2))

These shouldn't happen according to the Api doc.

You can see the code here:
http://rforum.andreas-s.net/trac/file/trunk/app/mo...

Andreas
David B. (Guest)
on 2006-03-30 21:01
(Received via mailing list)
Hi Andreas,

Thanks for bringing this to my attention. I hadn't added
BooleanClauses yet. They'll be in the next version. In the mean time,
I recommend you use the BooleanQuery#add_query method.

Cheers,
Dave
This topic is locked and can not be replied to.