Search Monkey

  • View
    673

  • Download
    3

Embed Size (px)

DESCRIPTION

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

Text of Search Monkey

  • 1. Search Monkey Ange 2009/10/17

2. WhatisSearchMonkey? SearchMonkeyisanopenpla(ormforusingstructureddatatobuildmoreusefulandrelevantsearchresults. QueryAngLeeinY!search Before: ACer: 3. WhySearchMonkey?Y!SearchUsergetmorerichinformaHonandgooduserexperiences SiteOwner,DevelopercustomizedpresentaHonandbringmoretractotheirsites 4. TurnonSearchMonkeyApplicaHon ChooseaspecicmonkeyfromSearchGallery. hUp://tw.gallery.search.yahoo.com/ Someappsaredefaultforsearch. 5. SearchGallery 6. UserSide(viewandenable)Login SelectanapplicaHon Previewtheresult Savetheselected applicaHon Example:Wikipedia 7. Example:YouTubeMonkey YoutubepresentaHoninY!websearchresult: hUp://tw.search.yahoo.com/search?p=%E5%BC%B5%E7%91%9E%E5%B8%8C+youtube 8. Example:MyYouTubeMonkey 9. YouTubeVideoPage 10. DeveloperSide GotoDevToolhUp://developer.search.yahoo.com/ PresentaHonLayerPresentaHonApplicaHonsaresmallPHPappsthatdisplayenhancedsearchresultsusingdataservices. CustomDataServicesDataServicesprovidestructuredinformaHontodisplayinYahoo!Searchresults. DataFeedsDataFeedsareXMLfeedsinSearchMonkey'snaHveDataRSSformat.SiteownerscansubmitstructureddatatoYahoo!SearchforinclusionintheYahoo!Index. 11. CustomDataServices DataServicesprovidestructuredinformaHontodisplayinYahoo!Searchresults. YoucancreateacustomdataservicebycallinganAPIorbyextracHngstructureddatafromwebpages. Youcancreateanewdataservice,startwithasampledataserviceorimportdataservice. BasicInfo>URLs>DataExtracHon>ConrmaHon 12. Step1:Specifyyoucustomname,type, descripHon 13. Step2:SpecifyyourtriggerandtestURLs SpecifyaurlpaUerntomatchagainstsearchresultsandtriggeryourdataservice. MulHplewildcardsaresupportedyoumaybeginandendyourpaUernwithawildcard,"*",whichmatchesanystring. Addtesturls Autondurls 14. Step3:DeneyourpageextracHonrules SpecifyXSLTcodeforextracHnginformaHonfromthepageandrepresenHngthatinformaHonasDataRSS.XSLTisalanguagefortransformingXMLdocumentsintootherXMLdocuments.XSLTmakesuseoftheexpressionlanguagedenedbyXPATHforselecHngelementsforprocessing. ForassistancewithwriHngXPATHexpressions,trytheXPatherFireFoxextension.hUps://addons.mozilla.org/enUS/refox/addon/1192 15. Step4:ConrmaHon 16. CreateaNewApplicaHon PresentaHonApplicaHonsaresmallPHPappsthatdisplayenhancedsearchresultsusingdataservices. YoucanuseanexisHngdataserviceorcreateacustomservicebelow. YoucancreateanewapplicaHon,startwithasampleapplicaHonorimportapplicaHon. BasicInfo>URLs>DataServices>Appearance>ConrmaHon 17. Step1:specifyyourapplicaHonsname,type anddescripHon 18. PresentaHonTemplates(EnhancedResult) EnhancedResult OverwritesthesearchresultitselfitcanchangetheHtle, thesummary,andmore. Theyarelimitedtoaspecicsetofpresenta:onelements, arrangedinapar:cularformat. Title,Summary,Image,Link,Dict 19. PresentaHonTemplates(Infobar)InfobarAnexpandablepanebeneathasearchresultthatprovidesaddiHonalinformaHonabouttheresult.YoucanalsousegeneralHTMLmarkuptocreatemuchmorecustomizedInfobars. 20. Step2:Specifyyourtrigger,testURLs 21. Step3:selectoneormoredataservices 22. Step4:MapyourdataservicestopresentaHon layer 23. Step5:ConrmaHon 24. PublishYourApplicaHon ThreebasicversiontypesDev:privateSharable:useablebyanyloggedinuserGallery:arepositoryofhighqualityapplicaHons YoualsocanusetheexportandimportfuncHonstoshareyourcodewithyourcolleagues. 25. ACerPublishingwithSharing (AngeYouTube)hUp://gallery.search.yahoo.com/applicaHon?smid=SW1.s 26. Reference YDN hUp://developer.yahoo.com/searchmonkey/ DocumentaHon hUp://developer.yahoo.com/searchmonkey/smguide/ DevTool hUp://developer.search.yahoo.com/wizard/index 27. Howdoesitwork? Siteowners/publisherssharestructureddatawithYahoo! Siteowners&thirdpartydevelopersbuildSearchMonkeyapps ConsumerscustomizetheirsearchexperiencewithEnhancedResultsorInfobars