|
| URI Pattern | Method | Request Body | Semantics | Capability required |
|---|---|---|---|---|
| /{storename}/items | GET | Retrieve a query form | basic search | |
| /{storename}/items?query= | GET | Search the Contentbox | basic search | |
| /{storename}/items | POST | Any media type | Store Content in the Contentbox | full update |
Request Parameters
| Parameter | Required? | Description | Values |
|---|---|---|---|
| query | Yes (for searching) | The query expression used to query the content box | Any valid Text Search Syntax |
| max | No | Specify maximum number of results for a search | A positive integer. Default is 10. There is a fixed maximum of 100 results. |
| offset | No | Specify an offset into search results. Use with maxto implement paging. | An integer greater than zero. |
| sort | No | Specify a sort order for the search | A comma separated list of field names that should be used to order the results. Append :d to a field name to sort in descending order. See Sorting Search Results. |
| xsl | No | An XSLT stylesheet to apply to the results. SeeTransforming Search Results. | The URI of a stylesheet |
| content-type | No | Specify the content type for delivering transformed search results | A mime media type |
Searching The Contentbox
Sorting Search Results
The sort parameter can be used to specify a sort order for search results. The value of the parameter should be a comma-separated list of field names that should be used for ordering. By default fields are sorted in ascending order. To specify descending ordering, add a :d suffix to the field name.
The names of the fields in a search, including ordering, is specified by the Field Predicate Map for the Store.
Transforming Search Results
An XSLT stylesheet can be applied to search results in order to generate alternate formats. As the stylesheet may generate any number of different mime types, the content-typeparameter can be specified to specify the mime type of the generated document.
Additional URL parameters will be provided to the XSLT stylesheet. Read the docs for the Transformation Service for additional notes on the XSLT functionality.
Caching Support
Responses from the Contentbox search functionality include HTTP caching headers: Last-Modified and ETag. This allows clients to use an HTTP Conditional Get in order to optimize repeated fetching of search results.
As the search results are delivered as an RSS 1.0 feed, this also means that well-designed feed readers should only re-fetch the feed when it has been changed.

© Talis Systems Ltd. 2011 Content is available under