SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Nathan Buggia
Jonathan Hawkins
                        Senior Product Planner
Architect
                        Live Search
ASP.NET
                        Microsoft Corporation
Microsoft Corporation
Why is Search important?
How to make a Search friendly site
Search enable your ASP.NET site
Search Sitemaps and dynamic data
Improving your Search experience with Live
Site Referrals Q1-Q4 2006




     Direct, 30%
                                               Google, 30%




                                                             Yahoo, 12%




                                                             MSNLive, 3%




Other, 25%
When you’re looking for specific information on an unfamiliar website…


                                                                             100%
                                                                               90%
                                                                                                             47% Search
                                                                               80%
                                                                               70%
                                                                               60%
                                                                               50%
                                                                                                             33% Browse
                                                                               40%
                                                                               30%
                                                                                                             13% Abandon
                                                                               20%
                                                                               10%
                                                                                 0%



Forrester Research, forrester.com. “It’s time to update site search functionality”, 5/1/2006, Iris Cremers
Crawlers index HTML text and follow links
 Crawlers visit your site on a regular basis and index for new
 content
 Determine relevancy relative to the rest of the web
Make pages for users
 Produce well formed HTML for your website
 Use text words for key terms as crawlers can't index images
 Ensure Title and ALT tags are descriptive
   Handle Title in ASP.NET Master and Content pages
 Meta tags that accurately describes the page contents
 Keep links functional and simple
Dynamic content
 Simple URLs with small number of parameters
   http://www.somesite.com/view.aspx?ItemID=22
   http://www.somesite.com/movies/view.aspx
 Review site in Lynx text browser to ensure crawlers have a
 text rendering for high end features
   JavaScript, AJAX, Flash, Silverlight
Help the Crawler index the right pages
 robots.txt – specify which directories to include/exclude
 Sitemap – specify page relative priority, change
 frequency, last modified
SearchDataSource
 Natural binding of UI elements for search input
 Enables data binding of search results
 Style to your website to provide consistent experience
Search Providers
 Live Search (formally MSN Search)
 Sample code for Index Server, Yahoo, …
 Look at the QuickStarts on how to write your
 own search provider
Jonathan Hawkins
Architect
ASP.NET
<asp:TextBox ID=quot;TextBoxSearchquot; runat=quot;serverquot;></asp:TextBox>
<asp:Button ID=quot;ButtonSearchquot; runat=quot;serverquot;
     OnClick=quot;ButtonSearch_Click“ Text=quot;Searchquot; />

<asp:SearchDataSource ID=quot;SearchDataSource1quot; runat=quot;serverquot; >
       <SelectParameters>
         <asp:ControlParameter
          ControlID=quot;TextBoxSearchquot;
          Name=quot;queryquot;
          PropertyName=quot;Text“ Type=quot;Objectquot; />
       </SelectParameters>
</asp:SearchDataSource>

<asp:GridView ID=quot;GridView1quot; runat=quot;serverquot;
     DataSourceID=quot;SearchDataSource1quot;>
</asp:GridView>
Enable search engine crawlers to find information in your
site
Sitemaps provide suggestions to search engines
Specify priority of the URL relative to the other pages in
your site
Specify how frequently the page is likely to change
Specify last modified date time
Partition sitemaps with a sitemap index
Supported by major search engines
See http://sitemaps.org/protocol.html for details
Turn your ASP.NET navigation sitemap into a
search sitemap
Add application dynamic data to search site map
 URL to the web page
 query string parameters
 Sitemap priority, change frequency and last
 modified date
 Customize with databinding and formatting
Jonathan Hawkins
Architect
ASP.NET
Jonathan Hawkins
Architect
ASP.NET
Search query language
  http://search.live.com/docs/help.aspx?t=SEARCH_REF_AdvSrchOperators.htm

Search macros (similar to stored procedures)
  http://search.live.com/macros

AJAX web search control
  http://search.live.com/siteowner

SOAP API
  http://dev.live.com/livesearch/sdk

  Web, Image, News, Phonebook, and MetaTags
  Samples, samples, samples
    C#, Java, PHP, Ruby, Python, Flash
Live Search Supporting Broad Commercial Use

 Max Queries/ Day: 25,000
 Max Queries/ Second: 10
 Best effort service level agreement
 Online support: http://forum.microsoft.com
