docs: search results template needs the product ids to fetch previews (#5793)

https://github.com/medusajs/nextjs-starter-medusa/issues/200#issuecomment-1828308192
This commit is contained in:
Chris authored and GitHub committed 2023-12-05 09:23:25 +00:00
1 parent ebac617c19
commit a418e6cebc
1 file changed
+2 -1
@@ -137,6 +137,7 @@ const plugins = [
"variant_sku", "variant_sku",
], ],
displayedAttributes: [ displayedAttributes: [
"id",
"title", "title",
"description", "description",
"variant_sku", "variant_sku",
@@ -245,7 +246,7 @@ If you run your Next.js Starter Template now while the Medusa backend and the Me
:::note :::note
To make sure the Next.js Starter Template properly displays the products in the search result, include in the `displayedAttributes` setting of the MeiliSearch plugin on the Medusa backend at least the fields `title`, `handle`, `description`, and `thumbnail`. To make sure the Next.js Starter Template properly displays the products in the search result, include in the `displayedAttributes` setting of the MeiliSearch plugin on the Medusa backend at least the fields `id`, `title`, `handle`, `description`, and `thumbnail`.
::: :::