Creating search indexes

You can add new search indexes by defining the search index functions to retrieve the specific data from Cloudant databases.

About this task

To create a search index, complete the following steps:


  1. To open the Select a wizard page of the New wizard, from the main menu, select File > New > Other.
  2. To open the Create Cloudant Index wizard, expand the Repository node, select Cloudant Index, and then click Next.
  3. From the Data source list, select a Cloudant data source to which you want to add a new index.
  4. From the Design document list, select the design document in which you want to include the new index.
  5. In the Index name field, enter the name that you want to use for the index.
  6. To create the index and open it in the Cloudant Search Index editor, from the Index type list, select Search Index and click Finish.
  7. In the Search index function field, specify the function to determine the fields in documents that can be queried.
  8. In the Analyzer section, specify the settings to define the rules for recognizing the terms within text.
    • If you want to apply the same analyzer for all document fields, select Single, and then from the Type list, select the analyzer type.
    • If you want to configure multiple analyzers for different fields, select Multiple. To specify the name of the field in the Field Name column, click Add Field, and then select the analyzer type that is applied to this filed from the Analyzer column.
  9. To save the search index that you created to the database, click Save.


The search index that you created is added to the Search Indexes folder under the appropriate design document node in the Repository Explorer view.