item-service-search-items
Search Sitecore items through the Item Service REST API, controlling fields, facets, paging, and database; facet breakdown is omitted unless includeFacets is true.
Instructions
Search Sitecore items using the ItemService RESTful API. The endpoint's facet breakdown is omitted unless includeFacets is set — it accounted for 96% of the response on a live CM and is rarely what the caller is after.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Zero-based page to return. | |
| term | Yes | The text to search for. | |
| facet | No | Filter the results by a facet, as 'name|value' (e.g. '_language|en'). | |
| fields | No | Restrict each result to these fields. Strongly recommended: a full result carries every field of the item. | |
| database | No | The database to search. Defaults to master. | |
| pageSize | No | Results per page. | |
| includeFacets | No | Include the facet breakdown (names and counts). Off by default: it dominated the payload, 96% of a live one-result search. | |
| includeStandardTemplateFields | No | Include the Standard template's fields. Off by default; a large addition to every result. |