Actually, a bucket type is not required. To associate an index with a
bucket you simply set the `search_index` property. Bucket types provide a
method for many buckets to inherit the same properties. Setting the
search_index property on the bucket type is a way to index multiple buckets
under one index without setting the property on each bucket. Otherwise, I
would suggest setting the property at the bucket level and not the type
level.

The specific problem Paul ran into is that he tried to change properties
for the default type which is a special type that cannot be altered.

-Z


On Mon, Mar 24, 2014 at 11:52 AM, Luke Bakken <lbak...@basho.com> wrote:

> Hi Paul,
>
> You are correct, a new bucket type must be created for Riak 2.0 search
> indexes.
>
> --
> Luke Bakken
> CSE
> lbak...@basho.com
>
>
> On Mon, Mar 24, 2014 at 2:27 AM, Paul Walk <p...@paulwalk.net> wrote:
>
>> I'm experimenting with the technology preview of Riak 2.0, using an
>> existing Ruby web application which uses the official Ruby client gem
>> (1.4.3).
>>
>> My understanding is that if I have not specified particular bucket-types,
>> then my buckets are implicitly using a 'default' bucket type. So, in order
>> to try the all-new search functionality, I have tried to associate the
>> default bucket-type with a search index, thus:
>>
>> ./riak-admin bucket-type update default
>> '{"props":{"search_index":"my_index"}}'
>>
>> which returns the error:
>>
>> Error updating bucket type default: no_default_update
>>
>> Does this mean that in Riak 2.0, if one wants buckets to be indexed in
>> Solr, one must create a new bucket_type in order to associate an index and
>> then associate buckets with this?
>>
>> Thanks,
>>
>> Paul
>> -------------------------------------------
>> Paul Walk
>> http://www.paulwalk.net
>> -------------------------------------------
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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

Reply via email to