Opening Cloudant indexes

You can open secondary and search indexes that are defined in a Cloudant database to edit or run them as Cloudant queries.

About this task

To open an index, complete the following steps:

Procedure

  1. In the Repository Explorer view, expand the Cloudant Data Sources node.
  2. Navigate to and expand the Cloudant data source that contains the index that you want to open.
  3. Expand the node with the name that corresponds to the name of the design document that contains the index that you want to open.
  4. To display the list of available indexes, expand the Secondary Indexes or Search Indexes folder.
  5. To rename an index, right-click the required index and select Rename from the menu.
  6. To edit an index, right-click the required index and select Open With > Cloudant Secondary Index Editor or Open With > Cloudant Search Index Editor depending on the type of the index that you want to edit.
    The secondary index is opened in the Cloudant Secondary Index editor. The search index is opened in the Cloudant Search Index editor. In the editors, you can edit the functions that are defined for building the index.
  7. To open an index in the Cloudant Query editor, right-click the required index and select Open With > Cloudant Query Editor from the menu.
    The index is built and opened as a metadata table on the Build tab of the Cloudant Query editor.
    Tip: To see the functions that are defined for building the index, switch to the Index tab.
  8. To display the indexed data as a grid on the Results tab and as a JSON tree on the JSON tab, click the Run Query Run query icon toolbar button.
  9. Modify a metadata table and specify parameters to display specific data in the results on the Build tab.
  10. To save changes that you made on the Build tab, save the index as a Cloudant query to a repository or file.