如何查询Sitecore存档以及可以查询什么?

发布于 2024-09-25 20:00:29 字数 59 浏览 0 评论 0原文

如何查询Sitecore存档以及可以查询什么? 例如,我可以在已归档 Item 的字段值之后进行查询吗?

How can I query the Sitecore archive and what can be queried?
For instance, can I make a query after the values of the fields of an archived Item ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

习ぎ惯性依靠 2024-10-02 20:00:29

我想您正在谈论查询存档数据的 API。如果是这种情况,请查看 Sitecore.Data.Archiving.SqlArchive 类,特别是其方法 GetEntries()。它接受的参数之一是 ArchiveQuery 实例。

如果您仔细查看 ArchiveQuery 类,您会发现可以通过 item IDParent IDName 进行查询、归档日期范围、原始位置和正在归档的项目的“归档者”数据。

似乎没有专门的 API 在此类查询中使用字段数据,但存档字段的数据仍然存储在 ArchivedFields SQL 表中。您可以尝试直接解决它以完成您需要的任务(当然,风险由您自己承担)。

希望这有帮助。

I suppose you're talking about the API to query Archive data. If that's the case, take a look at the Sitecore.Data.Archiving.SqlArchive class, and its method GetEntries() in particular. One of the parameters it accepts is an ArchiveQuery instance.

If you look closer at ArchiveQuery class, you'll see that it is possible to query by item ID, Parent ID, Name, archive date range, original location and "archived by" data of the item being archived.

There seems to be no ad-hoc API to use field data in such queries, but the data of archived fields is still stored in ArchivedFields SQL table. And you can try to address it directly to accomplish what you need (at your own risk, of course).

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文