⚠️ Work in progress — createCMS is pre-1.0 and not production-ready (not tested in production). Expect breaking changes.
createCMS
Reference

Search

Full-text search across CMS entities, via cms.api.search.

Full-text search runs over a maintained index spanning seven entity types: root, comment, mergeRequest, variable, template, asset, and notification.

search.search

GET.

Query fieldTypeDefaultDescription
qstringSearch term (required).
entityTypesstring[] | stringallRestrict to entity types (array or comma-separated).
collectionstringRestrict to a collection.
rootIdstringRestrict to one entry.
limitnumber20Page size (1 to 100).
offsetnumber0Rows to skip.

Returns { results, total, hasMore }. Each result has entityType, entityId, optional collection / rootId / title / snippet / meta, a rank (relevance), and a highlight string with <mark> around the matched terms.

Rebuilding the index

cms.api.admin.reindexSearch rebuilds the whole index. See the Server API.

On this page