In the previous section, we discussed fuzzy query to fix the typos automatically. In this section, we will discuss the suggest API, which can provide word or phrase suggestions to the user based on the input query. Fuzzy query automatically corrects the fuzziness; Suggest API simply makes suggestions. Suggest API supports the following:
- Term and phrase suggester: You can use the term or phrase suggester to make suggestions based on the existing documents in case of typos or spelling mistakes.
- Completion suggester: You can use the completion suggester to predict the query term before the user finishes typing. Helping the user with the right search phrases improves the overall experience and decreases the load on the servers.