简体   繁体   中英

can we limit the number of documents return in flwor expression?

I have many documents in a database where I want to search for a specific condition. I saw can use predicates, but it works under only one document, is that correct?

FLOWR expression work with many documents under whole database, but while returning the number the document can we use predicate [] too for limiting the number of rows to return.

Need to get all points while querying a document and query across a Database or whole database in Marklogic 10.

You can write

for $x at $position in ....
where $position le 100
return ...

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