works on cli but not in erl vm

Wes James comptekki at gmail.com
Tue Apr 3 18:22:01 EDT 2012


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 <comptekki at 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 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