简体   繁体   中英

MarkLogic get data from collection

Is it possible to get data from MarkLogic xml database, but using MarkLogic API for java? I have read documentation, but it only shows how to add a xml to collection or to delete it, doesn't show how to get all xml documents from one selected collection?

This looks like it will do the job

https://docs.marklogic.com/javadoc/client/index.html?com/marklogic/client/query/StructuredQueryBuilder.html

StructuredQueryBuilder.CollectionConstraintQuery collectionConstraint(String constraintName, String... uris) Matches documents belonging to at least one of the criteria collections with the specified constraint.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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