MacOS – What does “Enable Quick Website Search” do on OS X

macossafari

I'm trying to find out what the "Quick Website Search" checkbox does technically. My guess is that it prefetches data or somehow sends my search terms to siri or another apple online processing engine, but I'm unable to locate specific documentation or files on the system that control/cache these search results.

enter image description here

The help page is vague about how this works in practice and I'd like to understand the mechanism a bit more finely grained than "lets Safari record information" and instead know where that information is stored and what "searches within a website" actually means in practice.

An answer for Safari on 10.10.2 would be ideal and a practical example of how it searches within apple.stackexchange.com (which is shown in my Manage Websites list of sites that are enabled).

Best Answer

If you develop a website you can add a file called an OpenSearch specification that identifies the site as having searchable content.

You can see the apple.stackexchange.com OpenSearch specification here. The important bit is the following line that tells browsers the format for submitting search queries to the site.

<Url type="text/html" method="get" template="https://apple.stackexchange.com/search?q={searchTerms}"/>

The first time you visit a site with an OpenSearch specification Safari adds it to that list you can find under "Manage Websites". So if you start typing into the search bar something like "apple chrome hanging", Safari will see that you have apple.stackexchange.com in your list of quick searches and offer Search apple.stackexchange.com for "chrome hanging".

Example of Quick Website Search

Nothing to do with Siri or Apple's servers. It all happens on your own machine. It's just a way to submit searches directly to other websites instead of having to open the particular site, click in their search field and type your query there.

You can find Safari's store of Quick Website Search information in /Users/YOURUSERNAME/Library/Safari/SearchDescriptions.plist.