riak-erlang-client, riak HTTP API, riak search

Brisa Anahi Jimenez Flores brisa.jimenez.f at gmail.com
Thu May 8 16:14:25 EDT 2014


Hi everybody!

I'm using riakc, branch 1.4 and riak-1.4.7.

I want to save buckets through riak-erlang-client.

If I save a bucket through HTTP API, I get search results (search-cmd and solr interface), but, If I save through riak-erlang-client, I don't have any results.

I tried to save the same bucket/key/value through HTTP API and riak-erlang-client, but the same thing happens.

==
HTTP API

http://127.0.0.1:10018/riak/events/101
POST
Content-Type: application/json
{"name":"Alejandra","lastname":"Estrada", "age":25}

riakq:get_value(Pid, <<"events">>, <<"101">>).
<<"{\"name\":\"Alejandra\",\"lastname\":\"Estrada\", \"age\":25}">>

==

riak-erlang-client

riakq:create(Pid, <<"events">>, <<"102">>, list_to_binary("{\"name\":\"Alejandra\",\"lastname\":\"Estrada\", \"age\":25}")).

riakq:get_value(Pid, <<"events">>, <<"102">>).
<<"{\"name\":\"Alejandra\",\"lastname\":\"Estrada\", \"age\":25}">>

==

Is there an extra step done by HTTP API, or Am I missing something?

==

Extra questions:
How many time we are talking about for the riak 2.0.0 release? Just curious! :)

Thank you very much!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140508/5b05cac9/attachment.html>


More information about the riak-users mailing list