Web Masters
 http://help.live.com/help.aspx?project=wl_webmasters
 https://siteexplorer.search.yahoo.com
 http://www.google.com/webmasters
Developers
 http://dev.live.com/LiveSearch
 http://developer.yahoo.com/search/
 http://code.google.com/apis/ajaxsearch/web.html
Sitemaps
 http://sitemaps.org/protocol.html
Add Search and SiteMaps to your site today!
Live Search
 USB Key in your attendee bag
 Learn more - http://search.live.com
 Feedback - http://forum.microsoft.com
ASP.NET Futures CTP
 Download CTP today
 Learn more - http://ajax.asp.net
 Feedback - http://forums.asp.net/
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions,
                 it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
                                       MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
<microsoft.web.preview>
 <searchSiteMap enabled=quot;truequot;>
  <providers>
   <add name=quot;Navigationquot;
       type=quot;Microsoft.Web.Preview.Search.AspNetSiteMapSearchSiteMapProvider, Microsof
t.Web.Previewquot;/>
   <add name=quot;Productquot;
         type=quot;ProductSiteMapData, App_Codequot;
         targetUrl=quot;Product.aspx“queryStringDataFields=quot;ProductIDquot; />
</providers>
 </searchSiteMap>
</microsoft.web.preview>

<system.web>
<httpHandlers>
 <add verb=quot;*quot; path=quot;SearchSiteMaps.axd“
       type=quot;Microsoft.Search.SearchSiteMapHandlerquot; validate=“falsequot;/>
</httpHandlers>
</system.web>
public class ProductSiteMapData : DynamicDataSearchSiteMapProvider
{
  // Return a collection of results.
  // Use LINQ, ADO.NET, your code to make a collection
  public override IEnumerable DataQuery()
  {
      String connectionString = “…”;

        Northwind db = new Northwind(connectionString);
        Table<Product> Products = db.Products;

        var q =
          from p in Products
          where p.UnitsInStock > (p.ReorderLevel * 10)
          select p;

        return q;
    }
}
<?xml version=quot;1.0quot; encoding=quot;utf-8quot; ?>
 <sitemapindex xmlns=quot;http://www.sitemaps.org/schemas/sitemap/0.9quot;>
  <sitemap>
     <loc>http://example.com/Northwind/SearchSiteMaps.axd?sitemap=Product</loc>
     <lastmod>2007-04-03T08:24:00.169Z</lastmod>
  </sitemap>
  <sitemap>
     <loc>http://example.com/Northwind/SearchSiteMaps.axd?sitemap=Category</loc>
     <lastmod>2007-04-03T08:24:00.169Z</lastmod>
  </sitemap>
  <sitemap>
     <loc>http://example.com/Northwind/SearchSiteMaps.axd?sitemap=Navigation</loc>
     <lastmod>2007-04-03T08:24:00.169Z</lastmod>
 </sitemap>
</sitemapindex>
<?xml version=quot;1.0quot; encoding=quot;utf-8quot;?>
<urlset xmlns=quot;http://www.sitemaps.org/schemas/sitemap/0.9quot;>
 <url>
  <loc>http://localhost:52062/Northwind/Product.aspx?ProductId=4</loc>
 </url>
 <url>
  <loc>http://localhost:52062/Northwind/Product.aspx?ProductId=8</loc>
 </url>
…
</urlset>
Symbols                                     Keywords
+           &        AND       contains:        inanchor:     language:

    -           NOT             filetype:        inbody:     loc:, location:

        |        OR          feed:, hasfeed:      intitle:      prefer:

                “”               meta:            inurl:      {frsh=100}

                ()               macro:             ip:       {popl=100}

                                                   site:     {mtch=100}


                           http://search.live.com/macros
Open Search Standard: http://a9.com/-/spec/opensearch/1.1/


JavaScript: window.external.AddSearchProvider('http://www.nasa.gov/nasa-opensearch.xml');


Configuration File:
<?xml version=quot;1.0quot; encoding=quot;UTF-8quot; ?>
<OpenSearchDescription xmlns=quot;http://a9.com/-/spec/opensearch/1.1/quot;>
<ShortName>NASA Space Image Search</ShortName>
<Description>Search NASA.gov for the latest space photos.</Description>
<Url type=quot;text/htmlquot; template=quot;http://www.nasa.gov/search?q={searchTerms}quot; />
</OpenSearchDescription>

