Hello Riak Users, After a failed attempt to 'put' an object witk riakc_pb_socket api, into a bucket enabled for indexing and the retrying the same operation with erlang http client I get the following error.
It seems to me that this error does not even suppose to appear here.
webmachine error: path="/riak/noi/0000159876/"
{error,{error,badarg,
[{erlang,iolist_to_binary,[{error,missing_field,<<"value">>}]},
{wrq,append_to_response_body,2},
{riak_kv_wm_raw,accept_doc_body,2},
{webmachine_resource,resource_call,3},
{webmachine_resource,do,3},
{webmachine_decision_core,resource_call,1},
{webmachine_decision_core,accept_helper,0},
{webmachine_decision_core,decision,1}]}}
The schema I am working with lokks like:
{
schema,
[
{version, "1.1"},
{default_field, "index"},
{default_op, "or"},
{n_val, 3},
{analyzer_factory, "com.basho.search.analysis.DefaultAnalyzerFactory"}
],
[
{field, [{name, "index"},{type, string}]},
{field, [{name, "period"},{type, integer}]},
{field, [{name, "request_date"},{type, string}]},
{field, [{name, "comment"},{type, string}]},
{field, [{name, "operator"},{type, string}]},
{field, [{name, "last_update"},{type, string}]},
{field, [{name, "worker_name"},{type, string}]},
{field, [{name, "worker_street1"},{type, string}]},
{field, [{name, "worker_street2"},{type, string}]},
{field, [{name, "worker_street3"},{type, string}]},
{field, [{name, "worker_city"},{type, string}]},
{field, [{name, "worker_sp"},{type, string}]},
{field, [{name, "worker_pc"},{type, string}]},
{field, [{name, "worker_cc"},{type, string}]},
{field, [{name, "worker_phone"},{type, string}]},
{field, [{name, "worker_fax"},{type, string}]},
{field, [{name, "worker_email"},{type, string}]}
}.
A working document would look like:
[{"index",<<"0000314871">>},
{"period",1},
{"request_date",<<"2011-01-05 15:06:41">>},
{"comment",<<>>},
{"operator",<<"requests_new">>},
{"last_update",<<"2011-01-05 15:06:41">>},
{"worker",
{struct,[{"name",<<ILEANA>>},
{"street1",<<"Str. Muzeul Zambaccian 22B, Ap.1, Sector 1">>},
{"street2",<<>>},
{"street3",<<>>},
{"city",<<"Bucuresti">>},
{"sp",<<>>},
{"pc",<<>>},
{"cc",<<"RO">>},
{"phone",<<"+40.723454529">>},
{"fax",<<>>},
{"email",<<"[email protected]">>}]}}]
and I am using riak_search-0.13
Best Wishes,
Bogdan
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
