How to design schema for record search.

2014-08-31 Thread Yang Zhenguo
Hi all, I have a question on record search. First, the value of my bucket is record. #solution{ user_id = LoginId, problem_id = ProblemId, language = Language }. Secondly, got riakc_obj RSolution = riakc_obj:new(SolutionBucket, SolutionKey, Solution) Finally, riakc_pb_s

Re: Can not list search_index after creating it succeed

2014-08-31 Thread Yang Zhenguo
Hi Eric, Thank you for your quick response. It works now. Regards, Zhenguo 2014-09-01 1:47 GMT+08:00 Eric Redmond : > Creating a search schema is non blocking, meaning that it will return ok > as it continues to process and propagate the schema on the backend. > Attempting to bind an index t

Re: Can not list search_index after creating it succeed

2014-08-31 Thread Eric Redmond
Creating a search schema is non blocking, meaning that it will return ok as it continues to process and propagate the schema on the backend. Attempting to bind an index to a custom schema is generally because 1) the schema failed to create (you can check out the solr.log or error.log for details

Can not list search_index after creating it succeed

2014-08-31 Thread Yang Zhenguo
Hi all, I encounter a problem on search index. 1. riakc_pb_socket:create_search_schema(Pid, <<"solutions">>, SchemaData). ok 2. riakc_pb_socket:create_search_index(Pid, <<"sln_index">>, <<"solutions">>, []). ok 3. riakc_pb_socket:list_search_indexes(Pid1). {ok,[]} However, if I create search ind

Re: Riak crash after starting

2014-08-31 Thread Yang Zhenguo
Hi Steve, Thanks a lot. Regards, Zhenguo @ www.prinbit.com 2014-08-31 21:32 GMT+08:00 Steve Vinoski : > > > > On Sun, Aug 31, 2014 at 5:26 AM, Yang Zhenguo > wrote: > >> My steps are as follows: >> 1. sudo riak start >> 2. run erl evn >> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 80

Re: Riak crash after starting

2014-08-31 Thread Steve Vinoski
On Sun, Aug 31, 2014 at 5:26 AM, Yang Zhenguo wrote: > My steps are as follows: > 1. sudo riak start > 2. run erl evn > {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087). > riakc_pb_socket:list_buckets(Pid). > > After about 30 seconds, the riak will stop(crash) > > Riak version is 2.0. A

Riak crash after starting

2014-08-31 Thread Yang Zhenguo
My steps are as follows: 1. sudo riak start 2. run erl evn {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087). riakc_pb_socket:list_buckets(Pid). After about 30 seconds, the riak will stop(crash) Riak version is 2.0. Atached part of log. BTW, I have another web server cowboy running for h