Skip to content

fix(retail): add region tag for Java - search product with boost spec #10121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

package search;

// [START retail_search_product_with_boost_spec]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This region tag should include a brief description of the code it surrounds. Consider renaming it to [START retail_search_product_with_boost_spec_example] to better reflect its purpose.

Suggested change
// [START retail_search_product_with_boost_spec]
// [START retail_search_product_with_boost_spec_example]


import com.google.cloud.ServiceOptions;
import com.google.cloud.retail.v2.SearchRequest;
import com.google.cloud.retail.v2.SearchRequest.BoostSpec;
Expand Down Expand Up @@ -79,3 +81,4 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
}
}
}
// [END retail_search_product_with_boost_spec]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This region tag should include a brief description of the code it surrounds. Consider renaming it to [END retail_search_product_with_boost_spec_example] to better reflect its purpose.

Suggested change
// [END retail_search_product_with_boost_spec]
// [END retail_search_product_with_boost_spec_example]