【问题标题】:Is there any default timestamp that gets updated when a document gets added/updated to the search index?当文档被添加/更新到搜索索引时,是否有任何默认时间戳得到更新?
【发布时间】:2019-01-25 19:06:32
【问题描述】:

我知道 Azure Cosmos Db 中有一个 _ts(时间戳)属性,它会在任何文档插入/更新时得到更新。

Azure 搜索索引中的文档有什么相似之处吗?

(或)

我们是否应该拥有自己的时间戳属性?

【问题讨论】:

    标签: c# azure azure-cognitive-search azure-search-.net-sdk


    【解决方案1】:

    在 Azure 搜索索引中,您只能获得您输入的字段。所以不,文档上没有时间戳(至少没有通过 API 公开)。

    支持的字段类型之一是 Edm.DateTimeOffset - 如果需要,您可以使用它来维护此类字段。

    【讨论】:

    • 感谢您成为 Azure 搜索用户 Georgi 并用您的专业知识帮助他人!
    猜你喜欢
    • 2017-05-12
    • 1970-01-01
    • 2017-02-27
    • 2021-10-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-11
    • 2013-11-30
    相关资源
    最近更新 更多