Weitere ähnliche Inhalte

Ähnlich wie Search Capabilities for Dynamic Web Content

Automotive advertising media annual review
Automotive advertising media annual reviewAutomotive advertising media annual review
Automotive advertising media annual review
Ralph Paglia
 
Jd power media annual_review
Jd power media annual_reviewJd power media annual_review
Jd power media annual_review
Ralph Paglia
 
Global Opportunities for Social & Mobiles Games - Rex Ng, 6waves
Global Opportunities for Social & Mobiles Games -  Rex Ng, 6waves  Global Opportunities for Social & Mobiles Games -  Rex Ng, 6waves
Global Opportunities for Social & Mobiles Games - Rex Ng, 6waves
LondonGamesConference
 
SES Toronto 2008; Joe Dolson
SES Toronto 2008; Joe DolsonSES Toronto 2008; Joe Dolson
SES Toronto 2008; Joe Dolson
Joseph Dolson
 
Advanced SEO for Web Developers
Advanced SEO for Web DevelopersAdvanced SEO for Web Developers
Advanced SEO for Web Developers
Nathan Buggia
 
Top Pages Q4 business.co.uk
Top Pages Q4 business.co.ukTop Pages Q4 business.co.uk
Top Pages Q4 business.co.uk
Xma Nottingham
 
Top Pages Q4 health.co.uk
Top Pages Q4 health.co.ukTop Pages Q4 health.co.uk
Top Pages Q4 health.co.uk
Xma Nottingham
 

Ähnlich wie Search Capabilities for Dynamic Web Content (20)

Automotive Advertising Media Annual Market Review - J. D. Power and Associates
Automotive Advertising Media Annual Market Review - J. D. Power and AssociatesAutomotive Advertising Media Annual Market Review - J. D. Power and Associates
Automotive Advertising Media Annual Market Review - J. D. Power and Associates
 
Automotive advertising media annual review
Automotive advertising media annual reviewAutomotive advertising media annual review
Automotive advertising media annual review
 
J. D. Power and Associates Media Annual Review
J. D. Power and Associates Media Annual ReviewJ. D. Power and Associates Media Annual Review
J. D. Power and Associates Media Annual Review
 
Jd power media annual_review
Jd power media annual_reviewJd power media annual_review
Jd power media annual_review
 
Dicas de palestra
Dicas de palestraDicas de palestra
Dicas de palestra
 
Securing Web Applications
Securing Web ApplicationsSecuring Web Applications
Securing Web Applications
 
Getting More Traffic From Search Advanced Seo For Developers Presentation
Getting More Traffic From Search  Advanced Seo For Developers PresentationGetting More Traffic From Search  Advanced Seo For Developers Presentation
Getting More Traffic From Search Advanced Seo For Developers Presentation
 
SearchMonkey
SearchMonkeySearchMonkey
SearchMonkey
 
Global Opportunities for Social & Mobiles Games - Rex Ng, 6waves
Global Opportunities for Social & Mobiles Games -  Rex Ng, 6waves  Global Opportunities for Social & Mobiles Games -  Rex Ng, 6waves
Global Opportunities for Social & Mobiles Games - Rex Ng, 6waves
 
Website Optimization -SEO - Step By Step
Website Optimization -SEO - Step By StepWebsite Optimization -SEO - Step By Step
Website Optimization -SEO - Step By Step
 
SES Toronto 2008; Joe Dolson
SES Toronto 2008; Joe DolsonSES Toronto 2008; Joe Dolson
SES Toronto 2008; Joe Dolson
 
Seo Analysis Report
Seo Analysis ReportSeo Analysis Report
Seo Analysis Report
 
Advanced SEO for Web Developers
Advanced SEO for Web DevelopersAdvanced SEO for Web Developers
Advanced SEO for Web Developers
 
Top Pages Q4 business.co.uk
Top Pages Q4 business.co.ukTop Pages Q4 business.co.uk
Top Pages Q4 business.co.uk
 
Advanced SEO for Developers (Mix08)
Advanced SEO for Developers (Mix08)Advanced SEO for Developers (Mix08)
Advanced SEO for Developers (Mix08)
 
