Sylvain, `require 'riak/search'` will solve your issue. It's not uncommon in Ruby to reopen classes to add or change functionality, which is what that file does -- adding support for the :solr configuration option as well as the other features. On git master (which will become 1.0), search support is fully merged and not added through reopening the class.
On Sun, Jun 26, 2011 at 11:01 PM, Sylvain Niles <[email protected]>wrote: > The example from the wiki for setting up an endpoint doesn't work: > > client = Riak::Client.new :solr => "/solr" > ArgumentError: Invalid configuration options given. > from > /Library/Ruby/Gems/1.8/gems/riak-client-0.9.5/lib/riak/client.rb:98:in > `initialize' > from (irb):14:in `new' > from (irb):14 > > Looking at the code in the gem I see client.rb has no search > functionality at all, nor does map_reduce.rb. search.rb looks like an > alternative version of client.rb with all the search functionality but > I don't see how it's used. > > Additionally all my .search mapreduce inputs no longer work. Is there > any documentation on how it has changed in 0.9.5? I didn't see > anything in the readme for 0.9.5 talking about this either > > Thanks > Sylvain > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > -- Sean Cribbs <[email protected]> Developer Advocate Basho Technologies, Inc. http://www.basho.com/
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
