Can you obtain documents belonging to a specific Scope and Collection using a MapReduce View?

I can successfully obtain documents created with _default using a View. However, it seems that I cannot obtain documents belonging to a specific Scope and Collection using View code. No sample documents appear in the Web Console under Views > Sample Document either. (Couchbase 7.x)

I am wondering if there is separate code to specify the Scope and Collection when adding MapReduce JavaScript.

Referring to https://docs.couchbase.com/server/7.0/release-notes/relnotes.html:

" * Views are deprecated in Couchbase Server 7.0+.

Views support in Couchbase Server will be removed in a future release only when the core functionality of the View engine is covered by other services. Views will continue to work in all buckets but only in the default scope and default collection.

There is no current impact to the View engine, Views REST API, or any direct MapReduce View implementations as described in View and Query Examples, where you can still create Views from the Query Workbench."

HTH.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.