Advanced Seo Web Development Tech Ed 2008
Advanced Seo Web Development Tech Ed 2008Advanced Seo Web Development Tech Ed 2008
Advanced Seo Web Development Tech Ed 2008
 
Basic Web + Social Media Metrics: Non eCommerce Sites
Basic Web + Social Media Metrics: Non eCommerce SitesBasic Web + Social Media Metrics: Non eCommerce Sites
Basic Web + Social Media Metrics: Non eCommerce Sites
 
Responsive design
Responsive designResponsive design
Responsive design
 
Diagnosing Technical Issues With Search Engine Optimization
Diagnosing Technical Issues With Search Engine OptimizationDiagnosing Technical Issues With Search Engine Optimization
Diagnosing Technical Issues With Search Engine Optimization
 
Top Pages Q4 health.co.uk
Top Pages Q4 health.co.ukTop Pages Q4 health.co.uk
Top Pages Q4 health.co.uk
 

Mehr von goodfriday

Narine Presentations 20051021 134052
Narine Presentations 20051021 134052Narine Presentations 20051021 134052
Narine Presentations 20051021 134052
goodfriday
 
09 03 22 easter
09 03 22 easter09 03 22 easter
09 03 22 easter
goodfriday
 
Holy Week Easter 2009
Holy Week Easter 2009Holy Week Easter 2009
Holy Week Easter 2009
goodfriday
 
Holt Park Easter 09 Swim
Holt Park Easter 09 SwimHolt Park Easter 09 Swim
Holt Park Easter 09 Swim
goodfriday
 
Swarthmore Lentbrochure20092
Swarthmore Lentbrochure20092Swarthmore Lentbrochure20092
Swarthmore Lentbrochure20092
goodfriday
 
Eastercard2009
Eastercard2009Eastercard2009
Eastercard2009
goodfriday
 
Easterservices2009
Easterservices2009Easterservices2009
Easterservices2009
goodfriday
 
Bulletin Current
Bulletin CurrentBulletin Current
Bulletin Current
goodfriday
 
March 2009 Newsletter
March 2009 NewsletterMarch 2009 Newsletter
March 2009 Newsletter
goodfriday
 
Lent Easter 2009
Lent Easter 2009Lent Easter 2009
Lent Easter 2009
goodfriday
 
Easterpowersports09
Easterpowersports09Easterpowersports09
Easterpowersports09
goodfriday
 
Easter Trading 09
Easter Trading 09Easter Trading 09
Easter Trading 09
goodfriday
 
Easter Brochure 2009
Easter Brochure 2009Easter Brochure 2009
Easter Brochure 2009
goodfriday
 
March April 2009 Calendar
March April 2009 CalendarMarch April 2009 Calendar
March April 2009 Calendar
goodfriday
 

Mehr von goodfriday (20)

Narine Presentations 20051021 134052
Narine Presentations 20051021 134052Narine Presentations 20051021 134052
Narine Presentations 20051021 134052
 
Triunemar05
Triunemar05Triunemar05
Triunemar05
 
09 03 22 easter
09 03 22 easter09 03 22 easter
09 03 22 easter
 
Holy Week Easter 2009
Holy Week Easter 2009Holy Week Easter 2009
Holy Week Easter 2009
 
Holt Park Easter 09 Swim
Holt Park Easter 09 SwimHolt Park Easter 09 Swim
Holt Park Easter 09 Swim
 
Easter Letter
Easter LetterEaster Letter
Easter Letter
 
April2009
April2009April2009
April2009
 
Swarthmore Lentbrochure20092
Swarthmore Lentbrochure20092Swarthmore Lentbrochure20092
Swarthmore Lentbrochure20092
 
Eastercard2009
Eastercard2009Eastercard2009
Eastercard2009
 
Easterservices2009
Easterservices2009Easterservices2009
Easterservices2009
 
Bulletin Current
Bulletin CurrentBulletin Current
Bulletin Current
 
Easter2009
Easter2009Easter2009
Easter2009
 
Bulletin
BulletinBulletin
Bulletin
 
March 2009 Newsletter
March 2009 NewsletterMarch 2009 Newsletter
March 2009 Newsletter
 
