From afda83b83fe6e1b53afa698e8872a7ab396c3fea Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Tue, 10 Jun 2025 19:09:52 -0500 Subject: [PATCH 1/2] Update search_with_pagination.py --- retail/interactive-tutorials/search/search_with_pagination.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retail/interactive-tutorials/search/search_with_pagination.py b/retail/interactive-tutorials/search/search_with_pagination.py index a4a87608cb..48490e5fe2 100644 --- a/retail/interactive-tutorials/search/search_with_pagination.py +++ b/retail/interactive-tutorials/search/search_with_pagination.py @@ -17,6 +17,8 @@ # or jump to chosen page using "offset". # +# [START retail_search_for_products_with_pagination] + import google.auth from google.cloud.retail import SearchRequest, SearchServiceClient @@ -71,3 +73,5 @@ def search(): search() + +# [END retail_search_for_products_with_pagination] From 18d3c6e68d321e30030bb19fe1b95e0eab7111d2 Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Fri, 27 Jun 2025 18:01:22 -0600 Subject: [PATCH 2/2] Update search_with_query_expansion_spec.py --- .../search/search_with_query_expansion_spec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retail/interactive-tutorials/search/search_with_query_expansion_spec.py b/retail/interactive-tutorials/search/search_with_query_expansion_spec.py index 63a16a9bcf..f2031c3b68 100644 --- a/retail/interactive-tutorials/search/search_with_query_expansion_spec.py +++ b/retail/interactive-tutorials/search/search_with_query_expansion_spec.py @@ -15,7 +15,7 @@ # Call Retail API to search for a products in a catalog, # enabling the query expansion feature to let the Google Retail Search build an automatic query expansion. # - +# [START retail_search_for_products_with_query_expansion_specification] import google.auth from google.cloud.retail import SearchRequest, SearchServiceClient @@ -62,6 +62,6 @@ def search(): else: print(search_response) return search_response - +# [END retail_search_for_products_with_query_expansion_specification] search()