Suggesters

The suggester is widely used in search solutions that improve a user's experience. This search feature is based on suggesting similar terms using the text provided by the suggester. There are four types of suggesters—term, phrase, completion, and context. Let's briefly look at each one in turn:

  • Term suggester: This returns a list of possible suggestions with corrected terms. The following screenshot is an example of obtaining the suggestions from two suggesters. One suggester recommends searching for the term asian from the fund_name field, while the other recommends searching for the term stock from the description field.

You can see that use of the word asia, instead of asian, in the query is recommended:

  • Phrase suggester ...

Get Advanced Elasticsearch 7.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.