Alexander,

I'm sorry to say, currently, the way to update a schema is to update the 
schema, and update all of the objects.

This is actually a feature we're working on (aiming for 2.1), but it doesn't 
exist right now. What will happen with this change is that AAE will be able to 
repair indexes when a schema has changed.

https://github.com/basho/yokozuna/compare/feature-er-schema-update

Eric


On Nov 2, 2014, at 8:11 AM, Alexander Popov <[email protected]> wrote:

> does it possible?
> 
> now I use flow:
> 
> curl -XPUT "http://localhost:8098/buckets/some_bucket/props";   
> -H'content-type: application/json'  
> -d'{"props":{"search_index":"_dont_index_", "search":false}}'     
> 
> curl -XDELETE "http://localhost:8098/search/index/some_index";
> curl -XPUT "http://localhost:8098/search/schema/some_schema";  
> -H'content-type:application/xml'  --data-binary @ some_schema.xml
> curl -XPUT "http://localhost:8098/search/index/some_index";  
> -H'content-type:application/json' -d"{\"schema\":\"some_schema\"}"
> curl -XPUT "http://localhosy:8098/buckets/some_bucket/props";   
> -H'content-type: application/json'  
> -d"{\"props\":{\"search_index\":\"some_index\"}}"
> 
> 
> after that All indexed data removed, and I need resave all data.
> It works when there is mid size bucket. but how I should update schema in 
> production when it have millions records.
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to