Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

OpenSearch Overview

OpenSearch is a collection of simple formats for the sharing of search results.
The OpenSearch description document format is used to describe a search engine that can be used by search client applications.

The OpenSearch response elements can be used to extend existing syndication formats, such as RSS and Atom, with the extra metadata needed to return search results. The OpenSearch document is associated with the "application/opensearchdescription+xml" mime type.

Info
titleNote

For more detailed information about Open Search, refers to the Open Search home page at http://www.opensearch.org/Home

Data Model

Apache Wink provides an Open Search data model for producing Open Search Documents. of the model classes are located under the org.apache.wink.common.model.opensearch package. OpenSearchDescription class is used by an application to build Open Search Description documents.

OpenSearch Support

TBD

 

Supported

Media Types

Data Model

Provider registration

Read

Yes

NA

NA

NA

Write

Yes

application/opensearchdescription+xml

org.apache.wink.common.model.opensearch.OpenSearchDescription

Not required. Registered by default

Examples

TBD

Producing an OpenSearch Document

TBD

Code Block
      @GET
    @Produces(MediaTypeUtils.OPENSEARCH)
    public OpenSearchDescription getOpenSearch(@Context UriInfo info) {
        String baseUri = info.getAbsolutePath().toString();
        OpenSearchDescription openSearchDescription = new OpenSearchDescription();
        openSearchDescription.setShortName("Example search engine");
        ...
        return openSearchDescription;
}