How to let Google detect a site search engine?

后端 未结 2 527
遇见更好的自我
遇见更好的自我 2020-12-14 08:24

Google Chrome has a feature where you can hit tab to search a site. Chrome then navigates to the site\'s own search engine and runs the inputted query. The Chrome documentat

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-14 08:43

    After a little digging I found this page that describes this. Also you can read in Stackoverflow's source code and find this line of code:

    
    

    What it does is indicate to Google that the description for how to use your search engine in the file /opensearch.xml which contains this:

    
    
      Stack Overflow
      Search Stack Overflow: Q&A for professional and enthusiast programmers
      UTF-8
      http://sstatic.net/stackoverflow/img/favicon.ico
      
    
    

提交回复
热议问题