riak-search, set schema for a bucket

Sean Cribbs sean at basho.com
Tue Aug 28 05:00:12 EDT 2012


Hello,

You can use the `search-cmd set-schema <BUCKET> <FILE>` command to set
the schema for your bucket.

On Tue, Aug 28, 2012 at 11:28 AM, darkdarkfruit <darkdarkfruit at gmail.com> wrote:
>
>      Any one know how to set riak-search default-schema for a bucket?
>     When I enabled riak-search in a bucket, it automatically analyzes my
> json doc when writing to riak, but I just want some fields to be analyzed.
> (I am using riak-python-client). I checked the wiki
> :http://wiki.basho.com/Riak-Search---Schema.html, but it doesn't say how to
> bind a bucket to a specific schema. thanks.
>
>      for eg: ( I want to save a blog with field: 'title' indexed)
>     blog = {'title' : 'good bird', 'content' : ' a very long content' }, I
> just want filed:"title" to be indexed while leaving field:"content" alone
> because field:"content" could be very long and exhausting time.
>
>    how can I achieve this, thanks.
>
>      sincerely.
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>



-- 
Sean Cribbs <sean at basho.com>
Software Engineer
Basho Technologies, Inc.
http://basho.com/




More information about the riak-users mailing list