Weitere ähnliche Inhalte Mehr von Amazon Web Services (20) Kürzlich hochgeladen (20) AWS Webcast - Getting Started With CloudSearch: Add Powerful Search To Your Web Application 1. Getting Started With Amazon CloudSearch:
Add Powerful Search To Your Web Application
Jon Handler
© 2012 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. © 2012 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. What is Search
Shoes
© 2012 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. Do You Want Search With That?
Build your own – database, home-rolled, site search
Open source
Legacy enterprise search
© 2012 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. Search Challenges
Complex, expertise required
Costly, often with up-front expenditure
Long time to market, innovation and experimentation are
slowed
Operational overhead is undifferentiated work
© 2012 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. Amazon CloudSearch
Pay for infrastructure you need when you need it
Low cost
No need to guess capacity
Experiment fast with low risk
We do the undifferentiated heavy lifting
Go global in minutes
© 2012 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. Amazon CloudSearch Architecture
DNS / Load Balancing AWS Query
Search Domain
Search API Console Doc Command Console Config Command Console
Svc API Line Tools API Line Tools
SEARCH SERVICE DOCUMENT SERVICE CONFIG SERVICE
© 2012 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. Automatic Scaling
DATA Document Quantity and Size
SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE
Index Partition 1 Index Partition 2 Index Partition n
Copy 1 Copy 1 Copy 1
TRAFFIC
Search
Request
Volume and SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE
Complexity Index Partition 1 Index Partition 2 Index Partition n
Copy 2 Copy 2 Copy 2
SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE
Index Partition 1 Index Partition 2 Index Partition n
Copy n Copy n Copy n
© 2012 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. SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE
Index Partition 1 Index Partition 2 Index Partition n
Copy 1 Copy 1 Copy 1
Compute
SEARCH INSTANCE Storage
SEARCH INSTANCE SEARCH INSTANCE
Index Partition 1 LoadCopy 2 2
Balancing
Index Partition Index Partition n
Copy 2 Copy 2
Security
SEARCH INSTANCE SEARCH INSTANCE SEARCH INSTANCE
Index Partition 1 Index Partition 2 Index Partition n
Copy n Copy n Copy n
© 2012 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. © 2012 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. Text Search
© 2012 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. Highly Relevant Results
© 2012 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. Faceted
Drilldown
© 2012 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. Integer Range
Searching
© 2012 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. Complex Queries
© 2012 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. Search Query Processing
564 726
Query 726 564
123 123
Matching Filtering Ranking Sorting
© 2012 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. Reference Architecture
© 2012 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. Create An Amazon CloudSearch Domain
© 2012 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. Text fields for
matching user terms
Result enabled to
retrieve source data
© 2012 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. Literal fields for
Faceting
Facet enabled to
retrieve facets
Search enabled for
narrowing
© 2012 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. Integer fields for
ranking, narrowing
© 2012 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. Configure the Domain
© 2012 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. Data Preparation and Upload
SDF
Batch
Amazon
Search CloudSearch
Documents
© 2012 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. CloudSearch SDF
[{"type":"add",
"id": "b007oznzg0",
"version": 1,
"lang": "en",
"fields": {
"title":"Kindle Paperwhite",
"description":"World's most advanced e-reader",
"category": ["Electronics","eBook Readers"],
"price":11900
} }, ...]
© 2012 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. Document Service API
http(s)://< document service endpoint >/2011-02-
01/documents/batch
Accept: application/json
Content-Length: 1176
Content-Type: application/json
Host: doc.imdb-movies-rr2f34ofg56xneuemujamut52i.us-east-1.cloudsearch.amazonaws.com
[{ ,"id":"b007oznzg0","version": 1,"lang": "en","fields": {"title":"Kindle
Paperwhite","description":"World's most advanced e-reader","category":["Electronics","eBook
Readers"],"price":11900} },
{ , "id": "tt0434409", "version": 1337648735 } ]
© 2012 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. Search Service API
http(s)://< search service endpoint>/2011-02-01/search?
Simple searches
• q= text
Boolean combination of fields
• bq= (or field:'value1' (and field:'value2' field:'value3'))
Faceting
• facet= comma separated list of facet fields
Pagination
• start=, size=
Customized ranking
• rank= sort results based on the rank expression provided
© 2012 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. Search Results
{"rank": "-text_relevance",
"match-expr": "(label 'kindle paperwhite')",
"hits": { "found": 204, "start": 0,
"hit": [ { "id": "sontsst12cf5f88b42" },
{ "id": "sopvopr12ab017f082" },
{ "id": "sorzrpw12ac468a13b" },
] },
...
}
© 2012 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. IMDB DATA DEMO
© 2012 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. Pricing
Get started for just $2.40/day; $75/month
AWS Calculator
http://calculator.s3.amazonaws.com/calc5.html
Free Trial
© 2012 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. Wrap Up
Powerful search is a critical component of today's
applications
Amazon CloudSearch makes adding search easy
Create a domain, POST documents, GET search results
© 2012 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. Resources and Q&A
Amazon CloudSearch Overview Page
http://aws.amazon.com/cloudsearch/
• FAQs
• Community Forum
• Documentation & Getting Started Tutorial (IMDb)
Demos and Tutorials
• What Is Amazon CloudSearch
• Introducing Amazon CloudSearch (Features)
• Building a Search Application Using Amazon CloudSearch
© 2012 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. Thank You
Jon Handler / handler@amazon.com
© 2012 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.