Go to Administration > Site Development > Import & Export and click Upload under Import & Export files.
Upload both files from the metadata/algolia/meta folder by clicking Choose File, then Upload.
Do this for both custom-objecttype-definitions.xml and system-objecttype-extensions.xml.
Go back to Administration > Site Development > Import & Export and click Import under Meta Data.
Select custom-objecttype-definitions.xml, click Next, then Import.
Click Import under Meta Data and import system-objecttype-extensions.xml as well.
Enable Algolia by checking the checkbox next to Enable Algolia.
Enter your Application ID, Search API Key and Write API Key.
Find them in the Algolia dashboard.
Consider using restricted API keys for increased security.
The Write API key needs addObject, deleteObject, deleteIndex, and settings ACL when indexing with the Search API.
When indexing with the Ingestion API, the key must also include editSettings.
For more information see API key restrictions.
In the Additional Product Attributes field,
enter the additional attributes you want to index.The following attributes are always indexed, so you don’t need to specify them:
name
__primary_category
categoryPageId
url
image_groups
in_stock
price
Consider adding these attributes: short_description and long_description.
Then, expand the list to include attributes specific to your product catalog,
such as, brand, color, or size.The content attributes you want to index are managed using the attributeList job step parameter.
For more information, see Content indexing job configuration.
To use active data for custom ranking, in Active data for custom ranking, select the recommended ProductActiveData attributes to index at the record root: ordersWeek, revenueWeek, conversionWeek, ordersMonth, revenueMonth, or conversionMonth.To index a ProductActiveData attribute that isn’t in the checkbox list, add its ID (without the activeData. prefix) to Additional Product Attributes.
Active data values are returned in search responses by default.
If you use them only as ranking signals, add the same attribute IDs to unretrievableAttributes on every product index the cartridge writes to.
For more information, see Make active data attributes unretrievable.
Choose a record model that fits your needs.
Consider grouping records
if you use the variant-level model.
You need to update your templates, if your site uses a SiteGenesis or SFRA architecture AND
you haven’t enabled the Algolia cartridge.
The Algolia cartridges already include these updates.
If you are using a headless architecture,
see Headless storefronts.
To maintain the integrity of the original SFRA cartridge,
create a new cartridge as a best practice.
You can then move the original templates into this new cartridge and make the necessary modifications.
If you already use a custom cartridge,
adapt these changes to it.
In app_storefront_base/cartridge/templates/default/common/htmlHead.isml,
add the following code on line 32:
HTML
<isinclude template="algolia/headerScripts" />
In app_storefront_base/cartridge/templates/default/components/header/search.isml,
add the following code at the start of the file, and move existing the code to an <iselse> section:
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Algolia","description":"Build search, discovery, and AI experiences with Algolia. Guides, API references, libraries, UI components, and integrations for your stack.","colors":{"primary":"#3970ff","light":"#3970ff","dark":"#003DFF"},"logo":{"light":"https://mintcdn.com/algolia/kiecJp3hu-WXhj-3/logo/light.svg?fit=max\u0026auto=format\u0026n=kiecJp3hu-WXhj-3\u0026q=85\u0026s=bf613e260ca94c0eb23384e6c0d5c77f","dark":"https://mintcdn.com/algolia/kiecJp3hu-WXhj-3/logo/dark.svg?fit=max\u0026auto=format\u0026n=kiecJp3hu-WXhj-3\u0026q=85\u0026s=31a97f60063c111253c518bc0c638e70","href":"/doc"},"favicon":"https://mintcdn.com/algolia/ApgdWRCFtd9v2oPX/favicon.png?fit=max\u0026auto=format\u0026n=ApgdWRCFtd9v2oPX\u0026q=85\u0026s=91df7c93abadfb122ffc8e0f78cc2dc8","api":{"playground":{"display":"simple"},"examples":{"languages":["curl","csharp","dart","go","java","javascript","kotlin","php","python","ruby","scala","swift"],"autogenerate":false}},"navbar":{"links":[{"href":"https://dashboard.algolia.com/users/sign_in","label":"Log in"}],"primary":{"type":"button","label":"Create account","href":"https://www.algolia.com/users/sign_up"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/algolia","x":"https://twitter.com/algolia","discord":"https://alg.li/discord","youtube":"https://www.youtube.com/channel/UCTNkiq-SO8hay1PRx-it9Cw","website":"https://www.algolia.com"},"links":[{"items":[{"label":"Support","href":"https://support.algolia.com/hc/en-us"},{"label":"Glossary","href":"/doc/glossary"},{"label":"Privacy policy","href":"https://www.algolia.com/policies/privacy"},{"label":"Cookie settings","href":"https://www.algolia.com"}]}]},"seo":{"metatags":{"canonical":"https://www.algolia.com"},"organization":{"id":"https://www.algolia.com/#organization","name":"Algolia","url":"https://www.algolia.com","sameAs":["https://www.linkedin.com/company/algolia/","https://github.com/algolia","https://x.com/algolia","https://www.youtube.com/channel/UCTNkiq-SO8hay1PRx-it9Cw"]}},"fonts":{"heading":{"family":"Sora"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","codeblocks":"system","latex":true},"integrations":{"segment":{"key":"cKQbv9nMHIUgdWswDLG0c3UdiUgBaUmA"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"algolia","hasAudioNarration":false,"actualSubdomain":"algolia","customDomains":["www.algolia.com"],"gitSource":{"type":"github","owner":"algolia","repo":"docs-new","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af5c625483e41d0aa573dc2","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Libraries and tools","count":618},{"language":"default","tag":"Guides","count":584},{"language":"default","tag":"API clients","count":407},{"language":"default","tag":"Search and Discovery platform","count":406},{"language":"default","tag":"API reference","count":403},{"language":"default","tag":"UI libraries","count":290},{"language":"default","tag":"Reference","count":282},{"language":"default","tag":"Build Search UI","count":235},{"language":"default","tag":"Search","count":187},{"language":"default","tag":"React InstantSearch","count":169}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--radius: 0.5rem;--rounded-2xl: var(--radius);--rounded-xl: var(--radius);--rounded-lg: var(--radius);--rounded-md: var(--radius);--rounded-full: var(--radius);--icon-stroke: #000000;--border-color: rgb(var(--gray-200) / 0.5);--font-weight-headings-custom: 700;--docsearch-background-color: #f5f6f7;--filters-token-string-color: #b46900;--filters-token-error-color: #d7263d;--filters-token-paren-color: #005cc5;--filters-token-num-color: #6f42c1;--filters-token-operator-color: #22863a;--docsearch-sidepanel-border: var(--border-color);--docsearch-sidepanel-background: rgb(244, 246, 250);--docsearch-sidepanel-background-dark: #fff;--docsearch-hit-background-muted: rgb(247, 247, 248);--docsearch-searchbox-focus-background: #fff}:root.dark,html[data-theme=dark]{--icon-stroke: #ffffff;--border-color: rgb(var(--gray-900) / 0.8);--docsearch-background-color: #0a0b11 !important;--docsearch-dropdown-menu-background: #10121e;--docsearch-dropdown-menu-item-hover-background: #0a0b11;--docsearch-hit-color: #e5e7eb;--filters-token-string-color: #ffa657;--filters-token-error-color: #ff6b6b;--filters-token-paren-color: #79c0ff;--filters-token-num-color: #d2a8ff;--filters-token-operator-color: #7ee787;--docsearch-sidepanel-background: rgb(15, 17, 23);--docsearch-sidepanel-background-dark: rgba(11, 13, 17, 1);--docsearch-hit-background-muted: rgb(14, 17, 23);--docsearch-modal-background: #0a0b11;--docsearch-hit-focus-background: rgb(var(--gray-900))}.rounded-\\[0\\.85rem\\]{border-radius:var(--radius)}#banner{background-color:#23263b}#banner a{color:inherit}#background-div{background-color:#f6f6fa}.dark #background-div{background-color:#ffffff;opacity:0.03}#pagination{display:none}.background-lines{fill:#c5c9e0}.dark .background-lines{fill:#ffffff;fill-opacity:0.15}th{text-align:left}.tooltip{user-select:text}.prose a{font-weight:inherit}.prose a strong{font-weight:600}.katex-display>.katex{overflow-y:hidden}.prose a.link[href^=\"http\"]:not([href^=\"https://www.algolia.com/doc\"]){white-space:nowrap}.prose a.link[href^=\"http\"]:not([href^=\"https://www.algolia.com/doc\"])::after{display:inline-block;width:14px;height:14px;margin-left:4px;vertical-align:-2px;content:\"\";background-color:currentColor;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E\u003cpath d='M15 3h6v6'/%3E\u003cpath d='M10 14 21 3'/%3E\u003cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E\u003cpath d='M15 3h6v6'/%3E\u003cpath d='M10 14 21 3'/%3E\u003cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E\") center / contain no-repeat}.prose h2 code,.prose h3 code,.prose h4 code{font-weight:700}.prose table a code{word-break:keep-all}[data-component-part=\"field-content\"]{margin-left:1.5rem}[data-component-part=\"code-block-root\"]{border-radius:var(--radius)}#content-area img{margin-inline:auto;background:transparent!important}#content-area img:not(.no-shadow){box-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1),\n 0 4px 6px -4px rgb(0 0 0 / 0.1)}#content-area video{margin-inline:auto}.video-embed{display:block;width:100%;min-width:0;max-width:var(--video-embed-max-width, 644px);aspect-ratio:16 / 9;height:auto;margin-inline:auto}button+div[aria-hidden=\"true\"]{background-color:#23263b;border-radius:var(--radius);box-shadow:0 0 0 1px #23263b0d, 0 4px 8px -2px #23263b40;color:#fff;padding:.5rem .75rem}#feedback-toolbar button{border-radius:var(--radius)}html.no-overflow{overflow:hidden}body.DocSearch--active{overflow:initial!important}.DocSearch-Container{visibility:hidden;opacity:0;transition:opacity 120ms ease;padding-top:5vh;position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.1);display:flex;align-items:flex-start;justify-content:center;z-index:200;cursor:initial}.DocSearch-Container.docsearch-ready{visibility:visible;opacity:1}.dark .DocSearch-Form,.dark .DocSearch-SearchBar{background-color:transparent!important}.DocSearch-Dropdown{border-top:1px solid var(--docsearch-subtle-color);scrollbar-color:#9698c3 #f5f6f7;scrollbar-width:thin}.dark .DocSearch-Container{--docsearch-text-color: #c4c7dc}.dark .DocSearch-Dropdown{scrollbar-color:#7f8497 #15172a}.dark .DocSearch-Close{color:#5172FF}.dark .DocSearch-Close svg{color:#5172FF}.dark .DocSearch-MagnifierLabel svg{color:#5172FF}.DocSearch-SidepanelButton.floating{display:none}.dark .DocSearch-Dropdown{border-color:#212139}.dark .DocSearch-Divider{border-color:#212139}.dark .DocSearch-Input{color:white;caret-color:white}.dark .DocSearch-Container{background-color:rgba(0, 0, 0, 0.6)!important}.dark .DocSearch-SearchBar,.dark .DocSearch-Form,.dark .DocSearch-Input{color:#ffffff!important}.dark .DocSearch-Input::placeholder{color:#ffffff!important;opacity:0.9}.dark .DocSearch-Reset,.dark .DocSearch-Reset span,.dark .DocSearch-Reset svg,.dark .DocSearch-Close,.dark .DocSearch-Close svg{color:#5172ff!important;fill:#5172ff!important;stroke:#5172ff!important}.dark .DocSearch-Cancel,.dark .DocSearch-Cancel svg{color:#ffffff!important;fill:#ffffff!important;stroke:#ffffff!important}.dark .DocSearch-MagnifierLabel,.dark .DocSearch-MagnifierLabel svg{color:#5172ff!important;fill:#5172ff!important;stroke:#5172ff!important}.dark .DocSearch-Dropdown{background-color:#0a0b11!important}.dark .DocSearch-Hits mark{background-color:transparent!important;color:#7aa2ff!important}.dark .DocSearch-Hit a{color:#e5e7eb!important;border-color:#1b1e29!important}.dark .DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.dark .DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon{color:#7aa2ff}.dark .DocSearch-Title,.dark .DocSearch-Label{background-color:#0f1117!important}.dark .DocSearch-Title,.dark .DocSearch-Label,.dark .DocSearch-Hit-source{color:#e5e7eb!important}.dark .DocSearch-Footer{background-color:#0f1117!important;border-top:1px solid #1b1e29!important;color:#cbd5e1!important}.DocSearch-Hit--AskAI .DocSearch-AskAiScreen-Response .DocSearch-AskAiScreen-RelatedSources-Item-Link{background:var(--docsearch-hit-background-muted)!important}.DocSearch-Hit-AskAIButton-title-query{color:var(--docsearch-highlight-color)}.dark .DocSearch-Hit-AskAIButton-title-query{color:#7aa2ff!important}.dark .DocSearch-AskAiScreen-Response{color:#f5f6f7!important}.dark .DocSearch-Markdown-Content,.dark .DocSearch-Markdown-Content li{color:#cbd5e1!important}.dark .DocSearch-Markdown-Content a{color:#7aa2ff!important}.dark .DocSearch-AskAiScreen-RelatedSources-Item-Link{color:#cbd5e1}.dark .DocSearch-AskAiScreen-Response .DocSearch-CodeSnippet .DocSearch-CodeSnippet-CopyButton{background-color:#0f1117!important;color:#cbd5e1!important}.dark .DocSearch-AskAiScreen-Response .DocSearch-CodeSnippet pre{background-color:#0f1117!important;color:#e5e7eb!important}.dark .DocSearch-AskAiScreen-Response .DocSearch-CodeSnippet pre code{background-color:transparent!important;color:inherit!important}.DocSearch-Modal{position:relative;overflow:hidden;width:700px;max-width:90vw;border-radius:var(--radius);box-shadow:0 4px 12px rgba(0, 0, 0, 0.15)}.docsearch-expanded .DocSearch-Modal{max-height:auto;border-radius:var(--radius);box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25)}@media (max-width: 768px){.DocSearch-Container{padding-top:0}.DocSearch-Modal{width:100vw;max-width:100vw;border-radius:var(--radius)}.docsearch-expanded .DocSearch-Modal{max-height:100vh;border-radius:var(--radius)}.DocSearch-Dropdown{height:calc(100vh - var(--docsearch-footer-height) - var(--docsearch-searchbox-height, var(--docsearch-searchbox-initial-height)))}.docsearch-sidepanel-toggle .docsearch-sidepanel-label,.docsearch-sidepanel-toggle .docsearch-sidepanel-shortcut{display:none}.docsearch-sidepanel-toggle{padding:0 0.5rem}}@media (min-width: 769px){.docsearch-sidepanel-toggle{border:1px solid transparent;box-shadow:0 0 0 1px rgba(156, 163, 175, 0.3)}.docsearch-sidepanel-toggle:hover{box-shadow:0 0 0 1px rgba(75, 85, 99, 0.3)}html.dark .docsearch-sidepanel-toggle{box-shadow:0 0 0 1px rgba(75, 85, 99, 0.3)}html.dark .docsearch-sidepanel-toggle:hover{box-shadow:0 0 0 1px rgba(107, 114, 128, 0.3)}}.DocSearch-Sidepanel-Header{height:3.0rem}.DocSearch-Sidepanel-Container.inline.side-right{border-bottom-left-radius:0;border-left:1px solid var(--docsearch-sidepanel-border);border-top-left-radius:0}.DocSearch-Sidepanel-Container{box-shadow:none}.DocSearch-MCP-Callout{font-size:0.875em;display:flex;align-items:center;gap:0.25rem;color:var(--docsearch-text-color);padding-inline:0.25rem 0.5rem;padding-block:0.25rem;border-radius:var(--docsearch-border-radius);background-color:var(--docsearch-hit-focus-background);min-block-size:1.5rem}.DocSearch-MCP-Callout:hover,.DocSearch-MCP-Callout:focus-visible{outline:2px solid var(--docsearch-highlight-color)}.DocSearch-MCP-Callout svg{height:1rem;width:1rem;color:var(--docsearch-highlight-color);margin-block-start:1px}html.dark #filter-validator{background-color:var(--shiki-dark-bg)}#filter-validator{.Token_EOF {\n color: transparent;\n }\n\n .Token_Empty_Str,\n .Token_Incomplete_Str,\n .Token_String,\n .Token_Term {\n color: var(--filters-token-string-color);\n }\n\n .Token_Error {\n color: var(--filters-token-error-color);\n }\n\n .Token_Open_Paren,\n .Token_Close_Paren,\n .Token_Open_Angled_Bracket,\n .Token_Close_Angled_Bracket,\n .Token_Comma,\n .Token_Facet_Separator {\n color: var(--filters-token-paren-color);\n }\n\n .Token_Num {\n color: var(--filters-token-num-color);\n }\n\n .Token_OR,\n .Token_AND,\n .Token_NOT,\n .Token_Operator,\n .Token_Range {\n color: var(--filters-token-operator-color);\n }}.nav-tag-pill-text{text-transform:uppercase;letter-spacing:1px}[data-group-tag]>button>div{display:flex;align-items:center;gap:0.5rem}.steps .step .prose ol{list-style-type:lower-alpha}.no-bullets ul{margin-top:1rem;padding-left:0;margin-left:0;list-style:none}@layer components{.prose .no-bullets li{margin:0.5rem 0;margin-left:0!important;padding-left:0!important;list-style:none}}.no-bullets a.link{border-bottom-color:transparent}.no-bullets a.link:hover,.no-bullets a.link:focus-visible{border-bottom-color:rgb(57, 112, 255)}.no-bullets li::before{content:none!important}.homepage-hero{background-color:#23263b;background-image:linear-gradient(\n 90deg,\n rgba(12, 30, 69, 0.82) 0%,\n rgba(12, 30, 69, 0.72) 34%,\n rgba(12, 30, 69, 0.58) 58%,\n rgba(12, 30, 69, 0.44) 100%\n ),\n url(\"/mintlify-assets/hero.png\");background-position:center, 72% center;background-repeat:no-repeat;background-size:cover}@supports (background-image: image-set(url(\"/mintlify-assets/hero.webp\") type(\"image/webp\") 1x)){.homepage-hero{background-image:linear-gradient(\n 90deg,\n rgba(12, 30, 69, 0.82) 0%,\n rgba(12, 30, 69, 0.72) 34%,\n rgba(12, 30, 69, 0.58) 58%,\n rgba(12, 30, 69, 0.44) 100%\n ),\n image-set(\n url(\"/mintlify-assets/hero.webp\") type(\"image/webp\") 1x,\n url(\"/mintlify-assets/hero.png\") type(\"image/png\") 1x\n )}}@supports (background-image: -webkit-image-set(url(\"/mintlify-assets/hero.webp\") type(\"image/webp\") 1x)){.homepage-hero{background-image:linear-gradient(\n 90deg,\n rgba(12, 30, 69, 0.82) 0%,\n rgba(12, 30, 69, 0.72) 34%,\n rgba(12, 30, 69, 0.58) 58%,\n rgba(12, 30, 69, 0.44) 100%\n ),\n -webkit-image-set(\n url(\"/mintlify-assets/hero.webp\") type(\"image/webp\") 1x,\n url(\"/mintlify-assets/hero.png\") type(\"image/png\") 1x\n )}}.homepage-hero-cta{display:inline-flex;align-items:center;justify-content:center;gap:0;padding:0.5rem 0.875rem;border-radius:var(--radius);background:linear-gradient(220deg, rgb(69, 122, 255) 0%, rgb(30, 89, 255) 60.16%);color:#fff!important;font-family:Sora, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.5rem;letter-spacing:0.28px;text-decoration:none;transition:all 150ms ease}.homepage-hero-cta:hover{background:linear-gradient(138deg, rgba(118, 160, 255, 0.7) 0%, rgba(0, 61, 255, 0.7) 25.08%, rgba(151, 71, 255, 0.7) 56.38%, rgba(118, 160, 255, 0.7) 100%), rgb(0, 61, 255);color:#fff!important}@media (min-width: 1024px){.homepage-hero-cta{padding:0.75rem 1.25rem;font-size:1rem;letter-spacing:0.32px}}.sig-param-link{color:inherit;text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb, currentColor 45%, transparent);cursor:pointer;border-radius:2px;transition:text-decoration-color 120ms ease, text-decoration-thickness 120ms ease}.sig-param-link:hover,.sig-param-link:focus-visible,.line:has(.sig-param-link:hover) .sig-param-link,.line:has(.sig-param-link:focus-visible) .sig-param-link{text-decoration-style:solid;text-decoration-thickness:2px;text-decoration-color:currentColor;outline:none}.mint-flavor-switcher-slot{min-height:2.75rem;margin:0.25rem 0 1.5rem}.mint-flavor-switcher-slot .mint-flavor-switcher{margin:0}"}],"page":{"pagePath":"doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge","slug":"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge","pageMetadata":{"title":"Set up the Algolia cartridge","description":"Learn how to set up the Algolia cartridge for Salesforce B2C Commerce.","public":true,"platform":"Salesforce","subtype":"Guide","href":"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to set up the Algolia cartridge for Salesforce B2C Commerce.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Algolia provides the following cartridges to integrate with your Salesforce B2C Commerce storefronts:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Cartridge name`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`bm_algolia`})}),_jsx(_components.td,{children:`Configure and monitor Algolia indexing and search from your Business Manager (adding a corresponding Merchant Tools module)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`int_algolia`})}),_jsx(_components.td,{children:`Synchronize (index) your product catalog and content data from B2C Commerce to Algolia`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`int_algolia_sfra`})}),_jsx(_components.td,{children:`Add Algolia InstantSearch and Autocomplete on your SFRA storefront`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`int_algolia_controllers`}),` `,_jsx(_components.strong,{children:`algolia_sg_changes`})]}),_jsx(_components.td,{children:`Add Algolia InstantSearch and Autocomplete to your SiteGenesis storefront`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`install-the-cartridge`,children:`Install the cartridge`}),`\n`,_jsx(_components.p,{children:`You can install the cartridges with sgmf-scripts,\nthe Prophet Debugger Visual Studio Code extension,\nor Salesforce B2C Commerce UX Studio.`}),`\n`,_jsx(Heading,{level:`3`,id:`install-using-sgmf-scripts`,children:`Install using sgmf-scripts`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Download the cartridge source from `,_jsx(_components.a,{href:`https://github.com/algolia/algoliasearch-sfcc-b2c`,children:`GitHub`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Extract the directory.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Install the dependencies from the extracted directory with Node.js 22 or later:`}),`\n`,_jsx(CodeBlock,{filename:`Command line`,icon:`square-terminal`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /path/to/unzipped/folder`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a `,_jsx(_components.code,{children:`dw.json`}),` file in the same directory with the following content:`]}),`\n`,_jsx(CodeBlock,{filename:`JSON`,icon:`braces`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"username\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"password\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code-version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`hostname`}),`: hostname of your sandbox—for example: `,_jsx(_components.code,{children:`\"zzaa-001.sandbox.us01.dx.commercecloud.salesforce.com\"`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`username`}),` and `,_jsx(_components.code,{children:`password`}),`: your account manager credentials`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`code-version`}),`: active code version listed in `,_jsx(_components.strong,{children:`Administration > Code Deployment`}),`—for example, `,_jsx(_components.code,{children:`\"SFRA_AP_05_15_2020\"`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Upload the cartridges:`}),`\n`,_jsx(CodeBlock,{filename:`Command line`,icon:`square-terminal`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` uploadCartridge`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Administration > Development Setup > Folder Browser > Cartridges`}),` and verify that the Algolia cartridges are uploaded.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`install-using-prophet`,children:`Install using Prophet`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Install `,_jsx(_components.a,{href:`https://marketplace.visualstudio.com/items?itemName=SqrTT.prophet`,children:`Prophet`}),` from the Visual Studio Code marketplace.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create a `,_jsx(_components.code,{children:`dw.json`}),` file in the same directory with the following content:`]}),`\n`,_jsx(CodeBlock,{filename:`JSON`,icon:`braces`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"username\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"password\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code-version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`Prophet: Enable Upload`}),` from the command menu.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`install-with-salesforce-b2c-commerce-ux-studio`,children:`Install with Salesforce B2C Commerce UX Studio`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Download the cartridge source from `,_jsx(_components.a,{href:`https://github.com/algolia/algoliasearch-sfcc-b2c`,children:`GitHub`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Establish a new digital server connection with your Salesforce B2C Commerce instance.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Import the cartridges to a workspace in Salesforce UX Studio.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/import-in-ux-studio.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=1dde8583cdae91677ff75e302b137b6d`,alt:`Importing Algolia Cartridge in Salesforce UX studio Workspace`,\"data-og-width\":`529`,width:`529`,\"data-og-height\":`553`,height:`553`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/import-in-ux-studio.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/import-in-ux-studio.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=cf06d664eb6810aeb9ff22e5ee70af94 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/import-in-ux-studio.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=9df32417c07de49d48774583b8d4e904 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/import-in-ux-studio.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=d34f01ee421c4f02b04f9fd1e510378e 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/import-in-ux-studio.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=9740fd8f304f478ce45994214d603eaf 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/import-in-ux-studio.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=5a20f1457190effe65dc1dc07c85d3d8 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/import-in-ux-studio.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=e647738d91ad133f81a9775d42d4432a 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select the cartridges you want to add and click `,_jsx(_components.strong,{children:`Finish`}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/add-cartridge-to-project-reference.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=104da7683cbeca7208bde337822e2d77`,alt:`Screenshot of the 'Import Projects' dialog showing the Algolia cartridge projects selected for import in Eclipse.`,\"data-og-width\":`515`,width:`515`,\"data-og-height\":`708`,height:`708`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/add-cartridge-to-project-reference.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/add-cartridge-to-project-reference.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=83d2536c06e405f0716b8ec9e79f18a9 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/add-cartridge-to-project-reference.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=3c6c4195a35e54f427e8f22fc029fa00 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/add-cartridge-to-project-reference.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=6ff03caf02e2326b3d6c0130c6e59c75 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/add-cartridge-to-project-reference.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=b260d866a6576659c0224ce1d9b856b0 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/add-cartridge-to-project-reference.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=2ace98d5cb3fb9fda52fd95a0589025d 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/add-cartridge-to-project-reference.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=f35b13a0145119e3473355f8b0b41681 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Wait until Salesforce UX Studio uploads the cartridge to your B2C Commerce instance.`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`enable-the-cartridges-on-your-site`,children:`Enable the cartridges on your site`}),`\n`,_jsx(Heading,{level:`3`,id:`add-the-algolia-cartridges-to-your-site`,children:`Add the Algolia cartridges to your site`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Administration > Sites > Manage Sites`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Select your site from the `,_jsx(_components.strong,{children:`Storefront Sites`}),` list:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/storefront-list.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=7ccd41b3902be5d17fab25b65d2c0285`,alt:`Screenshot of the 'Storefront Sites' page in Business Manager, showing a list of sites with columns for Name, ID, Status, and Sorting.`,\"data-og-width\":`1038`,width:`1038`,\"data-og-height\":`530`,height:`530`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/storefront-list.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/storefront-list.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=43d2fe80260ea71d8cec7c0365857d5e 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/storefront-list.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=8592f27af2c3dd581c4ccfd5acaf8653 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/storefront-list.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=d57805437f63d4c5e8079b8f69708f34 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/storefront-list.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=71cf32d2490a05c8778367c8f7f65787 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/storefront-list.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=0c9642cfd64f05b2b7bc013e0a40c070 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/storefront-list.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=89ebd3cf121544a3b78391f1fd8939dd 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Settings`}),`, add the cartridges that match your site’s architecture:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`SFRA`})}),`\n`,_jsxs(_components.p,{children:[`Add `,_jsx(_components.code,{children:`int_algolia_sfra:int_algolia`}),` to the `,_jsx(_components.strong,{children:`beginning`}),` of your cartridge path.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sfra-installation-path.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=187a42869a6203ceeb0b25a026ef5ece`,alt:`Add the Algolia cartridge to the SFRA site installation cartridge path`,\"data-og-width\":`1112`,width:`1112`,\"data-og-height\":`530`,height:`530`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/sfra-installation-path.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sfra-installation-path.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=212d2bd22972bc3a31ebaf4c967324dc 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sfra-installation-path.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=4bb16a2027cbf747773f61c00c6f668b 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sfra-installation-path.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=e7b11eb8e1a71e459a67efea9a9deb48 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sfra-installation-path.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=dbe94f46ffc0edf3e6e002b096665ec3 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sfra-installation-path.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=46e3f1fca41bd6f1b0a2e25aa640d3f6 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sfra-installation-path.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=f63e25b32d56787a0b3d569143ac6d12 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`SiteGenesis`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add `,_jsx(_components.code,{children:`algolia_sg_changes:int_algolia_controllers`}),` to the `,_jsx(_components.strong,{children:`beginning`}),` of your cartridge path.`]}),`\n`,_jsxs(_components.li,{children:[`Add `,_jsx(_components.code,{children:`int_algolia`}),` to the `,_jsx(_components.strong,{children:`end`}),` of your cartridge path.`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sitegesis-installation-path.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=16257476f769c72ad46b1878cb40516c`,alt:`Add the Algolia cartridge to the SiteGenesis site installation cartridge path`,\"data-og-width\":`1257`,width:`1257`,\"data-og-height\":`565`,height:`565`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/sitegesis-installation-path.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sitegesis-installation-path.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=826a3511cbee99b5f32638a664793475 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sitegesis-installation-path.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=929787f9a2d42d934f053ab67b517671 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sitegesis-installation-path.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=34e8ac3647d3aee5d1a5ec9cf6331df3 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sitegesis-installation-path.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=6fffad0910ca24bbab5ee1d8071db7ca 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sitegesis-installation-path.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=1324d9d42485dbdbbb59b97cec86cf3b 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/sitegesis-installation-path.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=6b429a305065854075aa7649510166dd 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Headless`})}),`\n`,_jsxs(_components.p,{children:[`Add `,_jsx(_components.code,{children:`int_algolia`}),` to the `,_jsx(_components.strong,{children:`beginning`}),` of your cartridge path.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`add-the-algolia-cartridges-to-the-business-manager`,children:`Add the Algolia cartridges to the Business Manager`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Administration > Sites > Manage Sites`}),` and select `,_jsx(_components.strong,{children:`Business Manager`}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-site-list.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=85a0a0d8a56ade83fcfdaff8d469b155`,alt:`Screenshot of the Business Manager interface showing the 'Storefront Sites' page with a red arrow pointing to 'Business Manager Site.'`,\"data-og-width\":`1038`,width:`1038`,\"data-og-height\":`531`,height:`531`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-site-list.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-site-list.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=e54df3ba2c0102d5a23ba84704e3c572 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-site-list.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=7536b514ec84cab9f524462a3452db4e 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-site-list.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=e87db0dc77391aa27c440f67c2a8c266 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-site-list.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=868ab48a80b082f1dfbbdcf29966ff3a 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-site-list.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=75839ed8f9536f3081b87c841d88085f 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-site-list.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=e15f0ceecd76a6fb33b78c01cc57e4ed 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Settings`}),`, add `,_jsx(_components.code,{children:`bm_algolia:int_algolia`}),` at the `,_jsx(_components.strong,{children:`end`}),` of your cartridge path.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-settings.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=3a729b6143f3680ace481fb5329efd0c`,alt:`Add the Algolia cartridge to the Business Manager installation cartridge path`,\"data-og-width\":`1021`,width:`1021`,\"data-og-height\":`520`,height:`520`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-settings.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-settings.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=5a022d4414b0163e513f951996520808 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-settings.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=1d43d91864e34acc0dc669f19426be80 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-settings.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=19685479491069cff6fee9346297794b 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-settings.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=a1564f6c3997690e53316c1d3ff4c99e 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-settings.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=ae1273b1b25c0faa6543eafd9c8ff3fe 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/business-manager-settings.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=ef6d78c5d767c2d460a3cc0ca4fa14bf 2500w`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`enable-algolia-in-the-business-manager`,children:`Enable Algolia in the Business Manager`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Administration > Organization > Roles \u0026 Permissions`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Select the role for which you’d like to enable access, such as, Administrator.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Business Manager Modules`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Algolia`}),` and click `,_jsx(_components.strong,{children:`Update`}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`import-metadata`,children:`Import metadata`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Administration > Site Development > Import \u0026 Export`}),` and click `,_jsx(_components.strong,{children:`Upload`}),` under `,_jsx(_components.strong,{children:`Import \u0026 Export files`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Upload both files from the `,_jsx(_components.code,{children:`metadata/algolia/meta`}),` folder by clicking `,_jsx(_components.strong,{children:`Choose File`}),`, then `,_jsx(_components.strong,{children:`Upload`}),`.\nDo this for both `,_jsx(_components.code,{children:`custom-objecttype-definitions.xml`}),` and `,_jsx(_components.code,{children:`system-objecttype-extensions.xml`}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-upload.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=41276f49c88e115b524bd2961e60f19e`,alt:`Screenshot of the 'Manage Import Files' section showing two XML files and 'extract', 'Compress', and 'Delete' buttons.`,\"data-og-width\":`1924`,width:`1924`,\"data-og-height\":`928`,height:`928`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-upload.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-upload.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=7092ea730948c98d0b03ff60b8492f68 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-upload.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=6fbdaf998effc4f7f30b8a11481f16f5 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-upload.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=1b45274ae1a055c62233242844109589 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-upload.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=7be09f0a34d73466ebb310093dd3fc78 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-upload.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=4568b799bd5f407d3c1301102c5b4c78 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-upload.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=e1e5ea573e7b6cf3c9ce3a15d1d60472 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go back to `,_jsx(_components.strong,{children:`Administration > Site Development > Import \u0026 Export`}),` and click `,_jsx(_components.strong,{children:`Import`}),` under `,_jsx(_components.strong,{children:`Meta Data`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.code,{children:`custom-objecttype-definitions.xml`}),`, click `,_jsx(_components.strong,{children:`Next`}),`, then `,_jsx(_components.strong,{children:`Import`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Import`}),` under `,_jsx(_components.strong,{children:`Meta Data`}),` and import `,_jsx(_components.code,{children:`system-objecttype-extensions.xml`}),` as well.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Confirm that the import is successful:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-import-successful.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=9d9cdab6d04dfb3966faf9beec591bca`,alt:`Screenshot of the 'Import and Export' page showing a successful metadata import status with all four processes marked as 'Success' in the status table.`,\"data-og-width\":`886`,width:`886`,\"data-og-height\":`653`,height:`653`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-import-successful.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-import-successful.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=b69091841831b1c4ff1aed9dbfab5feb 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-import-successful.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=ae8a211bc7288a0339107682fa00a1bd 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-import-successful.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=f414e42f6bdb4e2938c53f01a19d2eae 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-import-successful.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=c078d6d9f00f9b875921fe75f17b3aa3 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-import-successful.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=b09823e9371b4ee06a079cee3f02ca38 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/metadata-import-successful.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=478c02f279e15404354fe95db2be6aa7 2500w`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`import-jobs-and-services`,children:`Import jobs and services`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Administration > Operations > Import \u0026 Export`}),` and click `,_jsx(_components.strong,{children:`Upload`}),` under `,_jsx(_components.strong,{children:`Import \u0026 Export files`})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Upload both files from the `,_jsx(_components.code,{children:`metadata/algolia`}),` folder by clicking `,_jsx(_components.strong,{children:`Choose File`}),`, then `,_jsx(_components.strong,{children:`Upload`}),`. Do this for both `,_jsx(_components.code,{children:`jobs.xml`}),` and `,_jsx(_components.code,{children:`services.xml`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go back to `,_jsx(_components.strong,{children:`Administration > Operations > Import \u0026 Export`}),` and click `,_jsx(_components.strong,{children:`Import`}),` under `,_jsx(_components.strong,{children:`Jobs`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.code,{children:`jobs.xml`}),` and click `,_jsx(_components.strong,{children:`Next`}),`, `,_jsx(_components.strong,{children:`Next`}),`, then `,_jsx(_components.strong,{children:`Import`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Import`}),` under `,_jsx(_components.strong,{children:`Services`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.code,{children:`services.xml`}),` and click `,_jsx(_components.strong,{children:`Next`}),`, `,_jsx(_components.strong,{children:`Next`}),`, then `,_jsx(_components.strong,{children:`Import`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Confirm that the import is successful:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/jobs-services-import-successful.png?fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=8c0f9f2b0ba5d6808c186f896e393c27`,alt:`Screenshot of the 'Import and Export' page showing successful 'Services Import' and 'Jobs Import' status with 'Success' in the status column.`,\"data-og-width\":`889`,width:`889`,\"data-og-height\":`762`,height:`762`,\"data-path\":`doc/integration/salesforce-commerce-cloud-b2c/getting-started/jobs-services-import-successful.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/jobs-services-import-successful.png?w=280\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=2fe220209be7f1c44638abd4a7cf821a 280w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/jobs-services-import-successful.png?w=560\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=80908ac981d440b7ae87d3044765aa03 560w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/jobs-services-import-successful.png?w=840\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=c82816cd91d5c3cf726ffe47faee3de1 840w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/jobs-services-import-successful.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=089e79f787ffb65c5097257fe9842fea 1100w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/jobs-services-import-successful.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=e9e9c051c7b57a189272da07b2cfbda4 1650w, https://mintcdn.com/algolia/rjtfW1hxW88XnUWE/doc/integration/salesforce-commerce-cloud-b2c/getting-started/jobs-services-import-successful.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rjtfW1hxW88XnUWE\u0026q=85\u0026s=0173b2c4f2a0d1d76cc6ccc1a85ab24b 2500w`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`set-algolia-custom-preferences-for-your-site`,children:`Set Algolia custom preferences for your site`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Merchant Tools > Algolia > Algolia`}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/algolia/aBjEyn0v4sUEcZWU/images/integration/salesforce-commerce-cloud-b2c/algolia-bm-module.png?fit=max\u0026auto=format\u0026n=aBjEyn0v4sUEcZWU\u0026q=85\u0026s=610c94952ef544f6e87f671e3c7d963c`,alt:`Screenshot of the Algolia Business Manager module settings, with API keys, record model, indexing API, and storefront toggles.`,\"data-og-width\":`1000`,width:`1000`,\"data-og-height\":`1028`,height:`1028`,\"data-path\":`images/integration/salesforce-commerce-cloud-b2c/algolia-bm-module.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/algolia/aBjEyn0v4sUEcZWU/images/integration/salesforce-commerce-cloud-b2c/algolia-bm-module.png?w=280\u0026fit=max\u0026auto=format\u0026n=aBjEyn0v4sUEcZWU\u0026q=85\u0026s=71c270da41b88c4e25e37d55ac53b682 280w, https://mintcdn.com/algolia/aBjEyn0v4sUEcZWU/images/integration/salesforce-commerce-cloud-b2c/algolia-bm-module.png?w=560\u0026fit=max\u0026auto=format\u0026n=aBjEyn0v4sUEcZWU\u0026q=85\u0026s=341da98686c0d39ea672c6190edfcd3c 560w, https://mintcdn.com/algolia/aBjEyn0v4sUEcZWU/images/integration/salesforce-commerce-cloud-b2c/algolia-bm-module.png?w=840\u0026fit=max\u0026auto=format\u0026n=aBjEyn0v4sUEcZWU\u0026q=85\u0026s=7f6476891fdde633acf5eba6f9370a8c 840w, https://mintcdn.com/algolia/aBjEyn0v4sUEcZWU/images/integration/salesforce-commerce-cloud-b2c/algolia-bm-module.png?w=1100\u0026fit=max\u0026auto=format\u0026n=aBjEyn0v4sUEcZWU\u0026q=85\u0026s=df473650780fb4cf2d6e7baee279e69a 1100w, https://mintcdn.com/algolia/aBjEyn0v4sUEcZWU/images/integration/salesforce-commerce-cloud-b2c/algolia-bm-module.png?w=1650\u0026fit=max\u0026auto=format\u0026n=aBjEyn0v4sUEcZWU\u0026q=85\u0026s=8dbd4be08bb5252513d7afb59c812987 1650w, https://mintcdn.com/algolia/aBjEyn0v4sUEcZWU/images/integration/salesforce-commerce-cloud-b2c/algolia-bm-module.png?w=2500\u0026fit=max\u0026auto=format\u0026n=aBjEyn0v4sUEcZWU\u0026q=85\u0026s=a8c1fdd66c871c43524c9ec4871f44c2 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Enable Algolia by checking the checkbox next to `,_jsx(_components.strong,{children:`Enable Algolia`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Enter your `,_jsx(_components.strong,{children:`Application ID`}),`, `,_jsx(_components.strong,{children:`Search API Key`}),` and `,_jsx(_components.strong,{children:`Write API Key`}),`.\nFind them in the `,_jsx(_components.a,{href:`https://dashboard.algolia.com/account/api-keys/`,children:`Algolia dashboard`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Consider using restricted API keys for increased security.\nThe Write API key needs `,_jsx(_components.code,{children:`addObject`}),`, `,_jsx(_components.code,{children:`deleteObject`}),`, `,_jsx(_components.code,{children:`deleteIndex`}),`, and `,_jsx(_components.code,{children:`settings`}),` ACL when indexing with the Search API.\nWhen `,_jsx(_components.a,{href:`/doc/integration/salesforce-commerce-cloud-b2c/guides/ingestion-api`,children:`indexing with the Ingestion API`}),`, the key must also include `,_jsx(_components.code,{children:`editSettings`}),`.\nFor more information see `,_jsx(_components.a,{href:`/doc/guides/security/api-keys/in-depth/api-key-restrictions`,children:`API key restrictions`}),`.`]})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In the `,_jsx(_components.strong,{children:`Additional Product Attributes`}),` field,\nenter the `,_jsx(_components.a,{href:`/doc/integration/salesforce-commerce-cloud-b2c/indexing/product-indexing/indexing-attributes#configurable-attributes`,children:`additional attributes`}),` you want to index.`]}),`\n`,_jsx(_components.p,{children:`The following attributes are always indexed, so you don’t need to specify them:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`name`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`__primary_category`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`categoryPageId`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`url`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`image_groups`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`in_stock`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`price`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Consider adding these attributes: `,_jsx(_components.code,{children:`short_description`}),` and `,_jsx(_components.code,{children:`long_description`}),`.\nThen, expand the list to include attributes specific to your product catalog,\nsuch as, `,_jsx(_components.code,{children:`brand`}),`, `,_jsx(_components.code,{children:`color`}),`, or `,_jsx(_components.code,{children:`size`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The content attributes you want to index are managed using the `,_jsx(_components.code,{children:`attributeList`}),` job step parameter.\nFor more information, see `,_jsx(_components.a,{href:`/doc/integration/salesforce-commerce-cloud-b2c/indexing/content-indexing/configuration#content-indexing-job-configuration`,children:`Content indexing job configuration`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`To use `,_jsx(_components.a,{href:`/doc/integration/salesforce-commerce-cloud-b2c/indexing/product-indexing/indexing-attributes#index-active-data`,children:`active data`}),` for `,_jsx(_components.a,{href:`/doc/guides/managing-results/must-do/custom-ranking`,children:`custom ranking`}),`, in `,_jsx(_components.strong,{children:`Active data for custom ranking`}),`, select the recommended `,_jsx(_components.code,{children:`ProductActiveData`}),` attributes to index at the record root: `,_jsx(_components.code,{children:`ordersWeek`}),`, `,_jsx(_components.code,{children:`revenueWeek`}),`, `,_jsx(_components.code,{children:`conversionWeek`}),`, `,_jsx(_components.code,{children:`ordersMonth`}),`, `,_jsx(_components.code,{children:`revenueMonth`}),`, or `,_jsx(_components.code,{children:`conversionMonth`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`To index a `,_jsx(_components.code,{children:`ProductActiveData`}),` attribute that isn’t in the checkbox list, add its ID (without the `,_jsx(_components.code,{children:`activeData.`}),` prefix) to `,_jsx(_components.strong,{children:`Additional Product Attributes`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Active data values are returned in search responses by default.\nIf you use them only as ranking signals, add the same attribute IDs to `,_jsx(_components.a,{href:`/doc/api-reference/api-parameters/unretrievableAttributes`,children:_jsx(_components.code,{children:`unretrievableAttributes`})}),` on every product index the cartridge writes to.\nFor more information, see `,_jsx(_components.a,{href:`/doc/integration/salesforce-commerce-cloud-b2c/indexing/product-indexing/indexing-attributes#make-active-data-attributes-unretrievable`,children:`Make active data attributes unretrievable`}),`.`]})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Choose a record model that fits your needs.\nConsider `,_jsx(_components.a,{href:`/doc/integration/salesforce-commerce-cloud-b2c/getting-started/configure-your-search#configure-results-grouping`,children:`grouping records`}),`\nif you use the variant-level model.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`For more information, see `,_jsx(_components.a,{href:`/doc/integration/salesforce-commerce-cloud-b2c/getting-started/custom-preferences`,children:`Custom preferences`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`update-your-templates`,children:`Update your templates`}),`\n`,_jsxs(_components.p,{children:[`You need to update your templates, if your site uses a `,_jsx(_components.strong,{children:`SiteGenesis`}),` or `,_jsx(_components.strong,{children:`SFRA`}),` architecture `,_jsx(_components.strong,{children:`AND`}),`\nyou haven’t `,_jsx(_components.a,{href:`#enable-the-cartridges-on-your-site`,children:`enabled the Algolia cartridge`}),`.\nThe Algolia cartridges already include these updates.\nIf you are using a `,_jsx(_components.strong,{children:`headless`}),` architecture,\nsee `,_jsx(_components.a,{href:`/doc/integration/salesforce-commerce-cloud-b2c/guides/headless`,children:`Headless storefronts`}),`.`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`To maintain the integrity of the original SFRA cartridge,\ncreate a new cartridge as a best practice.\nYou can then move the original templates into this new cartridge and make the necessary modifications.\nIf you already use a custom cartridge,\nadapt these changes to it.`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.code,{children:`app_storefront_base/cartridge/templates/default/common/htmlHead.isml`}),`,\nadd the following code on line 32:`]}),`\n`,_jsx(CodeBlock,{filename:`HTML`,icon:`code-xml`,numberOfLines:`1`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`isinclude`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` template`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"algolia/headerScripts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.code,{children:`app_storefront_base/cartridge/templates/default/components/header/search.isml`}),`,\nadd the following code at the start of the file, and move existing the code to an `,_jsx(_components.code,{children:`\u003ciselse>`}),` section:`]}),`\n`,_jsx(CodeBlock,{filename:`HTML`,expandable:`true`,numberOfLines:`23`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`isset`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"algoliaData\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\\${require('*/cartridge/scripts/algolia/lib/algoliaData')}\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` scope`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`isif`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` condition`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\\${algoliaData.getPreference('Enable')}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"site-search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"suggestions-wrapper\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` data-category`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"${pdict.cgid}\"'})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` data-category-display-name-path`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"${pdict.categoryDisplayNamePath}\"'})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` data-category-display-name-path-separator`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"${pdict.categoryDisplayNamePathSeparator}\"'})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` data-q`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"${pdict.q}\"'})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` data-search-page-root`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\\${URLUtils.http('Search-Show')}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`input`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"search\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"aa-search-input\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"aa-input-search form-control\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` placeholder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\\${Resource.msg('label.header.searchwatermark', 'common', null)}\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"search\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` autocomplete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"off\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`iselse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`/>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` \u003c!-- existing code from the template -->`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`isif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.code,{children:`app_storefront_base/cartridge/templates/default/search/searchResult.isml`}),`,\nreplace this line:`]}),`\n`,_jsx(CodeBlock,{filename:`HTML`,icon:`code-xml`,numberOfLines:`1`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`isinclude`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` template`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"search/searchResultsNoDecorator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`with the following code:`}),`\n`,_jsx(CodeBlock,{filename:`HTML`,icon:`code-xml`,numberOfLines:`5`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`isif`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` condition`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"${pdict.algoliaEnable}\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`isinclude`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` template`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"algolia/search/searchResultsNoDecorator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`iselse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`/>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`isinclude`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` template`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"search/searchResultsNoDecorator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`isif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Set up the Algolia cartridge","description":"Learn how to set up the Algolia cartridge for Salesforce B2C Commerce.","public":true,"platform":"Salesforce","subtype":"Guide","href":"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Install the cartridge","slug":"install-the-cartridge","depth":2,"children":[{"title":"Install using sgmf-scripts","slug":"install-using-sgmf-scripts","depth":3,"children":[]},{"title":"Install using Prophet","slug":"install-using-prophet","depth":3,"children":[]},{"title":"Install with Salesforce B2C Commerce UX Studio","slug":"install-with-salesforce-b2c-commerce-ux-studio","depth":3,"children":[]}]},{"title":"Enable the cartridges on your site","slug":"enable-the-cartridges-on-your-site","depth":2,"children":[{"title":"Add the Algolia cartridges to your site","slug":"add-the-algolia-cartridges-to-your-site","depth":3,"children":[]},{"title":"Add the Algolia cartridges to the Business Manager","slug":"add-the-algolia-cartridges-to-the-business-manager","depth":3,"children":[]}]},{"title":"Enable Algolia in the Business Manager","slug":"enable-algolia-in-the-business-manager","depth":2,"children":[]},{"title":"Import metadata","slug":"import-metadata","depth":2,"children":[]},{"title":"Import jobs and services","slug":"import-jobs-and-services","depth":2,"children":[]},{"title":"Set Algolia custom preferences for your site","slug":"set-algolia-custom-preferences-for-your-site","depth":2,"children":[]},{"title":"Update your templates","slug":"update-your-templates","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/algolia/34bdaaeaccaa769c/docsearch.js","/_mintlify/custom/algolia/e18afef8ba6306ba/one-trust.js","/_mintlify/custom/algolia/5a5e6ade8ff45aec/utm-attribution.js","/_mintlify/custom/algolia/a4b9f2f416e55759/iframe-resize.js","/_mintlify/custom/algolia/dbca34a8de6b147e/instantsearch-api-signature-links.js","/_mintlify/custom/algolia/4e6ff31277aab3f2/segment-analytics.js","/_mintlify/custom/algolia/ae5f1d742fc727f6/optinmonster.js"],"subdomain":"algolia","siteName":"Algolia","title":"Set up the Algolia cartridge - Algolia","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T09:15:41.001Z","gitLastModified":"2026-10-28T14:27:22.000Z","originalFileLocation":"doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to set up the Algolia cartridge for Salesforce B2C Commerce.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Algolia\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set up the Algolia cartridge - Algolia\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to set up the Algolia cartridge for Salesforce B2C Commerce.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Algolia\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://algolia.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Set+up+the+Algolia+cartridge\u0026amp;description=Learn+how+to+set+up+the+Algolia+cartridge+for+Salesforce+B2C+Commerce.\u0026amp;theme=7b696fa6ef3d890ba8a17746\u0026amp;signature=571db61e9868e28e916e10ab49c9c6a8f94d61c1a4ca7a5b3ff50e829c64f807\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Set up the Algolia cartridge - Algolia\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to set up the Algolia cartridge for Salesforce B2C Commerce.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://algolia.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Set+up+the+Algolia+cartridge\u0026amp;description=Learn+how+to+set+up+the+Algolia+cartridge+for+Salesforce+B2C+Commerce.\u0026amp;theme=7b696fa6ef3d890ba8a17746\u0026amp;signature=571db61e9868e28e916e10ab49c9c6a8f94d61c1a4ca7a5b3ff50e829c64f807\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/algolia/pODf0GWwkpqTo2Wx/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Algolia\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3970ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.algolia.com/#organization\",\"name\":\"Algolia\",\"url\":\"https://www.algolia.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/algolia/kiecJp3hu-WXhj-3/logo/light.svg?fit=max\u0026auto=format\u0026n=kiecJp3hu-WXhj-3\u0026q=85\u0026s=bf613e260ca94c0eb23384e6c0d5c77f\"},\"sameAs\":[\"https://www.linkedin.com/company/algolia/\",\"https://github.com/algolia\",\"https://x.com/algolia\",\"https://www.youtube.com/channel/UCTNkiq-SO8hay1PRx-it9Cw\"]},{\"@type\":\"WebSite\",\"@id\":\"https://www.algolia.com#website\",\"name\":\"Algolia\",\"url\":\"https://www.algolia.com\",\"publisher\":{\"@id\":\"https://www.algolia.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge#webpage\",\"url\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge\",\"name\":\"Set up the Algolia cartridge\",\"description\":\"Learn how to set up the Algolia cartridge for Salesforce B2C Commerce.\",\"dateModified\":\"2026-10-28T14:27:22.000Z\",\"isPartOf\":{\"@id\":\"https://www.algolia.com#website\"},\"breadcrumb\":{\"@id\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Salesforce B2C Commerce\",\"item\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get started\",\"item\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/introduction\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Set up the Algolia cartridge\",\"item\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge#article\",\"headline\":\"Set up the Algolia cartridge\",\"name\":\"Set up the Algolia cartridge\",\"description\":\"Learn how to set up the Algolia cartridge for Salesforce B2C Commerce.\",\"url\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge\",\"mainEntityOfPage\":{\"@id\":\"https://www.algolia.com/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge#webpage\"},\"dateModified\":\"2026-10-28T14:27:22.000Z\",\"publisher\":{\"@id\":\"https://www.algolia.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.algolia.com#website\"}}]}\u003c/script>","agentPointerHref":"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge.md","siteName":"Algolia","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"book-text","pages":[{"title":"Guides","href":"/doc/guides/get-started"}]},{"tab":"Libraries and tools","icon":"wrench","menu":[{"item":"API clients","versions":[{"version":"current","groups":[{"group":"current","pages":[{"title":"current","href":"/doc/libraries/sdk"}]}]},{"version":"legacy","groups":[{"group":"legacy","pages":[{"title":"legacy","href":"/doc/libraries/sdk/v1/install"}]}]}]},{"item":"Algolia CLI","pages":[{"title":"Algolia CLI","href":"/doc/tools/cli/get-started"}]},{"item":"Algolia Wizard","pages":[{"title":"Algolia Wizard","href":"/doc/tools/algolia-wizard"}]},{"item":"Crawler","pages":[{"title":"Crawler","href":"/doc/tools/crawler/getting-started/overview"}]},{"item":"Django","pages":[{"title":"Django","href":"/doc/framework-integration/django/setup"}]},{"item":"Laravel","pages":[{"title":"Laravel","href":"/doc/framework-integration/laravel/getting-started/introduction-to-scout-extended"}]},{"item":"Ruby on Rails","pages":[{"title":"Ruby on Rails","href":"/doc/framework-integration/rails/getting-started/setup"}]},{"item":"Symfony","pages":[{"title":"Symfony","href":"/doc/framework-integration/symfony/getting-started/algolia-searchbundle"}]},{"item":"All libraries and tools","pages":[{"title":"All libraries and tools","href":"/doc/libraries"}]}],"pages":[{"title":"Libraries and tools","href":"/doc/libraries/sdk"}]},{"tab":"UI libraries","icon":"proportions","menu":[{"item":"InstantSearch.js","pages":[{"title":"InstantSearch.js","href":"/doc/api-reference/widgets/js"}]},{"item":"React InstantSearch","pages":[{"title":"React InstantSearch","href":"/doc/api-reference/widgets/react"}]},{"item":"Vue InstantSearch","pages":[{"title":"Vue InstantSearch","href":"/doc/api-reference/widgets/vue"}]},{"item":"InstantSearch iOS","pages":[{"title":"InstantSearch iOS","href":"/doc/api-reference/widgets/ios"}]},{"item":"InstantSearch Android","pages":[{"title":"InstantSearch Android","href":"/doc/api-reference/widgets/android"}]},{"item":"Algolia for Flutter","pages":[{"title":"Algolia for Flutter","href":"/doc/api-reference/widgets/flutter"}]},{"item":"Autocomplete","pages":[{"title":"Autocomplete","href":"/doc/ui-libraries/autocomplete/introduction/what-is-autocomplete"}]},{"item":"All UI libraries","pages":[{"title":"All UI libraries","href":"/doc/ui-libraries"}]}],"pages":[{"title":"UI libraries","href":"/doc/api-reference/widgets/js"}]},{"tab":"Integrations","icon":"plug","menu":[{"item":"Adobe Commerce/Magento","pages":[{"title":"Adobe Commerce/Magento","href":"/doc/integration/magento-2/getting-started/quick-start"}]},{"item":"BigCommerce","pages":[{"title":"BigCommerce","href":"/doc/integration/bigcommerce/get-started/installation"}]},{"item":"commercetools","pages":[{"title":"commercetools","href":"/doc/integration/commercetools/get-started/installation"}]},{"item":"Make","pages":[{"title":"Make","href":"/doc/integration/make"}]},{"item":"n8n","pages":[{"title":"n8n","href":"/doc/integration/n8n"}]},{"item":"Salesforce B2C Commerce","groups":[{"group":"Salesforce B2C Commerce","pages":[{"group":"Get started","pages":[{"title":"Algolia for Salesforce B2C Commerce","sidebarTitle":"Introduction","description":"Integrate Algolia with Salesforce B2C Commerce.","href":"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/introduction"},{"title":"Set up the Algolia cartridge","href":"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/set-up-the-algolia-cartridge"},{"title":"Start indexing your data","description":"Learn how to index your Salesforce B2C Commerce catalog data into Algolia.","href":"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/start-indexing-your-data"},{"title":"Configure your search","href":"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/configure-your-search"},{"title":"Custom preferences","mode":"wide","href":"/doc/integration/salesforce-commerce-cloud-b2c/getting-started/custom-preferences"}]},{"group":"Indexing","pages":[{"group":"Product indexing","root":{"sidebarTitle":"Overview","title":"Product indexing","href":"/doc/integration/salesforce-commerce-cloud-b2c/indexing/product-indexing/overview"},"pages":[{"title":"Full catalog indexing","href":"/doc/integration/salesforce-commerce-cloud-b2c/indexing/product-indexing/full-indexing"},{"title":"Ongoing indexing","href":"/doc/integration/salesforce-commerce-cloud-b2c/indexing/product-indexing/ongoing-indexing"},{"title":"Price and inventory delta indexing","href":"/doc/integration/salesforce-commerce-cloud-b2c/indexing/product-indexing/price-and-inventory-delta-indexing"},{"title":"Indexing attributes","href":"/doc/integration/salesforce-commerce-cloud-b2c/indexing/product-indexing/indexing-attributes"}]},{"group":"Content indexing","root":{"sidebarTitle":"Overview","title":"Content indexing","href":"/doc/integration/salesforce-commerce-cloud-b2c/indexing/content-indexing/fundamentals"},"pages":[{"title":"Configuration","href":"/doc/integration/salesforce-commerce-cloud-b2c/indexing/content-indexing/configuration"}]}]},{"group":"Build the search UI","pages":[{"title":"Frontend (UI/UX)","href":"/doc/integration/salesforce-commerce-cloud-b2c/building-the-search-ui/front-end"},{"title":"Click and conversion events","href":"/doc/integration/salesforce-commerce-cloud-b2c/building-the-search-ui/events"}]},{"group":"Guides","pages":[{"group":"Headless storefronts","root":{"sidebarTitle":"Overview","title":"Add Algolia to a headless Salesforce B2C Commerce storefront","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/headless"},"pages":[{"title":"PWA Kit demo and starter code","sidebarTitle":"PWA Kit demo","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/pwa-kit"},{"title":"Integrate Algolia with a custom React frontend","sidebarTitle":"Custom React frontend","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/custom-react-frontend"},{"sidebarTitle":"Storefront sample app","title":"Integrate Algolia into the storefront sample app","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/storefront-sample-app"}]},{"title":"Upgrade to v23.5","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/migrating-to-23-5-0"},{"title":"Pricing and promotions","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/pricing-and-promotions"},{"title":"Buy online, pick up in-store (BOPIS)","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/bopis"},{"title":"Real-time inventory updates","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/realtime-updates"},{"title":"Index with the Ingestion API","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/ingestion-api"},{"title":"Use Algolia Collections","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/collections"},{"title":"Integrate recommendations in your storefront","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/algolia-recommend"},{"title":"Server-side rendering (SSR) and caching","sidebarTitle":"Server-side rendering and caching","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/ssr-caching"},{"sidebarTitle":"Facet bucketing","title":"Facet bucketing with custom attributes","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/facet-bucketing"},{"title":"Multi-instance indexing","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/multi-instance-indexing"},{"sidebarTitle":"Performance considerations","title":"Performance considerations","href":"/doc/integration/salesforce-commerce-cloud-b2c/guides/performance-considerations"}]},{"title":"Monitoring","sidebarTitle":"Troubleshooting","href":"/doc/integration/salesforce-commerce-cloud-b2c/troubleshooting/monitoring"}]}]},{"item":"Shopify","pages":[{"title":"Shopify","href":"/doc/integration/shopify/getting-started/quick-start"}]},{"item":"Stripe Projects","pages":[{"title":"Stripe Projects","href":"/doc/integration/stripe-projects"}]},{"item":"Zapier","pages":[{"title":"Zapier","href":"/doc/integration/zapier"}]},{"item":"Zendesk","pages":[{"title":"Zendesk","href":"/doc/integration/zendesk/get-started"}]},{"item":"Vercel","pages":[{"title":"Vercel","href":"/doc/integration/vercel"}]},{"item":"All integrations","pages":[{"title":"All integrations","href":"/doc/integration"}]}]},{"tab":"API reference","icon":"code","menu":[{"item":"Search","pages":[{"title":"Search","href":"/doc/rest-api/search"}]},{"item":"Agent Studio","pages":[{"title":"Agent Studio","href":"/doc/rest-api/agent-studio"}]},{"item":"A/B testing","pages":[{"title":"A/B testing","href":"/doc/rest-api/abtesting-v3"}]},{"item":"Advanced Personalization","pages":[{"title":"Advanced Personalization","href":"/doc/rest-api/advanced-personalization"}]},{"item":"Analytics","pages":[{"title":"Analytics","href":"/doc/rest-api/analytics"}]},{"item":"Classic Personalization","pages":[{"title":"Classic Personalization","href":"/doc/rest-api/personalization"}]},{"item":"Composition","pages":[{"title":"Composition","href":"/doc/rest-api/composition"}]},{"item":"Crawler","pages":[{"title":"Crawler","href":"/doc/rest-api/crawler"}]},{"item":"Ingestion","pages":[{"title":"Ingestion","href":"/doc/rest-api/ingestion"}]},{"item":"Insights","pages":[{"title":"Insights","href":"/doc/rest-api/insights"}]},{"item":"Monitoring","pages":[{"title":"Monitoring","href":"/doc/rest-api/monitoring"}]},{"item":"Recommend","pages":[{"title":"Recommend","href":"/doc/rest-api/recommend"}]},{"item":"Query Suggestions","pages":[{"title":"Query Suggestions","href":"/doc/rest-api/query-suggestions"}]},{"item":"Suggested Actions","pages":[{"title":"Suggested Actions","href":"/doc/rest-api/suggested-actions"}]},{"item":"Usage","pages":[{"title":"Usage","href":"/doc/rest-api/usage"}]},{"item":"All APIs","pages":[{"title":"All APIs","href":"/doc/rest-api"}]}],"pages":[{"title":"API reference","href":"/doc/rest-api/search"}]}]},"basePath":"","title":"Set up the Algolia cartridge - Algolia","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-DTFzvaXJ.js","lightbox-handle-r17bVUz3.js"]}