-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert the Suggestions extension specification to Markdown #7
Comments
NoticeThis is a draft document for public review. IntroductionThe OpenSearch Suggestions extension offers a convention by which search engines can return a set of search term completions for a given search prefix. The search completions can be used by a search client to dynamically present the end user with search term suggestions. BackgroundThe Google Suggest project pioneered a mechanism for dynamically presenting a list of search term completions as the user interacts with the search interface. The Firefox web browser was the first to incorporate this technique into the browser search box to offer the user dynamic search term suggestions, a technique subsequently adopted by Internet Explorer, Safari, and Chrome. This document is based on the original Firefox Search Service design documentation, and subsequently updated for clarity and to include additional search parameters. OverviewThe search engine publishes an OpenSearch description document containing two Url elements. The first TypeThe following type is used to indicate that the response contains JSON formatted search suggestions: NamespaceThe XML namespace of the OpenSearch Suggestions Extension is: This namespace and a corresponding namespace prefix must be included when the extension is used in an OpenSearch Description document. OpenSearch description documentSearch engines that support search suggestions can use the OpenSearch description document to publish URL templates for both retrieving the list of suggestions and for performing follow-up search queries. Declaring a JSON-formatted search suggestion URLSearch engines should publish a ExampleExample of publishing the location of a JSON-formatted search suggestion query:
Declaring a URL for follow-up search queriesAfter the list of search suggestions has been retrieved, the client will likely perform a full follow up search, as is documented using a standard Url element, usually of The extension parameters are in the These extension parameters could be used in any Url template, but the meaning is defined here only when they are used in the context of a follow-up search query generated from a list of suggested searches. The "suggestionPrefix" parameterWhen the search query was generated as a result of a search suggestion, the Note the search server should use the " The "suggestionIndex" parameterWhen the search query was generated as a result of a search suggestion, the Note the search server should use the " ExampleExample of a Url template that accepts additional information when used in conjunction with suggested searches:
JSON-formatted search suggestion responsesResponse formatThe response body should be returned in JavaScript Object Notation as a JavaScript array of arrays. Response contentSearch suggestions are returned as an ordered collection of values. The four values are returned in the following order:
Suggestion prefixDescription: A single element echoing the requested search term. The search client may validate that this value matches the expected response. Required: yes Example:
Search termsDescription: A list of suggested completions for the given search term. These can be used as the value for the Required: yes Example:
DescriptionsDescription: A list of human-readable strings that provide additional information or context regarding the suggested completion. Required: no Example:
Query URLsDescription: A list of URLs that should be used by the search client to request the suggested search term at the corresponding position in the completions lists. Required: no Example:
ExampleThe following is a full example of a JSON formatted search suggestions response:
AuthorsThis specification was edited by DeWitt Clinton [email protected], based on the work of Joe Hughes' search suggestions documentation in Firefox and the Google search suggestions format. LicenseThis document is made available by A9.com subject to the terms of the Creative Commons Attribution-ShareAlike 2.5 License. |
@fulldecent, that looks pretty good, thank you! Want to send it as a PR so we can properly review and merge it? Thanks! |
@dewitt should I convert this to a PR? I'm happy to the legwork if you want to give me the goahead. |
The opensearch.org domain will eventually stop serving, so certain high-value documents should be converted to Markdown and served out of the git repository.
The Suggestions specification is currently hosted here:
http://www.opensearch.org/Specifications/OpenSearch/Extensions/Suggestions
And mirrored locally here:
https://github.com/dewitt/opensearch/blob/master/mediawiki/Specifications/OpenSearch/Extensions/Suggestions/1.1/Draft%201.wiki
This issue can be closed when the draft spec is converted to Markdown and checked into the repository.
The text was updated successfully, but these errors were encountered: