cts.collectionQuery( uris as String[] ) as cts.collectionQuery
Match documents in at least one of the specified collections. It will match both documents and properties documents in the collections with the given URIs.
Parameters | |
---|---|
uris | One or more collection URIs. A document matches the query if it is in at least one of these collections. |
cts.search(cts.andQuery([cts.wordQuery("repair"), cts.collectionQuery(["reports", "analysis"])])); => .. relevance ordered sequence of documents that both contains the word "repair" and is in either the collection "reports" or in the collection "analysis".
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.