How to use erlang riak client with Riak Search?

Artem Golovinsky artemgolovinsky at gmail.com
Sun Aug 7 16:15:30 EDT 2011


Hi,

I try to make request to Riak Search, but I get error bad_mapred_inputs.

Some examles:

(slinode at 127.0.0.1)32> {ok,Pid} = riakc_pb_socket:start_link('127.0.0.1',
8087).
(slinode at 127.0.0.1)32> riakc_pb_socket:search(Pid,
<<"sl">>,"got:[00000000000 TO 9000000000]").
{error,<<"bad_mapred_inputs">>}
(slinode at 127.0.0.1)33> riakc_pb_socket:search(Pid, <<"sl">>,"short:cKCAn5").
{error,<<"bad_mapred_inputs">>}

This queries are valid and work through Solr interface:
http://localhost:8098/solr/sl/select?q=got:[00000000000 TO 90000000000]
<result>
and
http://localhost:8098/solr/sl/select?q=<http://localhost:8098/solr/sl/select?q=got:[00000000000%20TO%2090000000000]>
short:cKCAn5
<result>

Could you please describe format of third parameter(query)
for riakc_pb_socket:search/2?


-- 
Best regards,
Artem Golovinsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110808/76eca7ee/attachment.html>


More information about the riak-users mailing list