29
Search Monkey Ange 2009/10/17

Search Monkey

  • Upload
    jh-lee

  • View
    684

  • Download
    3

Embed Size (px)

DESCRIPTION

可以讓你自行設計 想要的search result

Citation preview

Page 1: Search Monkey

Search MonkeyAnge

2009/10/17

Page 2: Search Monkey

What is SearchMonkey?

•  Search Monkey is an open pla(orm for using structured data to build more useful and relevant search results. 

• Query “Ang Lee” in Y! search •  Before: 

•  ACer: 

Page 3: Search Monkey
Page 4: Search Monkey

Why SearchMonkey? 

• Y! Search User ‐ get more rich informaHon and good user experiences 

• Site Owner, Developer ‐ customized presentaHon and bring more traffic to their sites 

Page 5: Search Monkey

Turn on Search Monkey ApplicaHon 

•  Choose a specific monkey from Search Gallery. hUp://tw.gallery.search.yahoo.com/ 

•  Some apps are default for search. 

Page 6: Search Monkey

Search Gallery 

Page 7: Search Monkey

User Side (view and enable)

• Login • Select an applicaHon  • Preview the result • Save the selected applicaHon 

• Example: Wikipedia 

Page 8: Search Monkey

Example: YouTube Monkey

• Youtube presentaHon in Y! web search result: hUp://tw.search.yahoo.com/search?p=%E5%BC%B5%E7%91%9E%E5%B8%8C+youtube

Page 9: Search Monkey

Example: My YouTube Monkey 

Page 10: Search Monkey

YouTube Video Page 

Page 11: Search Monkey

Developer Side 

•  Go to Dev Tool ‐ hUp://developer.search.yahoo.com/ 

•  PresentaHon Layer ‐ PresentaHon ApplicaHons are small PHP apps that display enhanced search results using data services.  

•  Custom Data Services ‐ Data Services provide structured informaHon to display in Yahoo! Search results.  

•  Data Feeds ‐ Data Feeds are XML feeds in SearchMonkey's naHve DataRSS format. Site owners can submit structured data to Yahoo! Search for inclusion in the Yahoo! Index. 

Page 12: Search Monkey

Custom Data Services 

•  Data Services provide structured informaHon to display in Yahoo! Search results.  

•  You can create a custom data service by calling an API or by extracHng structured data from web pages. 

•  You can create a new data service, start with a sample data service or import data service. 

•  Basic Info ‐> URLs ‐> Data ExtracHon ‐> ConfirmaHon 

Page 13: Search Monkey

Step 1: Specify you custom name, type, descripHon 

Page 14: Search Monkey

Step 2: Specify your trigger and test URLs 

•  Specify a url paUern to match against search results and trigger your data service. 

• MulHple wildcards are supported—you may begin and end your paUern with a wildcard, "*", which matches any string.  

•  Add  test urls •  Auto find urls 

Page 15: Search Monkey

Step 3: Define your page extracHon rules 

•  Specify XSLT code for extracHng informaHon from the page and represenHng that informaHon as DataRSS.  ‐ XSLT is a language for transforming XML documents into other XML documents. ‐ XSLT makes use of the expression language defined by XPATH for selecHng elements for processing.  

•  For assistance with wriHng XPATH expressions, try the XPather FireFox extension. ‐ hUps://addons.mozilla.org/en‐US/firefox/addon/1192 

Page 16: Search Monkey
Page 17: Search Monkey

Step 4: ConfirmaHon 

Page 18: Search Monkey

Create a New ApplicaHon 

•  PresentaHon ApplicaHons are small PHP apps that display enhanced search results using data services. 

•  You can use an exisHng data service or create a custom service below.  

•  You can create a new applicaHon, start with a sample applicaHon or import applicaHon. 

•  Basic Info ‐> URLs ‐> Data Services ‐> Appearance ‐> ConfirmaHon

Page 19: Search Monkey

Step 1: specify your applicaHon’s name, type and descripHon 

Page 20: Search Monkey

PresentaHon Templates (Enhanced Result)

• Enhanced Result ‐ Overwrites the search result itself — it can change the Htle, the summary, and more. 

‐ They are limited to a specific set of presenta:on elements, arranged in a par:cular format. ‐ Title, Summary, Image, Link, Dict 

Page 21: Search Monkey

PresentaHon Templates (Infobar) 

• Infobar ‐ An expandable pane beneath a search result that provides addiHonal informaHon about the result. 

‐ You can also use general HTML markup to create much more customized Infobars. 

Page 22: Search Monkey

Step 2: Specify your trigger, test URLs 

Page 23: Search Monkey

Step 3: select one or more data services 

Page 24: Search Monkey

Step 4: Map your data services to presentaHon layer 

Page 25: Search Monkey

Step 5: ConfirmaHon 

Page 26: Search Monkey

Publish Your ApplicaHon 

•  Three basic version types ‐ Dev: private ‐ Sharable: useable by any logged‐in user ‐ Gallery: a repository of high‐quality applicaHons  

•  You also can use the ‘export’ and ‘import’ funcHons to share your code with your colleagues. 

Page 27: Search Monkey

ACer Publishing with Sharing 

(Ange YouTube) hUp://gallery.search.yahoo.com/applicaHon?smid=SW1.s

Page 28: Search Monkey

Reference 

•  YDN ‐ hUp://developer.yahoo.com/searchmonkey/ 

•  DocumentaHon  ‐ hUp://developer.yahoo.com/searchmonkey/smguide/ 

•  Dev Tool ‐ hUp://developer.search.yahoo.com/wizard/index 

Page 29: Search Monkey

How does it work? 

•  Site owners/publishers share structured data with Yahoo! •  Site owners & third‐party developers build SearchMonkey apps 

•  Consumers customize their search experience with Enhanced Results or Infobars