简体   繁体   English

MarkLogic:通过REST获取集合中的所有文档

[英]MarkLogic: Get all documents from a collection via REST

是否可以通过REST API从Marklogic中的指定集合中获取所有文档?

It should be possible to page over the documents with the /v1/search endpoint by specifying an Accept header of multipart/mixed; boundary="YOUR_BOUNDARY_HERE" 通过指定multipart/mixed; boundary="YOUR_BOUNDARY_HERE"的Accept标头,应该可以使用/ v1 / search端点翻页文档multipart/mixed; boundary="YOUR_BOUNDARY_HERE" multipart/mixed; boundary="YOUR_BOUNDARY_HERE" and the following query parameters: multipart/mixed; boundary="YOUR_BOUNDARY_HERE"和以下查询参数:

  • one or more collection parameters (or a POST payload with collection queries) 一个或多个collection参数(或带有集合查询的POST负载)
  • a view parameter of none view参数none
  • a start parameter for the offset to the next page of the result set 到结果集下一页的偏移量的start参数

For more information see: 有关更多信息,请参见:

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

Hoping that helps, 希望能有所帮助,

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

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