Manipulating CRDTs inside commit hooks/mapreduces

2015-05-02 Thread Cezary Kosko
Hi, I've got a situation where I'd like to create a new map record with some data inside a commit hook or a mapreduce job and then push it into Riak. Some questions here: 1. Do I call riak_kv_crdt:new with the proper Bucket, Key & to_mod("map")? Does that overwrite what's in Riak, by any chance?

Yokozuna - Solr won't start, keeps throwing OutOfMemoryErrors

2015-03-10 Thread Cezary Kosko
All, I've been working on a Riak setup with Search (version 2.0.0), 2 custom schemas for 3 datatypes (maps of sets, wanted to query against values of these sets, one of the schemas stores one of these sets, but there's max 2 values in that particular one per record). Everything seemed to be runni

Re: Yokozuna unpredictable result count

2015-02-19 Thread Cezary Kosko
love | > twitter => @zeeshanlakhani > > On Feb 19, 2015, at 11:53 AM, Cezary Kosko wrote: > > By './data/yz_anti_entropy' do you mean '/var/lib/riak/yz_anti_entropy' by > default or './data/yz_anti_entropy' inside each index's directory? If

Re: Yokozuna unpredictable result count

2015-02-19 Thread Cezary Kosko
pair by performing a fetch of the object > itself first, before performing search queries again. > > Zeeshan Lakhani > programmer | > software engineer at @basho | > org. member/founder of @papers_we_love | > twitter => @zeeshanlakhani > > On Feb 19, 2015, at 10:35 AM,

Re: Yokozuna unpredictable result count

2015-02-19 Thread Cezary Kosko
able to retrieve your search result consistently when not > using doing a mapreduce job? > > To better help out, can you send a gist of the mapreduce code you’re > running? Thanks. > > > On Feb 18, 2015, at 9:13 PM, Cezary Kosko wrote: > > Hi, > > I've got a search

Yokozuna unpredictable result count

2015-02-18 Thread Cezary Kosko
Hi, I've got a search index, and I'd like to run mapred job against that index. The thing is, for a search query that should return exactly one result, I sometimes (not always, yet not rarely) get none, i.e. the mapred job returns an empty list instead of, say, a list containing a single object. D

CRDT-map usage in erlang mapreduce via HTTP

2015-01-04 Thread Cezary Kosko
Hi, I wanted to ask how you use a map data type in mapreduce. Calling riak_kv_crdt:map_value/1 seems to be but the start, I can't seem to be able to extract particular values - proplists:get_value/2 returns undefined for virtually every possible input, so right now I've localized the keys' index in

datatypes, mapreduce & 2i

2014-12-28 Thread Cezary Kosko
Hi there, I've got 2 questions about riak's datatypes, mapreduce & 2i. First: If I wanted to run a mapred job on a bucket "setexmp" of type "sets", querying a "set_bin" index for value "abc", do I just write {"bucket":["sets","setexmp"], "index":"set_bin", "key":"abc"} in the "inputs" field of th

Re: Riak mapreduce w/ bucket types

2014-10-30 Thread Cezary Kosko
"987"], ... } > > Thanks, > - Roach > > On Thu, Oct 30, 2014 at 11:51 AM, Cezary Kosko > wrote: > > Hi, > > I was trying to run a mapreduce job on a bucket of sets (the default > 'sets' > > setup from Riak docs). However, running > &g

Riak mapreduce w/ bucket types

2014-10-30 Thread Cezary Kosko
Hi, I was trying to run a mapreduce job on a bucket of sets (the default 'sets' setup from Riak docs). However, running https://gist.github.com/cezary-ytrre/d707ee2f13911c274d69 on a node returns [] while a simple 'curl localhost:8098/types/sets/buckets/987/datatypes/general' returns a perfectly va