SlideShare uma empresa Scribd logo
1 de 54
Baixar para ler offline
Search Patterns
Jon Handler, Amazon CloudSearch Solution Architect
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Agenda
!
!
!
!
!
!
!

 
 
 
 
 
 
 

Amazon CloudSearch Basics
Searching in the Cloud
Ranking
Location-Based Search
Faceting
Mixed Data Sources
Performance

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Patterns
!
!
!
!

  Title-Body Search
  Social Search Patterns
  Mobile Search Patterns
eCommerce Patterns

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
AMAZON CLOUDSEARCH
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Search, In The Cloud

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
The Cloud is Elastic
DATA

Document Quantity and Size

SEARCH INSTANCE

SEARCH INSTANCE

SEARCH INSTANCE

SEARCH INSTANCE

SEARCH INSTANCE

SEARCH INSTANCE

SEARCH INSTANCE

SEARCH INSTANCE

SEARCH INSTANCE

Index Partition 1
Copy 1

Index Partition 2
Copy 1

Index Partition n
Copy 1

TRAFFIC

Search
Request
Volume and
Complexity

Index Partition 1
Copy 2

Index Partition 1
Copy n

Index Partition 2
Copy 2

Index Partition 2
Copy n

Index Partition n
Copy 2

Index Partition n
Copy n

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
SEARCHING IN THE CLOUD
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
CloudSearch Batches
{ "type": "add",!
"id": "tt0076759",!
"fields": { !
"title": "Star Wars",!
! "director": "Lucas, George",!
! "year": 1977,!
! "genre": ["Action","Adventure","Fantasy","Sci-Fi"],!
! "actor": ["Ford, Harrison","Fisher, Carrie","Hamill,!
!
Mark","Jones, James Earl","Guinness, !
! ! ! !
Alec",...] } },!

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Bootstrapping Data

Amazon
CloudSearch

Amazon EC2

Amazon SQS

Source
System

Processing
Script

Amazon EC2

Queuing Batching

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Configuring for Search
!   Text fields for individual word search
•  User-generated and external text – titles, descriptions

!   Literal fields for exact matches
•  Application-generated text like facets

!   Integer fields for range searching and ranking

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Sending Queries
http(s)://<endpoint>/2011-02-01/search?
!   Simple searches
•  q=<text>

!   Filtering
•  bq= (and title:'iron man' genre:'Action')

!   Filtering with integer ranges
•  bq=(and 'iron man' year:..2010)

!   Geo filtering
•  bq=(and 'iron man' latitude:12700..12900 longitude:5700..5800)

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Search Results
{ "rank": "-text_relevance",!
"match-expr": "(label 'star wars')",!
"hits": { "found": 7, "start": 0,!
"hit": [{"id": "tt1185834"},!
{"id": "tt0076759"},!
{"id": "tt0086190"},!
{"id": "tt0120915"},!
{"id": "tt0121765"},!
{"id": "tt0080684"},!
{"id": "tt0121766"} ]!
} ...!
}!
!
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Updating CloudSearch
Update Processor

Web Server

Users

Amazon EC2

Amazon SQS

Amazon EC2

DynamoDB

Amazon RDS

Amazon
CloudSearch

Amazon S3

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
BASIC RANKING
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Customizing Ranking
! text_relevance and cs.text_relevance
!   Rank expressions
•  Compute a score for each document
•  &rank=<function>

!   Defined in the console
!   Defined at query-time
•  &q='iron-man'&rank-recency=text_relevance + year
&rank=recency

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Document Structure
Movie
title
description
user_rating
likes
release_date
latitude
longitude
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Field Weighting

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Field Weighting
!   Adjust relative importance of fields
!   &rank-title_boost=
cs.text_relevance({"weights":{"title":4.0},
"default_weight":1})

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Popularity

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Popularity
!   Convert floating point to integer
!   Weight by the number of ranks
!   rank-pop=
(user-rating - 2) * log10(number-user-ranks) * 10 +
metascore * 3

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Freshness

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Freshness
!   Exponential decay function

r = ce

− λt

!   &rank-decay=
200*Math.exp(-0.1*days_ago)

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Rank Expressions: Combined
!   &rank-combined=1.0 * title + 0.5 * popularity + 0.3 *
freshness
!   &rank=combined

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
LOCATION-BASED SEARCH
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Mobile Experience
Cancel

Iron Man!

Iron Man

Done

Iron Man 3 (2013)!
When Tony Stark's world is torn apart by a
formidable terrorist called the Mandarin, he
starts an odyssey of rebuilding and retribution. !

Iron Man 2 (2010)!
Tony Stark has declared himself Iron Man and
installed world peace... or so he thinks. He soon
realizes that not only is there a mad man...!

Iron Man (2008)!

!

When wealthy industrialist Tony Stark is forced
to build an armored suit after a life-threatening
incident, he ultimately decides to use its
technology to fight against evil. !

The Man With The Iron Fists (2012) !
On the hunt for a fabled treasure of gold, a band
of warriors, assassins, and a rogue British soldier
descend upon a village in feudal China, where a
humble blacksmith...!
Movies

Search

Social

Nearby

Account

Movies

Search

Social

Nearby

Account

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Encoding Location
Movie
title

!   Latitude and longitude expressed as
integers

description
user_rating
likes
release_date
latitude
longitude
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Bounding Box Search
!   Latitude min/max
!   Longitude min/max
bq=(and 'theater'
latitude:12700..12900
longitude:5700..5800)

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Location Sort
!   Cartesian distance function
(lat − latuser )2 + (lon − lonuser )2

!   &rank-geo=sqrt(pow(latitude - lat, 2) +
pow(longitude - lon, 2)
!   &rank=-geo

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
FACETING
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Facets

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Facets

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Simple Faceting: Document

Movie
title
description
genre

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Simple Faceting: Configuration

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Simple Faceting: Query
q=iron+man&facet=genre
{"rank":	
  "-­‐text_relevance",	
  
"match-­‐expr":	
  "(label	
  'star	
  wars')",	
  
"hits":	
  {"found":	
  7,	
  "start":	
  0,	
  "hit":	
  []	
  },	
  
"facets":	
  {	
  
	
  	
  "genre":	
  {	
  
	
  	
  	
  	
  "constraints":	
  [	
  
	
  	
  	
  	
  	
  	
  {"value":	
  "Family",	
  "count":	
  62},	
  
	
  	
  	
  	
  	
  	
  {"value":	
  "Action/Adventure",	
  "count":	
  21},	
  
	
  	
  	
  	
  	
  	
  {"value":	
  "Drama",	
  "count":	
  5	
  },	
  
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Simple Faceting: UI
<div	
  class='facet'>	
  
	
  	
  	
  	
  <ul	
  class='facet_list'>	
  
	
  	
  	
  	
  	
  	
  	
  	
  <?php	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  $genres	
  =	
  $resultsObj-­‐>facets-­‐>genre-­‐>constraints;	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  for	
  ($i	
  =	
  0;	
  $i	
  <	
  count($genres);	
  $i++)	
  {	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  $curGenre	
  =	
  $genres[$i];	
  $curCount	
  =	
  $thisGenre-­‐>count;	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  ?>	
  
	
  	
  	
  	
  	
  	
  	
  	
  <li	
  class='facet_item'>	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  <div	
  class='facet_name'><?=$curGenre?></div>	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  <div	
  class='facet_count'><?=$curCount?></div>	
  
	
  	
  	
  	
  	
  	
  	
  	
  </li>	
  
	
  	
  	
  	
  	
  	
  	
  	
  <?php	
  }	
  ?>	
  
	
  	
  	
  	
  </ul>	
  
</div>	
  
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Facets

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Document
Movie
title
description
oscar1
oscar2
oscar3

!
!
!
!
!

 
 
 
 
 

title: Lincoln
description: ...
oscar1: Awards
oscar2: Awards/Best Actor
oscar3: Awards/Best Actor/Daniel Day
Lewis

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Query
&q=lincoln&facet=oscar1,oscar2,oscar3
{"rank":	
  "-­‐text_relevance",	
  "hits":{...},	
  
"facets":	
  {	
  
	
  	
  "oscar1":	
  {	
  
	
  	
  	
  	
  "constraints":	
  [	
  
	
  	
  	
  	
  	
  	
  {"value":	
  "Awards",	
  "count":	
  23},	
  
	
  	
  	
  	
  	
  	
  {"value":	
  "Nominations",	
  "count":	
  124}]},	
  
	
  	
  "oscar2":	
  {	
  
	
  	
  	
  	
  "constraints":	
  [	
  
	
  	
  	
  	
  	
  	
  {"value":	
  "Awards/Best	
  Actor",	
  "count":	
  6},	
  
	
  	
  	
  	
  	
  	
  {"value":	
  "Awards/Best	
  Actress",	
  "count":	
  3}...]},	
  	
  	
  	
  
	
  	
  "oscar3":	
  {	
  
	
  	
  	
  	
  "constraints":	
  [	
  
	
  	
  	
  	
  	
  	
  {"value":	
  "Awards/Best	
  Actor/Daniel	
  Day	
  Lewis",	
  "count":	
  1},	
  
	
  	
  	
  	
  	
  	
  {"value":	
  "Awards/Best	
  Actor/Denzel	
  Washington",	
  "count":	
  2}...]},	
  	
  	
  	
  
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Drilldown
!
!
!
!

bq=oscar1:'Awards'
bq=oscar2:'Awards/Best Actor'
bq=oscar3:'Awards/Best Actor/Daniel Day Lewis'
bq=(and 'star' oscar2:'Awards/Best Actor')

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
MIXED DATA SOURCES
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Document
Movie

Showtime

Review

type

type

type

title

title

title

description

theater_name

movie_name

user_rating

city

author

likes

latitude

url

release_date

longitude

body

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Heterogeneous Data

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Multi Domain

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Trade-offs
!   Multiple domain
•  Independent configuration
•  Independent scale

!   Single domain
•  Simpler
•  Lower cost
•  bq=(and 'iron man' type:'movie')

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
TUNING
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
What to Track
!
!
!
!

 
 
 
 

User queries
Responses
Response times
Click positions

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Tuning Relevance
!   Return relevance values
!   Check no-result queries
!   Check most common results

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Tuning Performance
!
!
!
!

 
 
 
 

Identify consistent slow queries
Tend towards text matching
Cache slow queries when possible
Benchmark with JMeter or Siege

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Q&A

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Resources
!   Amazon CloudSearch Overview Page
http://aws.amazon.com/cloudsearch/
•  Developer Guide
•  FAQs, Articles
•  Community Forum
•  Tutorial

!   Free 30-day trial
!   Contact: handler@amazon.com
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

Mais conteúdo relacionado

Mais procurados

Social structured data is your friend brighton seo april 2013
Social structured data is your friend   brighton seo april 2013Social structured data is your friend   brighton seo april 2013
Social structured data is your friend brighton seo april 2013
Alex Moss
 

Mais procurados (20)

Advanced WordPress: Session II
Advanced WordPress: Session IIAdvanced WordPress: Session II
Advanced WordPress: Session II
 
Advanced WordPress: Session I
Advanced WordPress: Session IAdvanced WordPress: Session I
Advanced WordPress: Session I
 
Onsite SEO Checklist
Onsite SEO ChecklistOnsite SEO Checklist
Onsite SEO Checklist
 
Understanding SEO For Photographers
Understanding SEO For PhotographersUnderstanding SEO For Photographers
Understanding SEO For Photographers
 
Social Media Marketing for the Lean Startup
Social Media Marketing for the Lean StartupSocial Media Marketing for the Lean Startup
Social Media Marketing for the Lean Startup
 
Hands On WordPress SEO Mozinar - June 4, 2013
Hands On WordPress SEO Mozinar - June 4, 2013Hands On WordPress SEO Mozinar - June 4, 2013
Hands On WordPress SEO Mozinar - June 4, 2013
 
International SEO - Search Love London 2012
International SEO - Search Love London 2012International SEO - Search Love London 2012
International SEO - Search Love London 2012
 
SEO Audit Checklist and Worksheet - over 90 SEO checkpoints!
SEO Audit Checklist and Worksheet - over 90 SEO checkpoints!SEO Audit Checklist and Worksheet - over 90 SEO checkpoints!
SEO Audit Checklist and Worksheet - over 90 SEO checkpoints!
 
SEO Strategies by Thirdparty Labs and Shovemedia
SEO Strategies by Thirdparty Labs and ShovemediaSEO Strategies by Thirdparty Labs and Shovemedia
SEO Strategies by Thirdparty Labs and Shovemedia
 
Advanced SEO for WordPress
Advanced SEO for WordPressAdvanced SEO for WordPress
Advanced SEO for WordPress
 
Krugerpark.com 20120110
Krugerpark.com 20120110Krugerpark.com 20120110
Krugerpark.com 20120110
 
Meta tag creation
Meta tag creationMeta tag creation
Meta tag creation
 
Search Engine Optimize for WordPress in 3 Easy Steps
Search Engine Optimize for WordPress in 3 Easy StepsSearch Engine Optimize for WordPress in 3 Easy Steps
Search Engine Optimize for WordPress in 3 Easy Steps
 
Social structured data is your friend brighton seo april 2013
Social structured data is your friend   brighton seo april 2013Social structured data is your friend   brighton seo april 2013
Social structured data is your friend brighton seo april 2013
 
Top 10 Onsite SEO Practices
Top 10 Onsite SEO PracticesTop 10 Onsite SEO Practices
Top 10 Onsite SEO Practices
 
Seo Terminology - On Page - Off Page SEO Concepts - Digital Marketing Courses
Seo Terminology - On Page - Off Page SEO Concepts - Digital Marketing Courses Seo Terminology - On Page - Off Page SEO Concepts - Digital Marketing Courses
Seo Terminology - On Page - Off Page SEO Concepts - Digital Marketing Courses
 
SEO Mistakes
SEO MistakesSEO Mistakes
SEO Mistakes
 
Seo content writing guide
Seo content writing guideSeo content writing guide
Seo content writing guide
 
Digital marketing
Digital marketingDigital marketing
Digital marketing
 
SEO with the SEOGoddess Workshop
SEO with the SEOGoddess WorkshopSEO with the SEOGoddess Workshop
SEO with the SEOGoddess Workshop
 

Semelhante a Dzone Webinar: Search Patterns with Amazon CloudSearch

Semelhante a Dzone Webinar: Search Patterns with Amazon CloudSearch (20)

Delivering Better Search For WordPress - AWS Webcast
Delivering Better Search For WordPress - AWS WebcastDelivering Better Search For WordPress - AWS Webcast
Delivering Better Search For WordPress - AWS Webcast
 
AWS Webcast - Using Amazon CloudFront-Accelerate Your Static, Dynamic, Intera...
AWS Webcast - Using Amazon CloudFront-Accelerate Your Static, Dynamic, Intera...AWS Webcast - Using Amazon CloudFront-Accelerate Your Static, Dynamic, Intera...
AWS Webcast - Using Amazon CloudFront-Accelerate Your Static, Dynamic, Intera...
 
CIS13: AWS Identity and Access Management
CIS13: AWS Identity and Access ManagementCIS13: AWS Identity and Access Management
CIS13: AWS Identity and Access Management
 
AWS Webcast - Using JW Player and Amazon CloudFront to Stream HLS Video
AWS Webcast - Using JW Player and Amazon CloudFront to Stream HLS VideoAWS Webcast - Using JW Player and Amazon CloudFront to Stream HLS Video
AWS Webcast - Using JW Player and Amazon CloudFront to Stream HLS Video
 
AWS CodeStar 및 Cloud9을 통한 서버리스(Serverless) 앱 개발 길잡이 - 윤석찬 (AWS 테크에반젤리스트)
AWS CodeStar 및 Cloud9을 통한 서버리스(Serverless) 앱 개발 길잡이 - 윤석찬 (AWS 테크에반젤리스트)AWS CodeStar 및 Cloud9을 통한 서버리스(Serverless) 앱 개발 길잡이 - 윤석찬 (AWS 테크에반젤리스트)
AWS CodeStar 및 Cloud9을 통한 서버리스(Serverless) 앱 개발 길잡이 - 윤석찬 (AWS 테크에반젤리스트)
 
AWS Webcast - Introducing Amazon RDS for PostgreSQL
AWS Webcast - Introducing Amazon RDS for PostgreSQLAWS Webcast - Introducing Amazon RDS for PostgreSQL
AWS Webcast - Introducing Amazon RDS for PostgreSQL
 
AWS Lambda@Edge でできること!
AWS Lambda@Edge でできること!AWS Lambda@Edge でできること!
AWS Lambda@Edge でできること!
 
Accelerating-ML-Adoption-with-Our-New-AI-Services
Accelerating-ML-Adoption-with-Our-New-AI-ServicesAccelerating-ML-Adoption-with-Our-New-AI-Services
Accelerating-ML-Adoption-with-Our-New-AI-Services
 
ABD338_MirrorWeb - Powering Large-scale, Full-text Search for the UK Governme...
ABD338_MirrorWeb - Powering Large-scale, Full-text Search for the UK Governme...ABD338_MirrorWeb - Powering Large-scale, Full-text Search for the UK Governme...
ABD338_MirrorWeb - Powering Large-scale, Full-text Search for the UK Governme...
 
Introduction to AI/ML with AWS
Introduction to AI/ML with AWSIntroduction to AI/ML with AWS
Introduction to AI/ML with AWS
 
Enrich Search User Experience Using Amazon CloudSearch (SVC302) | AWS re:Inve...
Enrich Search User Experience Using Amazon CloudSearch (SVC302) | AWS re:Inve...Enrich Search User Experience Using Amazon CloudSearch (SVC302) | AWS re:Inve...
Enrich Search User Experience Using Amazon CloudSearch (SVC302) | AWS re:Inve...
 
[AWS Start-up ゼミ / DevDay 編] よくある課題を一気に解説! 御社の技術レベルがアップする 2018 秋期講習
[AWS Start-up ゼミ / DevDay 編] よくある課題を一気に解説! 御社の技術レベルがアップする 2018 秋期講習[AWS Start-up ゼミ / DevDay 編] よくある課題を一気に解説! 御社の技術レベルがアップする 2018 秋期講習
[AWS Start-up ゼミ / DevDay 編] よくある課題を一気に解説! 御社の技術レベルがアップする 2018 秋期講習
 
AWS Webcast - Build a Scalable Search Engine with the New Amazon CloudSearch
AWS Webcast - Build a Scalable Search Engine with the New Amazon CloudSearchAWS Webcast - Build a Scalable Search Engine with the New Amazon CloudSearch
AWS Webcast - Build a Scalable Search Engine with the New Amazon CloudSearch
 
Cloud 101 (Old)
Cloud 101 (Old)Cloud 101 (Old)
Cloud 101 (Old)
 
AWS Webcast - Accelerating Application Performance Using In-Memory Caching in...
AWS Webcast - Accelerating Application Performance Using In-Memory Caching in...AWS Webcast - Accelerating Application Performance Using In-Memory Caching in...
AWS Webcast - Accelerating Application Performance Using In-Memory Caching in...
 
Enriching your app with Image recognition and AWS AI services Hebrew Webinar
Enriching your app with Image recognition and AWS AI services Hebrew WebinarEnriching your app with Image recognition and AWS AI services Hebrew Webinar
Enriching your app with Image recognition and AWS AI services Hebrew Webinar
 
Customizing AWS DeepRacer Action Space
Customizing AWS DeepRacer Action SpaceCustomizing AWS DeepRacer Action Space
Customizing AWS DeepRacer Action Space
 
AWS Webcast - High Availability with Route 53 DNS Failover
AWS Webcast - High Availability with Route 53 DNS FailoverAWS Webcast - High Availability with Route 53 DNS Failover
AWS Webcast - High Availability with Route 53 DNS Failover
 
Deep Dive on Amazon S3 Storage Classes: Creating Cost Efficiencies across You...
Deep Dive on Amazon S3 Storage Classes: Creating Cost Efficiencies across You...Deep Dive on Amazon S3 Storage Classes: Creating Cost Efficiencies across You...
Deep Dive on Amazon S3 Storage Classes: Creating Cost Efficiencies across You...
 
AWS Webinar - Design for Availability-13_09_10
AWS Webinar - Design for Availability-13_09_10AWS Webinar - Design for Availability-13_09_10
AWS Webinar - Design for Availability-13_09_10
 

Mais de Michael Bohlig

EDU2.0 and Amazon CloudSearch
EDU2.0 and Amazon CloudSearchEDU2.0 and Amazon CloudSearch
EDU2.0 and Amazon CloudSearch
Michael Bohlig
 
Coursera amazon cloudsearch presentation
Coursera amazon cloudsearch presentation Coursera amazon cloudsearch presentation
Coursera amazon cloudsearch presentation
Michael Bohlig
 

Mais de Michael Bohlig (8)

Amazon Cloudsearch Session With Elsevier: re:Invent 2013
Amazon Cloudsearch Session With Elsevier: re:Invent 2013 Amazon Cloudsearch Session With Elsevier: re:Invent 2013
Amazon Cloudsearch Session With Elsevier: re:Invent 2013
 
Building Great Mobile Search with Productsy and Amazon CloudSearch
Building Great Mobile Search with Productsy and Amazon CloudSearchBuilding Great Mobile Search with Productsy and Amazon CloudSearch
Building Great Mobile Search with Productsy and Amazon CloudSearch
 
Amazon Redshift - Bay Area CloudSearch Meetup June 19, 2013
Amazon Redshift - Bay Area CloudSearch Meetup June 19, 2013Amazon Redshift - Bay Area CloudSearch Meetup June 19, 2013
Amazon Redshift - Bay Area CloudSearch Meetup June 19, 2013
 
Amazon CloudSearch User Talk - Naked Wines
Amazon CloudSearch User Talk - Naked Wines Amazon CloudSearch User Talk - Naked Wines
Amazon CloudSearch User Talk - Naked Wines
 
Tuning Search Requests - Amazon CloudSearch
Tuning Search Requests - Amazon CloudSearchTuning Search Requests - Amazon CloudSearch
Tuning Search Requests - Amazon CloudSearch
 
Snapguide - Amazon Cloudsearch
Snapguide - Amazon CloudsearchSnapguide - Amazon Cloudsearch
Snapguide - Amazon Cloudsearch
 
EDU2.0 and Amazon CloudSearch
EDU2.0 and Amazon CloudSearchEDU2.0 and Amazon CloudSearch
EDU2.0 and Amazon CloudSearch
 
Coursera amazon cloudsearch presentation
Coursera amazon cloudsearch presentation Coursera amazon cloudsearch presentation
Coursera amazon cloudsearch presentation
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 

Dzone Webinar: Search Patterns with Amazon CloudSearch

  • 1. Search Patterns Jon Handler, Amazon CloudSearch Solution Architect © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 2. Agenda ! ! ! ! ! ! !               Amazon CloudSearch Basics Searching in the Cloud Ranking Location-Based Search Faceting Mixed Data Sources Performance © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 3. Patterns ! ! ! !   Title-Body Search   Social Search Patterns   Mobile Search Patterns eCommerce Patterns © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 4. © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 5. AMAZON CLOUDSEARCH © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 6. Search, In The Cloud © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 7. © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 8. The Cloud is Elastic DATA Document Quantity and Size SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE Index Partition 1 Copy 1 Index Partition 2 Copy 1 Index Partition n Copy 1 TRAFFIC Search Request Volume and Complexity Index Partition 1 Copy 2 Index Partition 1 Copy n Index Partition 2 Copy 2 Index Partition 2 Copy n Index Partition n Copy 2 Index Partition n Copy n © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 9. SEARCHING IN THE CLOUD © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 10. CloudSearch Batches { "type": "add",! "id": "tt0076759",! "fields": { ! "title": "Star Wars",! ! "director": "Lucas, George",! ! "year": 1977,! ! "genre": ["Action","Adventure","Fantasy","Sci-Fi"],! ! "actor": ["Ford, Harrison","Fisher, Carrie","Hamill,! ! Mark","Jones, James Earl","Guinness, ! ! ! ! ! Alec",...] } },! © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 11. Bootstrapping Data Amazon CloudSearch Amazon EC2 Amazon SQS Source System Processing Script Amazon EC2 Queuing Batching © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 12. Configuring for Search !   Text fields for individual word search •  User-generated and external text – titles, descriptions !   Literal fields for exact matches •  Application-generated text like facets !   Integer fields for range searching and ranking © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 13. Sending Queries http(s)://<endpoint>/2011-02-01/search? !   Simple searches •  q=<text> !   Filtering •  bq= (and title:'iron man' genre:'Action') !   Filtering with integer ranges •  bq=(and 'iron man' year:..2010) !   Geo filtering •  bq=(and 'iron man' latitude:12700..12900 longitude:5700..5800) © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 14. Search Results { "rank": "-text_relevance",! "match-expr": "(label 'star wars')",! "hits": { "found": 7, "start": 0,! "hit": [{"id": "tt1185834"},! {"id": "tt0076759"},! {"id": "tt0086190"},! {"id": "tt0120915"},! {"id": "tt0121765"},! {"id": "tt0080684"},! {"id": "tt0121766"} ]! } ...! }! ! © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 15. Updating CloudSearch Update Processor Web Server Users Amazon EC2 Amazon SQS Amazon EC2 DynamoDB Amazon RDS Amazon CloudSearch Amazon S3 © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 16. BASIC RANKING © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 17. © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 18. Customizing Ranking ! text_relevance and cs.text_relevance !   Rank expressions •  Compute a score for each document •  &rank=<function> !   Defined in the console !   Defined at query-time •  &q='iron-man'&rank-recency=text_relevance + year &rank=recency © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 19. Document Structure Movie title description user_rating likes release_date latitude longitude © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 20. Field Weighting © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 21. Field Weighting !   Adjust relative importance of fields !   &rank-title_boost= cs.text_relevance({"weights":{"title":4.0}, "default_weight":1}) © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 22. Popularity © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 23. Popularity !   Convert floating point to integer !   Weight by the number of ranks !   rank-pop= (user-rating - 2) * log10(number-user-ranks) * 10 + metascore * 3 © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 24. Freshness © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 25. Freshness !   Exponential decay function r = ce − λt !   &rank-decay= 200*Math.exp(-0.1*days_ago) © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 26. Rank Expressions: Combined !   &rank-combined=1.0 * title + 0.5 * popularity + 0.3 * freshness !   &rank=combined © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 27. © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 28. LOCATION-BASED SEARCH © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 29. Mobile Experience Cancel Iron Man! Iron Man Done Iron Man 3 (2013)! When Tony Stark's world is torn apart by a formidable terrorist called the Mandarin, he starts an odyssey of rebuilding and retribution. ! Iron Man 2 (2010)! Tony Stark has declared himself Iron Man and installed world peace... or so he thinks. He soon realizes that not only is there a mad man...! Iron Man (2008)! ! When wealthy industrialist Tony Stark is forced to build an armored suit after a life-threatening incident, he ultimately decides to use its technology to fight against evil. ! The Man With The Iron Fists (2012) ! On the hunt for a fabled treasure of gold, a band of warriors, assassins, and a rogue British soldier descend upon a village in feudal China, where a humble blacksmith...! Movies Search Social Nearby Account Movies Search Social Nearby Account © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 30. Encoding Location Movie title !   Latitude and longitude expressed as integers description user_rating likes release_date latitude longitude © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 31. Bounding Box Search !   Latitude min/max !   Longitude min/max bq=(and 'theater' latitude:12700..12900 longitude:5700..5800) © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 32. Location Sort !   Cartesian distance function (lat − latuser )2 + (lon − lonuser )2 !   &rank-geo=sqrt(pow(latitude - lat, 2) + pow(longitude - lon, 2) !   &rank=-geo © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 33. FACETING © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 34. Facets © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 35. Facets © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 36. Simple Faceting: Document Movie title description genre © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 37. Simple Faceting: Configuration © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 38. Simple Faceting: Query q=iron+man&facet=genre {"rank":  "-­‐text_relevance",   "match-­‐expr":  "(label  'star  wars')",   "hits":  {"found":  7,  "start":  0,  "hit":  []  },   "facets":  {      "genre":  {          "constraints":  [              {"value":  "Family",  "count":  62},              {"value":  "Action/Adventure",  "count":  21},              {"value":  "Drama",  "count":  5  },   © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 39. Simple Faceting: UI <div  class='facet'>          <ul  class='facet_list'>                  <?php                          $genres  =  $resultsObj-­‐>facets-­‐>genre-­‐>constraints;                          for  ($i  =  0;  $i  <  count($genres);  $i++)  {                                  $curGenre  =  $genres[$i];  $curCount  =  $thisGenre-­‐>count;                    ?>                  <li  class='facet_item'>                          <div  class='facet_name'><?=$curGenre?></div>                          <div  class='facet_count'><?=$curCount?></div>                  </li>                  <?php  }  ?>          </ul>   </div>   © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 40. Facets © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 41. Document Movie title description oscar1 oscar2 oscar3 ! ! ! ! !           title: Lincoln description: ... oscar1: Awards oscar2: Awards/Best Actor oscar3: Awards/Best Actor/Daniel Day Lewis © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 42. Query &q=lincoln&facet=oscar1,oscar2,oscar3 {"rank":  "-­‐text_relevance",  "hits":{...},   "facets":  {      "oscar1":  {          "constraints":  [              {"value":  "Awards",  "count":  23},              {"value":  "Nominations",  "count":  124}]},      "oscar2":  {          "constraints":  [              {"value":  "Awards/Best  Actor",  "count":  6},              {"value":  "Awards/Best  Actress",  "count":  3}...]},            "oscar3":  {          "constraints":  [              {"value":  "Awards/Best  Actor/Daniel  Day  Lewis",  "count":  1},              {"value":  "Awards/Best  Actor/Denzel  Washington",  "count":  2}...]},         © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 43. Drilldown ! ! ! ! bq=oscar1:'Awards' bq=oscar2:'Awards/Best Actor' bq=oscar3:'Awards/Best Actor/Daniel Day Lewis' bq=(and 'star' oscar2:'Awards/Best Actor') © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 44. MIXED DATA SOURCES © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 45. Document Movie Showtime Review type type type title title title description theater_name movie_name user_rating city author likes latitude url release_date longitude body © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 46. Heterogeneous Data © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 47. Multi Domain © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 48. Trade-offs !   Multiple domain •  Independent configuration •  Independent scale !   Single domain •  Simpler •  Lower cost •  bq=(and 'iron man' type:'movie') © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 49. TUNING © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 50. What to Track ! ! ! !         User queries Responses Response times Click positions © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 51. Tuning Relevance !   Return relevance values !   Check no-result queries !   Check most common results © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 52. Tuning Performance ! ! ! !         Identify consistent slow queries Tend towards text matching Cache slow queries when possible Benchmark with JMeter or Siege © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 53. Q&A © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
  • 54. Resources !   Amazon CloudSearch Overview Page http://aws.amazon.com/cloudsearch/ •  Developer Guide •  FAQs, Articles •  Community Forum •  Tutorial !   Free 30-day trial !   Contact: handler@amazon.com © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.