Hi Eric,

I did the following steps, still not work.

1. delete the old search index
2. create a new search index (first time I used the same name, and second
time I used a different name)
3. sudo riak-admin bucket-type update solution_t ......

I check the bucket type by "sudo riak-admin bucket-type status solution_t"
and make sure it is updated to the latest search index.

Any suggestion?

Regards,
Zhenguo


2014-11-26 0:46 GMT+08:00 Yang Zhenguo <yangzhen...@gmail.com>:

> Any other options? :)
>
> 2014-11-26 0:42 GMT+08:00 Eric Redmond <eredm...@basho.com>:
>
>> Yes, that is one of the options.
>>
>> Eric
>>
>>
>> On Nov 25, 2014, at 8:40 AM, Yang Zhenguo <yangzhen...@gmail.com> wrote:
>>
>> Hi Eric,
>>
>> Any suggestion for my requirement? create a new search index?
>>
>> Regards,
>> Zhenguo
>>
>>
>> 2014-11-26 0:24 GMT+08:00 Eric Redmond <eredm...@basho.com>:
>>
>>> Automatic updating of indexes due to schema changes doesn't exist yet.
>>> It'll be added soon:
>>>
>>> https://github.com/basho/yokozuna/pull/427
>>>
>>> Eric
>>>
>>>
>>> On Nov 25, 2014, at 8:21 AM, Yang Zhenguo <yangzhen...@gmail.com> wrote:
>>>
>>> I have an existed schema and I want to add one column in it, such as
>>> <field name="problem_id"   type="string"  indexed="true" stored="true" />
>>>
>>>
>>> What's the steps to update it?
>>>
>>> Since there is the search_index related to the schema and a bucket type
>>> related to the search_index.
>>>
>>> I tried to update the schema by the following commands:
>>>
>>> {ok, SchemaData} = file:read_file("cartoons.xml"),
>>> riakc_pb_socket:create_search_schema(Pid, <<"cartoons">>, SchemaData).
>>>
>>>
>>> However, I can not search the object with new field.
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> --
>>> Zhenguo Yang
>>> www.prinbit.com
>>>  _______________________________________________
>>> riak-users mailing list
>>> riak-users@lists.basho.com
>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>>
>>>
>>>
>>
>>
>> --
>> Zhenguo Yang
>> MSN: zgyang...@hotmail.com
>>
>>
>>
>
>
> --
> Zhenguo Yang
> MSN: zgyang...@hotmail.com
>



-- 
Zhenguo Yang
MSN: zgyang...@hotmail.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