works on cli but not in erl vm

Wes James comptekki at gmail.com
Tue Apr 3 17:55:52 EDT 2012


I can get results with:

bin/search-cmd search mybucket "field:some-text"

but if I run erl like this:

erl -name riaktest at 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




More information about the riak-users mailing list