The Views Editor is available within the Couchbase Web Console. You can access the View Editor either by clicking the for a given data bucket within the Data Buckets display, or by selecting the page from the main navigation panel.
The individual elements of this interface are:
The pop-up, at the top-left, provides the selection of the data bucket where you are viewing or editing a view.
The enables you to create a new view either thin the current design document, or within a new document. See Section 6.5.1, “Creating and Editing Views”.
You can switch between and . See Section 9.4, “Development and Production Views” for more information.
The final section provides a list of the design documents, and within each document, each defined view.
When viewing Development Views, you can perform the following actions:
the view index with an associated design document. This will compact the view index and recover space used to store the view index on disk.
a design document. This will delete all of the views defined within the design document.
creates a new spatial view within the corresponding design document. See Section 6.5.1, “Creating and Editing Views”.
creates a new view within the corresponding design document. See Section 6.5.1, “Creating and Editing Views”.
your design document (and all of the defined views) as a production design document. See Section 6.5.2, “Publishing Views”.
For each individual view listed:
, or clicking the view name
Opens the view editor for the current view name, see Section 6.5.1, “Creating and Editing Views”.
Deletes an individual view.
When viewing Production Views you can perform the following operations on each design document:
the view index with an associated design document. This will compact the view index and recover space used to store the view index on disk.
a design document. This will delete all of the views defined within the design document.
copies the view definition to the development area of the view editor. This enables you edit the view definition. Once you have finished making changes, using the button will then overwrite the existing view definition.
For each individual view:
By clicking the view name, or the button, execute and examine the results of a production view. See Section 6.5.3, “Getting View Results” for more information.