【问题标题】:Find number of documents in a collection in Marklogic7 using Marklogic Rest API使用 Marklogic Rest API 在 Marklogic7 中查找集合中的文档数
【发布时间】:2015-01-02 12:36:53
【问题描述】:

我正在使用 Marklogic 7 Rest API,我想找出我的 Marklogic 数据库中任何集合中的文档数。如何实现?

【问题讨论】:

    标签: marklogic marklogic-7


    【解决方案1】:

    您可以在页面长度为 1 的集合上发布查询:

    {“查询”:{ “查询”:[{ “收集查询”:{ “uri”:[“YOUR_COLLECTION”] } }] }}

    http://docs.marklogic.com/REST/POST/v1/search

    http://docs.marklogic.com/guide/search-dev/structured-query#id_76890

    搜索响应中的 total 属性将指示集合中的文档数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-12-21
      • 2023-04-07
      • 2018-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-15
      相关资源
      最近更新 更多