Re: How to stop riak http server

2014-12-01 Thread Yang Zhenguo
Hi Sean, Thanks, will have a try. Regards, Zhenguo www.prinbit.com 2014-12-01 2:34 GMT+08:00 Sean Cribbs : > Assuming you're using Riak 2.0.x, you can simply comment out any lines in > riak.conf that begin "listener.http.". For example, the default config says > this: > > listener.http.intern

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

Riak Data Type + Search

2014-12-01 Thread Taufan Adhitya
How to use riak data type and search index properly? I post a question on stackoverflow describe the issue that i'd encounter : http://stackoverflow.com/questions/27229185/riak-data-types-and-search Any help will be appreciated. Thanks, Taufan. ___ riak-

Re: Java MR

2014-12-01 Thread niedomnie
I've ask then. We've got 4 MR jobs MapReduce mr = new BucketMapReduce.Builder().withMapPhase(Function.newNamedJsFunction("Riak.mapValues")); MapReduce mr = new SearchMapReduce.Builder().withIndex("\$key").withQuery(q).withMapPhase(Function.newNamedJsFunction("Riak.mapValues")); MapReduce mr = n

Re: Riak Data Type + Search

2014-12-01 Thread Sean Cribbs
Hi Taufan, I replied to your SO question. You were using riakc_obj and put where you should use riakc_counter and fetch_type, update_type, and/or modify_type. On Mon, Dec 1, 2014 at 7:35 AM, Taufan Adhitya wrote: > How to use riak data type and search index properly? I post a question on > stac

Java clent to riak 2.0 - is it mature, working?

2014-12-01 Thread niedomnie
I've tested Riak Java client 2.0, while searching through BinIndexQuery, and MapReduce. Neither of them is working. BinIndexQuery does not allow to search through $key index (always adding _bin to name). And MapReduce jobs there are no examples anywhere. I've been trying with classes BucketMapRe

Re: Riak Data Type + Search

2014-12-01 Thread Taufan Adhitya
Hey Sean, thanks for the response. I was looking the documentation section you've pointed, but I'm stuck on Counters/Sets/Maps in the Erlang client are opaque data structures that collect operations as you mutate them. We will associate the data structure with a bucket type, bucket, and key later

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-

Bucket type - change of properties

2014-12-01 Thread Jason Ryan
Hi all, I have a simple riak 1 node install on a VM for development - I created a new bucket type, activated it and was using it, and then noticed I was getting siblings back, I'd forgotten to set allow_mult:false and last_write_wins:true I did an update on the bucket-type, restarted Riak and che

Re: Riak Data Type + Search

2014-12-01 Thread Christopher Meiklejohn
> On Dec 1, 2014, at 12:28 PM, Taufan Adhitya wrote: > > Hey Sean, thanks for the response. > > I was looking the documentation section you've pointed, but I'm stuck on > Counters/Sets/Maps in the Erlang client are opaque data structures that > collect operations as you mutate them. We will a

Re: Riak Data Type + Search

2014-12-01 Thread Taufan Adhitya
riakc_pb_socket:update_type/4,5 is all i need. Thanks to both of you. Would be helpful if it's also mentioned at docs.basho.com/riak/latest/dev/search/search-data-types Cheers, Taufan 2014-12-02 0:44 GMT+07:00 Christopher Meiklejohn : > > > On Dec 1, 2014, at 12:28 PM, Taufan Adhitya > wrote: >

Re: Yokozuna - inconsistent number of documents found for the same query

2014-12-01 Thread Eric Redmond
This is a known issue, and we're still working on a fix. https://github.com/basho/yokozuna/issues/426 Eric On Nov 29, 2014, at 9:26 AM, Oleksiy Krivoshey wrote: > Hi, > > I get inconsistent number of documents returned for the same search query > when index keys are repaired by search AAE.

Re: Yokozuna - inconsistent number of documents found for the same query

2014-12-01 Thread Oleksiy Krivoshey
Thank you! p.s. That github issue mentions 5 node cluster, however I can replicate it on a single node Riak setup. On 1 December 2014 at 20:26, Eric Redmond wrote: > This is a known issue, and we're still working on a fix. > > https://github.com/basho/yokozuna/issues/426 > > Eric > > > On Nov 2

Re: Riak Data Type + Search

2014-12-01 Thread Christopher Meiklejohn
> > On Dec 1, 2014, at 1:16 PM, Taufan Adhitya wrote: > > riakc_pb_socket:update_type/4,5 is all i need. Thanks to both of you. Would > be helpful if it's also mentioned at > docs.basho.com/riak/latest/dev/search/search-data-types >

can't start riak after crash

2014-12-01 Thread Jason W
Hi, I currently have risk 2.0.2 installed, and can't get risk started again after crash. Just keep seeing below in the log file, what can I do to fix this? Thanks. 014-12-02 03:07:15.342 [info] <0.7.0> Application lager started on node ' riak@172.17.0.21' 2014-12-02 03:07:15.402 [info] <0.7.0>

Re: Yokozuna - inconsistent number of documents found for the same query

2014-12-01 Thread Ryan Zezeski
Eric Redmond writes: > This is a known issue, and we're still working on a fix. > > https://github.com/basho/yokozuna/issues/426 > I don't see how this issue is related to Oleksiy's problem. There is no mention of removing or adding nodes. I think the key part of Oleksiy's report is the associat

Re: Yokozuna - inconsistent number of documents found for the same query

2014-12-01 Thread Eric Redmond
On Dec 1, 2014, at 8:57 PM, Ryan Zezeski wrote: > > Eric Redmond writes: > >> This is a known issue, and we're still working on a fix. >> >> https://github.com/basho/yokozuna/issues/426 >> > > I don't see how this issue is related to Oleksiy's problem. There is no > mention of removing or a

Re: Using $bucket index in java client

2014-12-01 Thread niedomnie
not possible on that code - I've overrided some classes, and no it is possible - use MyBinIndexQuery instead - it was tested against $key index - but problem is with appending _BIN or _INT suffix to key name (always) package com.thalesgroup.riak import com.basho.riak.client.api.commands.CoreFutur

Re: Using $bucket index in java client

2014-12-01 Thread niedomnie
there is a bug in BinIndexQuery - I've overriden some classes and now it is working (with orginal sources of client). Use MyBinIndexQuery instead of BinIndexQuery. Problem is that _BIN in always apppended to name of index. import com.basho.riak.client.api.commands.CoreFutureAdapter import com.bash

Re: Yokozuna - inconsistent number of documents found for the same query

2014-12-01 Thread Oleksiy Krivoshey
Hi Ryan, There are no errors, 'search aae-status' shows that all trees have already been created and synced. When I first noticed this issue I was running a dev setup (single node) and had about 500 keys in total. I waited over 7 days and still was experiencing this issue. During these 7 days the