/sitecore-platform:sitecoreai-search-sourcesfrom Sitecore Platform (SitecoreAI)
Configures SitecoreAI search sources (content, site, push) including searchable fields, reindex limits, and per-environment settings. For setting up or feeding a search index.
Ships in Sitecore Platform (SitecoreAI). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A search source is the index a SitecoreAI search component queries. It is managed under Content > Search sources in the SitecoreAI app, per environment. The head-app half (hooks, SearchService, the starter component) is content-sdk-search.
Status markers: [confirmed] = measured 2026-10-02 (read-only); [docs] = documented, not yet measured; [probe-gated: Pn] = open, the named hands-on probe closes it.
| Surface | Endpoint | Credential | Status |
|---|---|---|---|
| Query | POST https://edge-platform.sitecorecloud.io/v1/search, /v1/search/suggest | Edge context id in x-sitecore-contextid (public) | [confirmed] reachable; every CM context of a test org was recognised (preview and live) |
| Config read | GET https://edge-platform.sitecorecloud.io/search/v1/config?sitecoreContextId=<id> | Bearer with a search-config scope | [confirmed] no auth → 401 Config endpoint requires Authorization; org automation client (Deploy + xmcloud.cm:admin) → 403 insufficient scopes; Edge admin client → 403. Works through the Marketplace SDK (xmc.search.getConfigs); which non-Marketplace credential carries the scope [probe-gated: P3] |
| Push (Ingestion Service API) | POST {base_url}/v1/index/{source id}/push | Authorization: ApiKey <key> (instance-wide) | [docs]; {base_url} host [probe-gated: P3/P6] |
| Create / edit / reindex a source | — | — | No documented API. UI only, until a network capture proves otherwise [probe-gated: P3] |
Not this: Authoring GraphQL search(query:), Edge search(where:), sitecore index rebuild and the Indexing Manager all target CM Solr / item search. Standalone Sitecore Search (discover.sitecorecloud.io, 52-char API key, rfk.domainId) is a different product. The Marketer MCP has no search-source tools (search_site etc. search pages and assets).
content-sdk-search (fake-context control → 404 No sitecore context; your context + fake index → 404 no search index found). A recognised context proves the plane, not that the Search sources UI is enabled or that any source exists.scripts/search-config.mjs with a credential that carries the scope.| Content lives in… | Source | Caveat |
|---|---|---|
| Sitecore items of ONE template, simple field types | Content | published items only; manual reindex; one template per source (the config API's templateIds[] hints at more [probe-gated: P4]) |
| Rendered pages, metadata, a non-Sitecore site | Site (crawler) | crawler must reach the site; sitemap required; scheduled re-index |
| External system of record, or must be fresh in real time | Push | you own the full document set; no history kept |
| Sitecore items that must be fresh on publish | Content source + Edge webhook → push upsert, replayed after every reindex; or a push source fed only by the webhook | pushes into a content/site source are temporary |
Field types. Content: Checkbox, Text, Rich Text, Single-Line, Multi-Line, Number, Date, Datetime, Image. Site: Boolean, String, Number, Tag. Push: the schema you declare. Reference fields (Multilist, Droplink, Treelist, General Link) cannot be indexed; the UI rejects them at configuration time [docs]. Denormalise into a text field on the item, or use a push source. A third-party report adds __Created / __Updated and page components as non-indexable [probe-gated: P4].
Each field has Include, Searchable, Filterable and Sortable. Filterable fields become facets, and the head app filters them by the facet's display name (content-sdk-search). The Searchable allowance grows with the number of languages on the source; the cap is unpublished. Plan languages before fields: adding a language later multiplies the cost of every searchable field. Whether languages can be added after creation, how fallback versions index, and the locale format [probe-gated: P4].
Rules: Boost / Bury per keyword or all keywords (higher in the list wins), Pin to a slot; boost/bury override semantic relevancy and pins survive reranking. Advanced: semantic reranking and fuzzy search (fuzzy needs at least one Searchable field; with both on, fuzzy runs only after a zero-result query). Toggling either after creation [probe-gated: P4].
references/source-setup-checklists.md)Creating a source, editing fields and rules, reindexing, creating push credentials and mapping a page component to a source all happen in the UI. These are manual steps for the user, never something an agent claims to have done. Record the source id the user reports and verify it with a live query.
Wire a page to a source. The datasource item's search field (type Plugin, Source = Search Configuration Manager) holds {"searchIndex":"<source id>","fieldsMapping":{…}}. The supported writer is the Search Configuration tab in Page builder. Writing the JSON with the Marketer MCP update_fields_on_item is possible in principle; probe the MCP binding first (sitecoreai-content-composition). The exact JSON the app writes [probe-gated: P7].
Environment promotion. The source id lives in content (the datasource JSON). If source ids differ per environment, a serialized or content-transferred datasource points at the wrong index after promotion; re-map per environment or keep the datasource out of shared serialization [probe-gated: P2-UI] (whether ids or an export exist per env).
Multisite. A content source binds a template environment-wide, and the context id is environment-scoped, not site-scoped: two sites sharing the template share the index unless you filter [probe-gated: P4].
sitecoreai-edge-admin-webhooks) → handler reads the item from Edge → push upsert with id = item id → replay everything after each reindex. Or make a push source the single system of record.Full contract and the replay algorithm: references/ingestion-api.md.
POST {base_url}/v1/index/{source id}/push, Authorization: ApiKey <key>. A bearer token fails with tenant ID not found in JWT claims [docs; probe-gated: P6].NEXT_PUBLIC_ variable; store as SITECORE_SEARCH_PUSH_APIKEY.{ "operations": [ { "action": "upsert"|"delete", "id" | "sc_url", "canonical_url"?, "locale"?, "fields"? } ] }: 1-50 operations and ≤ 512 KiB per request, else the whole request is rejected (413 on size).YYYYMMDDTHHMMSSZ (ISO 8601 rejected); field names case-sensitive and must exist in the schema; sc_* and @search.action reserved.results[].succeeded · 400 / 401 / 403 (search.pushapi:m) / 404 (source missing, unpublished, other instance) / 413 / 500 / 503 (ingestion disabled). Rate limits undocumented.scripts/search-push.mjs validates locally and sends only with --yes.Crawler NAT IPs (allowlist these, not the standalone-Search IPs): East US 20.172.208.83 · West Europe 108.143.62.79 · Southeast Asia 137.116.136.218 · Central US 172.202.98.116 · Japan East 20.89.57.44 · Australia East 68.218.91.35 · West US 2 20.69.120.121 · UAE North 20.74.155.9 [docs]. The crawler reads the sitemap (content-sdk-app-router-sitemap-robots). WAF / bot protection blocks it. Whether it honours robots.txt, gets through a private-delivery access gate, and its user-agent [probe-gated: P9]: a site with Disallow: / or an auth gate should be assumed uncrawlable.
Performance > Search (CTR, null searches, ignored searches; 30-min sessions; 2 months back) needs both an index and a search component sending type:'search' events. The starter's nullResults: false defect and the consent gate are in content-sdk-search. Dashboard ingestion [probe-gated: P7].
scripts/search-config.mjs --context-env <VAR> [--env-file <f>] (--bearer-env <VAR> | --client-prefix <PREFIX>) [--json] [--datasource <source id>] — read-only. Fake-context control first; lists sources with id, name, type, template ids and per-field flags (search/filter/facet/sort with display names); explains 401/403. --datasource prints a datasource JSON stub for that source.scripts/search-push.mjs --endpoint <base_url> --source <source id> --file <ops.json> [--yes] [--key-env SITECORE_SEARCH_PUSH_APIKEY] — validates locally (count, size, strings, datetime format, reserved names, identity); sends only with --yes; refuses without an explicit --source, refuses a key on argv, refuses non-HTTPS endpoints; exit 1 on any 207 failure.--self-test runs a fake-fetch suite plus a mutation sweep that disables each guard in turn and fails if nothing notices.No sitecore context as "wrong or dead context id", and 404 no search index found as "context fine, source id wrong or not yet created".content-sdk-search · sitecoreai-edge-admin-webhooks (OnUpdate feed) · marketplace-sdk-xmc (xmc.search.getConfigs) · content-sdk-app-router-sitemap-robots · sitecoreai-content-composition (MCP writes) · sitecoreai-health-check.
references/config-api.md (opens in a new tab)references/fixtures/config-auth-matrix.json (opens in a new tab)references/ingestion-api.md (opens in a new tab)references/source-setup-checklists.md (opens in a new tab)scripts/search-config.mjs (opens in a new tab)scripts/search-push.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-platform17 skills in this plugin
/sitecoreai-agentSitecoreAI Agent API: high-level REST actions such as create page with components, create personalization version and generate brief. Use as the default entry point for apps, MCP servers or automations. It powers the Marketer MCP./sitecoreai-authOAuth client-credentials auth for the SitecoreAI APIs (Agent, Pages, Publishing, Sites): automation client, token endpoint, scopes, env vars, caching, 401s. Load before the first API call. Not head-app Edge context ids./sitecoreai-brand-voiceWrites Sitecore page content in a brand's voice and identity, taken from the PRD or spec or a Sitecore brand kit, never guessed. Sets register (brand, marketing, technical-neutral). Use for copy on a brand or client site. Not page structure./sitecoreai-cli-cloud-workflowSitecore CLI against a SitecoreAI tenant: login, project and environment lookup, connect, ser pull and push, and their silent traps. Use when pulling, pushing or moving a site between tenants, or on CLI environment errors./sitecoreai-content-compositionInventory-first page composition via the Marketer MCP: inventory the site's real components, then compose a page by choosing and ordering them, with the verified add-component recipe. Use when authoring or extending a page, not a single field./sitecoreai-edge-admin-webhooksExperience Edge Admin API: admin client, token, webhook CRUD (OnEnd vs OnUpdate), settings, cache clear, which webhook fits which job. Use when registering, testing or debugging a publish webhook. Not head-app revalidation code.Other plugins' skills for the same job