Mar 29 2009
Mar 29 2009Mar 29 2009
Mar 29 2009
 
Lent Easter 2009
Lent Easter 2009Lent Easter 2009
Lent Easter 2009
 
Easterpowersports09
Easterpowersports09Easterpowersports09
Easterpowersports09
 
Easter Trading 09
Easter Trading 09Easter Trading 09
Easter Trading 09
 
Easter Brochure 2009
Easter Brochure 2009Easter Brochure 2009
Easter Brochure 2009
 
March April 2009 Calendar
March April 2009 CalendarMarch April 2009 Calendar
March April 2009 Calendar
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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)
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 

Search Capabilities for Dynamic Web Content

  • 1.
  • 2. Nathan Buggia Jonathan Hawkins Senior Product Planner Architect Live Search ASP.NET Microsoft Corporation Microsoft Corporation
  • 3. Why is Search important? How to make a Search friendly site Search enable your ASP.NET site Search Sitemaps and dynamic data Improving your Search experience with Live
  • 4. Site Referrals Q1-Q4 2006 Direct, 30% Google, 30% Yahoo, 12% MSNLive, 3% Other, 25%
  • 5. When you’re looking for specific information on an unfamiliar website… 100% 90% 47% Search 80% 70% 60% 50% 33% Browse 40% 30% 13% Abandon 20% 10% 0% Forrester Research, forrester.com. “It’s time to update site search functionality”, 5/1/2006, Iris Cremers
  • 6. Crawlers index HTML text and follow links Crawlers visit your site on a regular basis and index for new content Determine relevancy relative to the rest of the web Make pages for users Produce well formed HTML for your website Use text words for key terms as crawlers can't index images Ensure Title and ALT tags are descriptive Handle Title in ASP.NET Master and Content pages Meta tags that accurately describes the page contents Keep links functional and simple
  • 7. Dynamic content Simple URLs with small number of parameters http://www.somesite.com/view.aspx?ItemID=22 http://www.somesite.com/movies/view.aspx Review site in Lynx text browser to ensure crawlers have a text rendering for high end features JavaScript, AJAX, Flash, Silverlight Help the Crawler index the right pages robots.txt – specify which directories to include/exclude Sitemap – specify page relative priority, change frequency, last modified
  • 8. SearchDataSource Natural binding of UI elements for search input Enables data binding of search results Style to your website to provide consistent experience Search Providers Live Search (formally MSN Search) Sample code for Index Server, Yahoo, … Look at the QuickStarts on how to write your own search provider
  • 10. <asp:TextBox ID=quot;TextBoxSearchquot; runat=quot;serverquot;></asp:TextBox> <asp:Button ID=quot;ButtonSearchquot; runat=quot;serverquot; OnClick=quot;ButtonSearch_Click“ Text=quot;Searchquot; /> <asp:SearchDataSource ID=quot;SearchDataSource1quot; runat=quot;serverquot; > <SelectParameters> <asp:ControlParameter ControlID=quot;TextBoxSearchquot; Name=quot;queryquot; PropertyName=quot;Text“ Type=quot;Objectquot; /> </SelectParameters> </asp:SearchDataSource> <asp:GridView ID=quot;GridView1quot; runat=quot;serverquot; DataSourceID=quot;SearchDataSource1quot;> </asp:GridView>
  • 11. Enable search engine crawlers to find information in your site Sitemaps provide suggestions to search engines Specify priority of the URL relative to the other pages in your site Specify how frequently the page is likely to change Specify last modified date time Partition sitemaps with a sitemap index Supported by major search engines See http://sitemaps.org/protocol.html for details
  • 12. Turn your ASP.NET navigation sitemap into a search sitemap Add application dynamic data to search site map URL to the web page query string parameters Sitemap priority, change frequency and last modified date Customize with databinding and formatting
  • 15. Search query language http://search.live.com/docs/help.aspx?t=SEARCH_REF_AdvSrchOperators.htm Search macros (similar to stored procedures) http://search.live.com/macros AJAX web search control http://search.live.com/siteowner SOAP API http://dev.live.com/livesearch/sdk Web, Image, News, Phonebook, and MetaTags Samples, samples, samples C#, Java, PHP, Ruby, Python, Flash
  • 16. Live Search Supporting Broad Commercial Use Max Queries/ Day: 25,000 Max Queries/ Second: 10 Best effort service level agreement Online support: http://forum.microsoft.com
  • 17.
  • 18. Web Masters http://help.live.com/help.aspx?project=wl_webmasters https://siteexplorer.search.yahoo.com http://www.google.com/webmasters Developers http://dev.live.com/LiveSearch http://developer.yahoo.com/search/ http://code.google.com/apis/ajaxsearch/web.html Sitemaps http://sitemaps.org/protocol.html
  • 19. Add Search and SiteMaps to your site today! Live Search USB Key in your attendee bag Learn more - http://search.live.com Feedback - http://forum.microsoft.com ASP.NET Futures CTP Download CTP today Learn more - http://ajax.asp.net Feedback - http://forums.asp.net/
  • 20.
  • 21. © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
  • 22.
  • 23. <microsoft.web.preview> <searchSiteMap enabled=quot;truequot;> <providers> <add name=quot;Navigationquot; type=quot;Microsoft.Web.Preview.Search.AspNetSiteMapSearchSiteMapProvider, Microsof t.Web.Previewquot;/> <add name=quot;Productquot; type=quot;ProductSiteMapData, App_Codequot; targetUrl=quot;Product.aspx“queryStringDataFields=quot;ProductIDquot; /> </providers> </searchSiteMap> </microsoft.web.preview> <system.web> <httpHandlers> <add verb=quot;*quot; path=quot;SearchSiteMaps.axd“ type=quot;Microsoft.Search.SearchSiteMapHandlerquot; validate=“falsequot;/> </httpHandlers> </system.web>
  • 24. public class ProductSiteMapData : DynamicDataSearchSiteMapProvider { // Return a collection of results. // Use LINQ, ADO.NET, your code to make a collection public override IEnumerable DataQuery() { String connectionString = “…”; Northwind db = new Northwind(connectionString); Table<Product> Products = db.Products; var q = from p in Products where p.UnitsInStock > (p.ReorderLevel * 10) select p; return q; } }
  • 25. <?xml version=quot;1.0quot; encoding=quot;utf-8quot; ?> <sitemapindex xmlns=quot;http://www.sitemaps.org/schemas/sitemap/0.9quot;> <sitemap> <loc>http://example.com/Northwind/SearchSiteMaps.axd?sitemap=Product</loc> <lastmod>2007-04-03T08:24:00.169Z</lastmod> </sitemap> <sitemap> <loc>http://example.com/Northwind/SearchSiteMaps.axd?sitemap=Category</loc> <lastmod>2007-04-03T08:24:00.169Z</lastmod> </sitemap> <sitemap> <loc>http://example.com/Northwind/SearchSiteMaps.axd?sitemap=Navigation</loc> <lastmod>2007-04-03T08:24:00.169Z</lastmod> </sitemap> </sitemapindex>
  • 26. <?xml version=quot;1.0quot; encoding=quot;utf-8quot;?> <urlset xmlns=quot;http://www.sitemaps.org/schemas/sitemap/0.9quot;> <url> <loc>http://localhost:52062/Northwind/Product.aspx?ProductId=4</loc> </url> <url> <loc>http://localhost:52062/Northwind/Product.aspx?ProductId=8</loc> </url> … </urlset>
  • 27. Symbols Keywords + & AND contains: inanchor: language: - NOT filetype: inbody: loc:, location: | OR feed:, hasfeed: intitle: prefer: “” meta: inurl: {frsh=100} () macro: ip: {popl=100} site: {mtch=100} http://search.live.com/macros
  • 28. Open Search Standard: http://a9.com/-/spec/opensearch/1.1/ JavaScript: window.external.AddSearchProvider('http://www.nasa.gov/nasa-opensearch.xml'); Configuration File: <?xml version=quot;1.0quot; encoding=quot;UTF-8quot; ?> <OpenSearchDescription xmlns=quot;http://a9.com/-/spec/opensearch/1.1/quot;> <ShortName>NASA Space Image Search</ShortName> <Description>Search NASA.gov for the latest space photos.</Description> <Url type=quot;text/htmlquot; template=quot;http://www.nasa.gov/search?q={searchTerms}quot; /> </OpenSearchDescription>