Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Architectures

You're reading from   Building Serverless Architectures Unleash the power of AWS Lambdas for your applications

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher Packt
ISBN-13 9781787129191
Length 242 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Cagatay Gurturk Cagatay Gurturk
Author Profile Icon Cagatay Gurturk
Cagatay Gurturk
Arrow right icon
View More author details
Toc

Creating the suggester

Suggesters are one of the coolest features of CloudSearch that you can use to build an autocomplete system. We will create a suggester for the username field so that we can use it in a search field for our forum application.

To create a suggester, click on the Suggesters link on the left column and then on the Add Suggester button:

Here, you have to give a name to the suggester (we set username_suggester in our case) and a source field to create the suggester from. You can also select the Fuzzy Matching option that will tolerate typo errors and bring more similar results even though the keyword does not start with the given parameter.

After creating the suggester, CloudSearch should again index the documents, but as we do not have many documents at the moment, it should not take a lot of time.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime