mozilla

Compare Revisions

Supporting search suggestions in search plugins

Change Revisions

Revision 182701:

Revision 182701 by Sheppy on

Revision 182702:

Revision 182702 by Jhughes on

Title:
Supporting search suggestions in search plugins
Supporting search suggestions in search plugins
Slug:
Supporting_search_suggestions_in_search_plugins
Supporting_search_suggestions_in_search_plugins
Tags:
Add-ons, OpenSearch, Search, "Search plugins"
Add-ons, OpenSearch, Search, "Search plugins"
Content:

Revision 182701
Revision 182702
n8      MozSearch supports search suggestions; as the user types inn8      MozSearch supports search suggestions; as the user types in
> the search bar, <a href="en/Firefox_2">Firefox 2</a> queries the> the search bar, <a href="en/Firefox_2">Firefox 2</a> queries the
> URL specified by the search engine plugin's <code>&lt;Suggestion> URL specified by the search engine plugin to fetch live search s
>Url&gt;</code> element to fetch live search suggestions.>uggestions.
t20      The search plugin specifies the URL to query for a list of t20      To support search suggestions, a search plugin needs to def
>search suggestions by specifying an <code>&lt;Url&gt;</code> elem>ine an extra <code>&lt;Url&gt;</code> element with its <code>type
>ent with a <code>template</code> property indicating the URL to q></code> attribute set to <code>"application/x-suggestions+json"</
>uery.>code>. (This means that a suggestion-supporting engine plugin wil
 >l have two <code>&lt;Url&gt;</code> elements, the other one being
 > the main <code>text/html</code> search URL.)

Back to History