From a418e6cebc99b43d1fe5c011785bd58678d4700f Mon Sep 17 00:00:00 2001 From: Chris <134155599+chrislaai@users.noreply.github.com> Date: Tue, 5 Dec 2023 03:23:25 -0600 Subject: [PATCH] docs: search results template needs the product ids to fetch previews (#5793) https://github.com/medusajs/nextjs-starter-medusa/issues/200#issuecomment-1828308192 --- www/apps/docs/content/plugins/search/meilisearch.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/apps/docs/content/plugins/search/meilisearch.md b/www/apps/docs/content/plugins/search/meilisearch.md index 8357942fe8..8e7ff0370b 100644 --- a/www/apps/docs/content/plugins/search/meilisearch.md +++ b/www/apps/docs/content/plugins/search/meilisearch.md @@ -137,6 +137,7 @@ const plugins = [ "variant_sku", ], displayedAttributes: [ + "id", "title", "description", "variant_sku", @@ -245,7 +246,7 @@ If you run your Next.js Starter Template now while the Medusa backend and the Me :::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`. :::