Re: 2i and Links

2012-01-14 Thread Ryan Zezeski
Dang, I'm sorry your question went unanswered for so long. Sometimes they slip through the cracks. First, let me make sure I understand your data model. 1. You have users 2. You have content 3. Users generate and own content, a piece of content may have an arbitrary number of tags 4. You want t

Re: documents disappear from riak search index

2012-01-14 Thread Ryan Zezeski
On Sat, Jan 14, 2012 at 11:58 AM, francisco treacy < francisco.tre...@gmail.com> wrote: > > > (I don't know how much Search has changed in 1.0.x, but keep in mind > I'm running 0.14.2 in production.) > > I'd love to provide you with more information, but don't have much > time to go digging around.

Re: Delta updates using pre-commit hooks

2012-01-14 Thread Ryan Zezeski
Marek, You're definitely butting up against the limits of Riak's data model here. It sounds like you are looking for something like Redis? E.g. add element E to set S. You could probably use statebox [1] and pull some tricks in the precommit hook to determine if the incoming client object is th

Re: broken values in luwak

2012-01-14 Thread francisco treacy
Hi Ryan, thanks. In this case I also came up with a workaround: serving those files from disk. Which solved our user problem. I'll try out your code and let you know how it went. Francisco 2012/1/12 Ryan Zezeski : > Francisco, > > I'm not sure how it happend, but perhaps the file was updated at

Re: documents disappear from riak search index

2012-01-14 Thread francisco treacy
2012/1/13 Ryan Zezeski : > Francisco, > > This is a tricky one indeed.  If I'm following your thus far you: > > 1. In November you had an incident with the cluster but re-saved all docs to > repopulate the index, things were good Correct > > 2. Then in Dec you compared a mapred vs. search query,

Re: Secondary Indexes - using auto-generated $key index

2012-01-14 Thread Gal Barnea
Thanks Alin! This was what I was looking for. Seems like the Java Client doesn't support this yet (at least from what I could find) Just in case, here is a simple class that should be used instead of the expected BinRangeQuery: public class KeyRangeQuery extends AbstractRangeQuery { pro

Re: Secondary Indexes - using auto-generated $key index

2012-01-14 Thread Alin Popa
Hi Gal, Here is one of the examples that I've found useful in the past for exactly this purpose: http://comments.gmane.org/gmane.comp.db.riak.user/5995 HTH, Alin On Sat, Jan 14, 2012 at 12:52 PM, Gal Barnea wrote: > Hi all > I've been doing some work with Secondary Indexes and noticed this on

Secondary Indexes - using auto-generated $key index

2012-01-14 Thread Gal Barnea
Hi all I've been doing some work with Secondary Indexes and noticed this on the web site: "The $key index field is a special field that is implicitly indexed on all objects when Secondary Indexes is enabled. The value of this field is the object's key, so this field allows an application to perform