Riak shuts down itself after couple of minutes

2015-08-07 Thread
I am running it on a single node. Using Erlang riak client. I added a map bucket type, create a new index, set the index on a bucket, saved a few map data into the bucket. Then I did some search. All good. Then I can remember I tried a invalid search query like "title_s_register:[New movie one]

How to create a flag type (context_required) using riak-erlang-client/riakc_flag

2015-08-06 Thread
When I try this in Erlang:(saving a new Map object to a bucket through ) Map = riakc_map:new(), Map1 = riakc_map:update({<<"published_b">>, flag}, fun(F) -> riakc_flag:disable(F) end, Map); I got context_required. How could I create a false flag? I tried ena