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 208ac81e3a32c4f3448a2f62a2eec7b0160a514e Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Tue, 8 Jul 2025 16:25:34 -0600 Subject: [PATCH 3/4] Update search-with-ordering.js --- retail/interactive-tutorials/search/search-with-ordering.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retail/interactive-tutorials/search/search-with-ordering.js b/retail/interactive-tutorials/search/search-with-ordering.js index eb8964f155..093e53b175 100644 --- a/retail/interactive-tutorials/search/search-with-ordering.js +++ b/retail/interactive-tutorials/search/search-with-ordering.js @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// [START search_for_products_with_ordering] 'use strict'; @@ -81,3 +82,5 @@ process.on('unhandledRejection', err => { }); main(); + +// [END search_for_products_with_ordering] From ad807609b8acb3fdac4f4ad5c7eaeaa58a39607e Mon Sep 17 00:00:00 2001 From: Katie McLaughlin Date: Tue, 15 Jul 2025 11:25:56 +1000 Subject: [PATCH 4/4] correct region tag --- retail/interactive-tutorials/search/search-with-ordering.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/retail/interactive-tutorials/search/search-with-ordering.js b/retail/interactive-tutorials/search/search-with-ordering.js index 093e53b175..f6804ebdd6 100644 --- a/retail/interactive-tutorials/search/search-with-ordering.js +++ b/retail/interactive-tutorials/search/search-with-ordering.js @@ -11,7 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// [START search_for_products_with_ordering] +// [START retail_search_products_with_ordering] 'use strict'; @@ -82,5 +82,4 @@ process.on('unhandledRejection', err => { }); main(); - -// [END search_for_products_with_ordering] +// [END retail_search_products_with_ordering]