Adding a Search Service
A Search service gives you a powerful search engine. Have documents you want to search? Simply POST them to a search index and use the query command to get a set of matches from some text criteria. The goal of this service is to manage the complexity of running your own search engine or having to deal with separate services, the search engine sits right next to your data, storage, and cache for a highly composable integration.
A search index is like a data store, but specifically for storing documents that will be searched on. When you create a search service instance, you will specify which fields will be used to search and which fields should be stored as part of the document.
To create a search service instance perform the following steps:
- Select the appropriate hyper application to open the application page.
- Select the Search tab.
- If you have not reached your limit of search service instances, you will see an + Add search service add tile. Click the add tile to open the add form.
- The Add Search Service add form will appear. Provide the following items then click the Save button to create the search service instance:
- Service Name - The name of the search service instance. Each search service instance name within a given hyper application must be unique. In other words, there can only be one search service named "movie-genre" within the hyper app.
- Fields to index - These are the search fields you will use in your client application to quickly lookup values based upon the fields you provide to index. Field names must be comma-delimited. For example, if you wanted to look up a movie by the fields "name" and "genre" you would provide the fields to index as "name, genre".
- Fields to store - Specify the fields that you would like to be stored as part of the search document. Field names must be comma-delimited. Each field name should match the property on the document you plan to index.
- Once the search instance has been created, it will be displayed within the Search tab: