opensearch
I'm a big fan of Open Search, the idea, the format, and the user experience it can enable. You start typing a domain you've hit before that you want to search within. When it starts autocompleting, you hit tab, and then type your search.
我是Open Search的忠实拥护者,它的想法,格式以及可以带来的用户体验。 您开始输入要在其中搜索的域名。 当它开始自动完成时,您点击选项卡,然后键入搜索。
So, "stacko - TAB - json - ENTER" has me searching StackOverflow for json results. I don't have to google/bing and then add "site:stackoverflow.com" to my query. I don't have to hit the home page then look around for a search box. The site just includes a meta tag and an opensearch.xml file and poof, the site has taught my browser how to search. Once you've tried this, you'll find it hard to browse/search without. You'll prefer sites that include it and be frustrated with sites that don't. (More on that later.)
因此,“ stacko-TAB-json-ENTER”让我在StackOverflow中搜索json结果。 我不必google / bing,然后将“ site:stackoverflow.com”添加到我的查询中。 我不必点击主页,而是四处寻找搜索框。 该站点仅包含一个meta标记以及一个opensearch.xml文件和poof,该站点已教会我的浏览器如何搜索。 一旦尝试了这一点,您将发现很难浏览/搜索。 您将更喜欢包含它的网站,而对不包含它的网站感到沮丧。 (稍后会详细介绍。)
IMPORTANT UPDATE/NOTE: A buddy of mine points this out, and he's right. That said, I want to say that I like BOTH of them, and I'm very much enamored with the Tab Search feature.
重要更新/注意:我的一个伙伴指出了这一点,他是对的。 就是说,我想说我俩都喜欢,而且我非常喜欢Tab搜索功能。
"Just to be clear, these things are not the same thing.
“请明确,这些东西不是一回事。
- OpenSearch is a format for specifying how to search a site. OpenSearch是用于指定如何搜索站点的格式。
- Tab Search is a particular UX for allowing you to do a search on a non-default search provider. It happens to use OpenSearch to learn how to search different search providers." 标签搜索是一种特殊的UX,它允许您在非默认搜索提供程序上进行搜索。 碰巧使用OpenSearch来学习如何搜索不同的搜索提供者。”
I setup OpenSearch at Hanselman.com back in 2009!
我早在2009年就在Hanselman.com上设置了OpenSearch !
Chrome has a great implementation of Open Search.
Chrome具有出色的Open Search实现。
I just added a one line META tag and a static XML file. Boom.
我刚刚添加了一行META标签和一个静态XML文件。 繁荣。
rel="search" type="application/opensearchdescription+xml" href="/blog/opensearch.xml" title="Hanselman Search">
Your static XML file describes what the resulting URL should look like. Here's a small example.
您的静态XML文件描述了所得URL的外观。 这是一个小例子。
Hanselman Search
Search Scott Hanselman's Blog
http://www.hanselman.com/blog/favicon.ico
UTF-8
http://www.hanselman.com/
This is such a clean and obvious user story. It makes your web browsing experience better.
这是一个干净明显的用户故事。 它使您的Web浏览体验更好。
User wants to easily search within a site they visit often. Every browser and OS should support OpenSearch.
用户希望在他们经常访问的站点内轻松搜索。 每个浏览器和操作系统都应支持OpenSearch。
Amazon used to support it but in the last year or so removed it in a homepage redesign. It's more than a little ironic that it was a9.com and Amazon.com that came up with OpenSearch and actually host the http://opensearch.org websites, but now the Amazon.com home page doesn't support it.
亚马逊曾经支持它,但是在去年左右,它在主页重新设计中将其删除。 具有讽刺意味的是,OpenSearch附带了a9.com和Amazon.com,它们实际上托管着http://opensearch.org网站,但是现在Amazon.com主页不支持它。
If you work for Amazon and are reading this blog post, consider this your calling out. Please put OpenSearch back on Amazon.com.
如果您在Amazon工作,并且正在阅读此博客文章,请认为这是您的要求。 请将OpenSearch重新放回Amazon.com。
Dear Reader, take a minute and see if your favorite browser supports OpenSearch. If it does, try it out. If not, ask them for it. Same for your favorite sites. If you run a site, you can easily add OpenSearch in a few minutes.
亲爱的读者,请花一点时间,看看您喜欢的浏览器是否支持OpenSearch。 如果可以,请尝试一下。 如果没有,向他们询问。 您喜欢的网站也一样。 如果您运行网站,则可以在几分钟内轻松添加OpenSearch。
翻译自: https://www.hanselman.com/blog/on-the-importance-of-opensearch
opensearch