Creating search indexes
You can add new search indexes by defining the search index functions to retrieve the specific data from Cloudant databases.
To create a search index, complete the following steps:
About this task
- To open the Select a wizard page of the New wizard, from the main menu, select .
- To open the Create Cloudant Index wizard, expand the Repository node, select Cloudant Index, and then click Next.
- From the Data source list, select a Cloudant data source to which you want to add a new index.
- From the Design document list, select the design document in which you want to include the new index.
- In the Index name field, enter the name that you want to use for the index.
- To create the index and open it in the Cloudant Search Index editor, from the Index type list, select Search Index and click Finish.
- In the Search index function field, specify the function to determine the fields in documents that can be queried.
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.
- 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.