Enabling or Disabling Search Restrictions
Enabling or Disabling Search Restrictions
Find below an example of how to enable and disable a search restriction:
import de.hybris.platform.search.restriction.SearchRestrictionService;
// Disable search restrictions
searchRestrictionService.disableSearchRestrictions();
// some query goes here
// Enable search restrictions
searchRestrictionService.enableSearchRestrictions();
// some query goes here
Comments
Post a Comment