On 21 Sep 2011, at 19:09, Greg Pascale wrote: > A few questions > > 1) Is this fix in the RC1 build that just came out today?
Yes it is. > 2) How exactly do search-cmd install, the "search" bucket property and the > precommit hook fit together now? I'm a bit unclear on what I actually need to > do to enable search on a bucket. To enable search on a bucket do any of the things you mentioned (add the hook, set {'search': true}, run search-cmd install my_bucket.) search-cmd install sets the 'search' bucket property to true. The presence of a true search bucket property cause the search pre-commit hook to be added to the bucket's properties. Likewise, if the pre-commit hook is present but the search property is not, the search property is set to true (for example after an upgrade.) Have a look at the code in riak_search_kv_hook.erl[1] specifically the fixup/2 fun[2]. Cheers Russell [1] https://github.com/basho/riak_search/blob/1.0.0rc1/src/riak_search_kv_hook.erl [2] https://github.com/basho/riak_search/blob/1.0.0rc1/src/riak_search_kv_hook.erl > > Thanks. > > -- > Greg > Clipboard > > On Tuesday, September 20, 2011 at 3:42 PM, Greg Pascale wrote: > >> Man, it took a whole day after I complained about this to get it fixed? You >> guys are such slackers! :) >> >> Thanks a bunch! >> >> -- >> Greg >> Clipboard >> >> On Tuesday, September 20, 2011 at 1:47 PM, Andrew Thompson wrote: >> >>> On Tue, Sep 20, 2011 at 10:53:28AM -0700, Greg Pascale wrote: >>>> Hi Jon, >>>> >>>> Thanks for getting back to me. >>>> >>>> I'm doing full-text indexing, but I don't need to keep the text around >>>> once my object has been indexed, so I wrote a second precommit hook to >>>> remove the text from the object. This reduces the size of my objects >>>> drastically (since text tends to be the largest part) and has given us >>>> substantial perf gains in our tests. >>> >>> I just pushed a fix for this. It should be present in the next 1.0 >>> prerelease. >>> >>> https://github.com/basho/riak_search/pull/87 >>> >>> Andrew >>> >>> _______________________________________________ >>> riak-users mailing list >>> riak-users@lists.basho.com >>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >> > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com