Is it possible to force Riak 2.0 to re-index data after changing a schema, without reloading the data?

江枫思渺然 提交于 2019-12-12 23:16:00

问题


I have a Riak Search index of about 5 million docs that I would like to experiment with making changes to the schema. Is it possible to have Riak re-index that data without having to insert those documents again?

Does this happen automatically when the schema is changed?

I could not find information about this in the docs.

Thanks for any help with this!


回答1:


Right now the only way to re-index the objects is to iterate over each of the keys and update the object to trigger an update to the index. There are improvements in the works that should address this common use case in an upcoming release:

https://github.com/basho/yokozuna/pull/439

https://github.com/basho/yokozuna/pull/427



来源:https://stackoverflow.com/questions/27389330/is-it-possible-to-force-riak-2-0-to-re-index-data-after-changing-a-schema-witho

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!