Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

package search;

// [START retail_search_for_products_with_query_expansion_specification]
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For consistency with other samples in this repository (e.g., SearchSimpleQuery.java) and to improve readability, please add a blank line before and after the START region tag. This separates the package declaration, sample tag, and import statements.

The desired format is:

package search; // [START retail_search_for_products_with_query_expansion_specification] import com.google.cloud.ServiceOptions;
import com.google.cloud.ServiceOptions;
import com.google.cloud.retail.v2.SearchRequest;
import com.google.cloud.retail.v2.SearchRequest.QueryExpansionSpec;
Expand Down Expand Up @@ -76,3 +76,4 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
}
}
}
// [END retail_search_for_products_with_query_expansion_specification]
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For better readability, please add a blank line before this END region tag. This helps to visually separate the code from the sample metadata tags.

For example:

 } } // [END retail_search_for_products_with_query_expansion_specification]