From afda83b83fe6e1b53afa698e8872a7ab396c3fea Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Tue, 10 Jun 2025 19:09:52 -0500 Subject: [PATCH 1/4] 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 a4a87608cb4..48490e5fe2a 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/4] 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 63a16a9bcfb..f2031c3b680 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() From 542dfc76ef70be2e31a4df0c27f950262e52fdc7 Mon Sep 17 00:00:00 2001 From: Katie McLaughlin Date: Mon, 28 Jul 2025 08:57:50 +1000 Subject: [PATCH 3/4] lint --- .../search/search_with_query_expansion_spec.py | 1 + 1 file changed, 1 insertion(+) 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 f2031c3b680..44c98c74c4b 100644 --- a/retail/interactive-tutorials/search/search_with_query_expansion_spec.py +++ b/retail/interactive-tutorials/search/search_with_query_expansion_spec.py @@ -65,3 +65,4 @@ def search(): # [END retail_search_for_products_with_query_expansion_specification] search() + From e40d2fda36a17fa05978c7c741dbf6ee84f66214 Mon Sep 17 00:00:00 2001 From: Katie McLaughlin Date: Fri, 8 Aug 2025 12:43:14 +1000 Subject: [PATCH 4/4] lint --- .../search/search_with_query_expansion_spec.py | 1 - 1 file changed, 1 deletion(-) 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 44c98c74c4b..f2031c3b680 100644 --- a/retail/interactive-tutorials/search/search_with_query_expansion_spec.py +++ b/retail/interactive-tutorials/search/search_with_query_expansion_spec.py @@ -65,4 +65,3 @@ def search(): # [END retail_search_for_products_with_query_expansion_specification] search() -