简体   繁体   English

Vespa 中的版本控制文档更改

[英]Versioning document changes in Vespa

I would like to allow for versioning of text in Vespa.我想允许在 Vespa 中对文本进行版本控制。 If a user changes certain fields over time the changes would be tracked and versions could be restored.如果用户随时间更改某些字段,则会跟踪更改并恢复版本。

I imagine a solution running in parallel to Vespa would be the way to go, with version numbers being stored in the vespa doc as unindexed data.我想与 Vespa 并行运行的解决方案将是通往 go 的方法,版本号作为未索引数据存储在 vespa 文档中。

Any recommendations on a solution to use to do this?有关用于执行此操作的解决方案的任何建议? Something like http://jsonpatch.com ?http://jsonpatch.com这样的东西?

I would just store each version as a separate document by including the version in the document id.通过在文档 ID 中包含版本,我只需将每个版本存储为单独的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM