Building Search into your Applications with Amazon CloudSearch

Building Search into your Applications with Amazon CloudSearch

小时 分钟 10 积分

SPL-74 - Version 3.0

© 2018 Amazon Web Services, Inc. and its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited.

Errors or corrections? Email us at

Other questions? Contact us at


This lab will introduce you to the basic concepts behind search engines, what they do and how they do it. You will learn how to create a search domain, configure it, upload data, build queries, and tune your ranking with Amazon CloudSearch. You will explore the features of the AWS console for Amazon CloudSearch, learning how easy it is to get started with CloudSearch. When you complete this lab, you will have all of the tools necessary to add search to your application.

Topics covered

This lab covers:

  • Understanding what search engines are and how CloudSearch works.
  • Managing and configuring search domains in CloudSearch, including creating a search domain and index data.
  • Querying a search domain to retrieve documents in multiple different ways, including queries that feature facets, geospatial searches, and field weighting.

Technical knowledge prerequisites

To successfully complete this lab, you should be familiar with AWS and the AWS Management Console. You should also have basic knowledge of HTML, JavaScript, and JSON. No previous search engine knowledge is required.

Start Lab

Notice the lab properties below the lab title:

  • setup - The estimated time to set up the lab environment
  • access - The time the lab will run before automatically shutting down
  • completion - The estimated time the lab should take to complete
  1. Launch your lab by clicking Start Lab

If you are prompted for a token, use the one distributed to you (or credits you've purchased).

A status bar shows the progress of the lab environment creation process (the AWS Management Console is accessible during lab resource creation, but your AWS resources may not be fully available until the process is complete).

  1. Open your lab by clicking Open Console

This will automatically log you into the AWS Management Console.

Please do not change the Region unless instructed.

Common login errors

Error : Federated login credentials

If you see this message:

  • Close the browser tab to return to your initial lab window
  • Wait a few seconds
  • Click Open Console again

You should now be able to access the AWS Management Console.

Error: You must first log out

If you see this message:

  • Click To logout, click here
  • Close the browser tab to return to your initial Qwiklabs window
  • Click Open Console again

Verifying Your Region in the AWS Management Console

With Amazon EC2, you can place instances in multiple locations. Amazon EC2 locations are composed of regions that contain Availability Zones. Regions are dispersed and located in separate geographic areas (US, EU, etc.). Availability Zones are distinct locations within a region that are engineered to be isolated from failures in other Availability Zones and to provide inexpensive, low-latency network connectivity to other Availability Zones in the same region.

By launching instances in separate regions, you can design your application to be closer to specific customers or to meet legal or other requirements. By launching instances in separate Availability Zones, you can protect your applications from localized regional failures.

  1. The AWS region name is always listed in the upper-right corner of the AWS Management Console, in the navigation bar.
  2. Make a note of the AWS region name, for example, US West (Oregon) that your lab is configured for. The AWS region was set for your lab on the Qwiklabs launch page.
  3. Use the chart below to determine the region code. You will normally use the code (us-west-2) instead of the region name (US West (Oregon)) whenever your lab asks you to specify your region.
Region Name Region Code
US East (Northern Virginia) Region us-east-1
US West (Northern California) Region us-west-1
US West (Oregon) Region us-west-2
Asia Pacific (Tokyo) Region ap-northeast-1
Asia Pacific (Singapore) Region ap-southeast-1
Asia Pacific (Sydney) Region ap-southeast-2
EU (Ireland) Region eu-west-1
South America (Sao Paulo) Region sa-east-1

For more information about regions, see

Join Qwiklabs to read the rest of this lab...and more!

  • Get temporary access to the Amazon Web Services Console.
  • Over 200 labs from beginner to advanced levels.
  • Bite-sized so you can learn at your own pace.
Join to Start This Lab