Book Image

Elasticsearch Server: Second Edition

Book Image

Elasticsearch Server: Second Edition

Overview of this book

Table of Contents (18 chapters)
Elasticsearch Server Second Edition
Credits
About the Author
Acknowledgments
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Using suggesters


Starting from Elasticsearch 0.90, we've got the ability to use the so-called suggesters. We can define a suggester as a functionality that allows us to correct a user's spelling mistakes and build an autocomplete functionality, keeping the performance in mind. This section will introduce the world of suggesters to you; however, it is not a comprehensive guide. Describing all the details about suggesters will be very broad and is out of the scope of this book. If you want to learn more about suggesters, please refer to the official Elasticsearch documentation (http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters.html) or to our book, Mastering ElasticSearch, Packt Publishing.

Available suggester types

Elasticsearch gives us three types of suggesters that we can use, which are as follows:

  • term: This defines the suggester that returns corrections for each word passed to it. It is useful for suggestions that are not phrases, such as single term...