Re: Schema (indexed=false, stored=true)

2014-12-04 Thread Yang Zhenguo
; More information is available in the documentation: > > http://docs.basho.com/riak/latest/dev/advanced/search-schema/ > > -- > Luke Bakken > Engineer / CSE > lbak...@basho.com > > > On Tue, Dec 2, 2014 at 10:25 PM, Yang Zhenguo > wrote: > > Can anyone help me on th

Re: Schema (indexed=false, stored=true)

2014-12-02 Thread Yang Zhenguo
Can anyone help me on this question? I dont know why does default schema contain such kind of field. Thanks in advance Regards, Zhenguo 2014-12-01 20:14 GMT+08:00 Yang Zhenguo : > Hi, > > I have a question on the schema, and the requirements are as follows: > 1. Seach with pagin

How to do page search sorting by given field

2014-12-01 Thread Yang Zhenguo
Hi, I have a problem on page search. Since the search results are huge, I have to do pagination. And I wish the results are sorted by given field. Is it supported by riak? Thanks in advance Thanks & Regards, -- Zhenguo Yang www.prinbit.com ___ riak-

Schema (indexed=false, stored=true)

2014-12-01 Thread Yang Zhenguo
Hi, I have a question on the schema, and the requirements are as follows: 1. Seach with pagination 2. I don't want some fields to be indexed (I would not use these fields for searching), but they should be stored, since the fields should be returned in results. I looked up the default and did not

Re: How to stop riak http server

2014-12-01 Thread Yang Zhenguo
lt config says > this: > > listener.http.internal = 127.0.0.1:8098 > > Change it to this: > > # listener.http.internal = 127.0.0.1:8098 > > You could also just delete the line from riak.conf. > > On Sun, Nov 30, 2014 at 8:13 AM, Yang Zhenguo > wrote: > >> I am using pb to com

How to stop riak http server

2014-11-30 Thread Yang Zhenguo
I am using pb to communicate with riak in back end, and I dont want cliets can curd data via http request, how to do that? Thanks in advance Regards, -- Zhenguo Yang www.prinbit.com ___ riak-users mailing list riak-users@lists.basho.com http://lists.b

Re: How to update existed schema

2014-11-27 Thread Yang Zhenguo
what I want Thanks in advance Thanks & Regards, Zhenguo 2014-11-27 23:26 GMT+08:00 Yang Zhenguo : > Yes, I did replace > > 2014-11-27 11:45 GMT+08:00 Geoff Garbers : > >> Hi Zhenghuo. >> >> Did you replace "index_name" with actual name of your

Re: How to update existed schema

2014-11-27 Thread Yang Zhenguo
Yes, I did replace 2014-11-27 11:45 GMT+08:00 Geoff Garbers : > Hi Zhenghuo. > > Did you replace "index_name" with actual name of your index? If not, > that's probably the issue. > > Regards, > Geoff > > > Yang Zhenguo wrote: > > Hi Geo

Re: How to update existed schema

2014-11-26 Thread Yang Zhenguo
> ge...@totalsend.com > www.totalsend.com > > +1 347-431-0494 <http://www.totalsend.com> > +44 (0)203 519 1082 <http://www.totalsend.co.uk> > +61 (0)3 9111 5760 <http://www.totalsend.com.au> > +27 (0)21 200 6981 <http://www.totalsend.co.za> > > O

Re: How to update existed schema

2014-11-25 Thread Yang Zhenguo
No, I restarted riak. 2014-11-26 1:56 GMT+08:00 Eric Redmond : > Did you reload the index as Geoff wrote? > > > > On Nov 25, 2014, at 9:54 AM, Yang Zhenguo wrote: > > Hi Alexander, > > As I understood, If I dont re-write each key, I can not search the old > ob

Re: How to update existed schema

2014-11-25 Thread Yang Zhenguo
gt; > [image: Total Send] <http://www.totalsend.com/> > > Cell: +27 (0)766 476 920 > Skype: geoff.garbers > ge...@totalsend.com > www.totalsend.com > > +1 347-431-0494 <http://www.totalsend.com/> > +44 (0)203 519 1082 <http://www.totalsend.co.uk/> >

Re: How to update existed schema

2014-11-25 Thread Yang Zhenguo
talsend.com > > +1 347-431-0494 <http://www.totalsend.com> > +44 (0)203 519 1082 <http://www.totalsend.co.uk> > +61 (0)3 9111 5760 <http://www.totalsend.com.au> > +27 (0)21 200 6981 <http://www.totalsend.co.za> > > On Tue, Nov 25, 2014 at 6:46 PM, Y

Re: How to update existed schema

2014-11-25 Thread Yang Zhenguo
ucket-type status solution_t" and make sure it is updated to the latest search index. Any suggestion? Regards, Zhenguo 2014-11-26 0:46 GMT+08:00 Yang Zhenguo : > Any other options? :) > > 2014-11-26 0:42 GMT+08:00 Eric Redmond : > >> Yes, that is one of the options. >>

Re: How to update existed schema

2014-11-25 Thread Yang Zhenguo
Any other options? :) 2014-11-26 0:42 GMT+08:00 Eric Redmond : > Yes, that is one of the options. > > Eric > > > On Nov 25, 2014, at 8:40 AM, Yang Zhenguo wrote: > > Hi Eric, > > Any suggestion for my requirement? create a new search index? > > Regards, >

Re: How to update existed schema

2014-11-25 Thread Yang Zhenguo
> > Eric > > > On Nov 25, 2014, at 8:21 AM, Yang Zhenguo wrote: > > I have an existed schema and I want to add one column in it, such as > > > > What's the steps to update it? > > Since there is the search_index related to the schema and a bucket type

How to update existed schema

2014-11-25 Thread Yang Zhenguo
I have an existed schema and I want to add one column in it, such as What's the steps to update it? Since there is the search_index related to the schema and a bucket type related to the search_index. I tried to update the schema by the following commands: {ok, SchemaData} = file:read_file("c

How to do faceted search?

2014-09-01 Thread Yang Zhenguo
Hi, I have a question on faceted search. I am using riakc client for searching in riak. And I only what to get the facet of query, how to do that? I am trying the following command, but it returns "bad arg" riakc_pb_socket:search(ClientPid, ?SOLUTION_INDEX, <<"name:a">>, [{facet, true}]). Thank

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
oks like this first. > > Since you added. > > > > You have to define a fieldtype named "ignored". > > multiValued="true" class="solr.StrField" /> > > Hope that helps, > Eric > > > On Aug 31, 2014, at 10:32 AM, Yang Zhenguo

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

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