Ok. When I bin/riak attach and run the search:search_doc it works. How to I do a search as a "client" or outside the riak app?
Thanks, Wes On Tue, Apr 3, 2012 at 3:55 PM, Wes James <compte...@gmail.com> wrote: > I can get results with: > > bin/search-cmd search mybucket "field:some-text" > > but if I run erl like this: > > erl -name riaktest@127.0.0.1 -setcookie riak -pa lib/*/ebin > > then run: > > search:search_doc(<<"mybucket">>,<<"field:some-text">>). > > I get the error: > > ** exception error: bad argument > in function ets:lookup/2 > called as ets:lookup(schema_table,<<"mybucket">>) > in call from riak_search_config:get_schema/1 > in call from riak_search_client:parse_query/3 > in call from search:search_doc/3 > > Any idea why? > > Thanks, > > Wes _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com