From bf9bdd007bde22880389567d96da2ffddf72c45b Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Tue, 10 Jun 2025 13:17:32 -0500 Subject: [PATCH 1/4] Update search-simple-query.js Added region tag to simply search query for code snippet update in the documentation. --- retail/interactive-tutorials/search/search-simple-query.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retail/interactive-tutorials/search/search-simple-query.js b/retail/interactive-tutorials/search/search-simple-query.js index 783d86ab21..e3406af443 100644 --- a/retail/interactive-tutorials/search/search-simple-query.js +++ b/retail/interactive-tutorials/search/search-simple-query.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// [START retail_search_simple_query] 'use strict'; async function main() { @@ -76,3 +77,5 @@ process.on('unhandledRejection', err => { }); main(); + +// [END retail_search_simple_query] From ec27aa371728f97c8785a7bfb079195d8df66559 Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Tue, 10 Jun 2025 18:59:26 -0500 Subject: [PATCH 2/4] Update search-with-pagination.js --- retail/interactive-tutorials/search/search-with-pagination.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retail/interactive-tutorials/search/search-with-pagination.js b/retail/interactive-tutorials/search/search-with-pagination.js index 89559155bb..8a8f7dc8a4 100644 --- a/retail/interactive-tutorials/search/search-with-pagination.js +++ b/retail/interactive-tutorials/search/search-with-pagination.js @@ -14,6 +14,7 @@ 'use strict'; +// [START retail_search_for_products_with_pagination] async function main() { // Imports the Google Cloud client library. const {SearchServiceClient} = require('@google-cloud/retail'); @@ -83,6 +84,8 @@ async function main() { //PASTE CALL WITH NEXT PAGE TOKEN HERE: } +// [END retail_search_for_products_with_pagination] + process.on('unhandledRejection', err => { console.error(err.message); process.exitCode = 1; From 3330b0bb48008b551da5b2e976a5eefb2d85ca50 Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Fri, 27 Jun 2025 18:03:39 -0600 Subject: [PATCH 3/4] Update search-with-query-expansion-spec.js --- .../search/search-with-query-expansion-spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retail/interactive-tutorials/search/search-with-query-expansion-spec.js b/retail/interactive-tutorials/search/search-with-query-expansion-spec.js index 8562e9ccfd..3f8d27ae15 100644 --- a/retail/interactive-tutorials/search/search-with-query-expansion-spec.js +++ b/retail/interactive-tutorials/search/search-with-query-expansion-spec.js @@ -13,7 +13,7 @@ // limitations under the License. 'use strict'; - +// [START retail_search_for_products_with_query_expansion_specification] async function main() { // Imports the Google Cloud client library. const {SearchServiceClient} = require('@google-cloud/retail'); @@ -82,3 +82,4 @@ process.on('unhandledRejection', err => { }); main(); +// [END retail_search_for_products_with_query_expansion_specification] From f9f6f477f04624f67ebc978146e40746fd70c84d Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Mon, 7 Jul 2025 16:01:37 -0600 Subject: [PATCH 4/4] Update search-with-query-expansion-spec.js --- .../search/search-with-query-expansion-spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retail/interactive-tutorials/search/search-with-query-expansion-spec.js b/retail/interactive-tutorials/search/search-with-query-expansion-spec.js index 3f8d27ae15..8402dc878f 100644 --- a/retail/interactive-tutorials/search/search-with-query-expansion-spec.js +++ b/retail/interactive-tutorials/search/search-with-query-expansion-spec.js @@ -13,7 +13,9 @@ // limitations under the License. 'use strict'; + // [START retail_search_for_products_with_query_expansion_specification] + async function main() { // Imports the Google Cloud client library. const {SearchServiceClient} = require('@google-cloud/retail'); @@ -82,4 +84,5 @@ process.on('unhandledRejection', err => { }); main(); + // [END retail_search_for_products_with_query_expansion_specification]