Seems like data saved with json or xml content type headers is indexed to serch 
by field, and the rest will be search by value.

Thanks!

On May 8, 2014, at 3:14 PM, Brisa Anahi Jimenez Flores 
<brisa.jimene...@gmail.com> wrote:

> 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!
> 
> 

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to