Basic Customization > User Interface Customization > Windchill Search Customization > Customizing Faceted Search > Customization for Hiding IBAs from Facets
  
Customization for Hiding IBAs from Facets
You can customize the visibility of IBAs appearing on the facet.
Implement the FacetService interface. Update the service entry with custom class in service.properties.
Element
Package
Type
Description
FacetService
Com.ptc.windchill.enterprise.search.facet
Interface
The interface controls the visibility of IBAs on the facet.
Customization Points
Update the service entry with Custom class in "service.properties" as shown in the sample code. In the example, facetCustomClass is the name of custom class.
wt.services/svc/default/com.ptc.windchill.enterprise.search.facet.FacetService/null/null/0=com.ptc.windchill.enterprise.search.facet.FacetCustomClass/duplicate 
Implement the inherited method FacetService.isAttributeVisible(AttributeTypeIdentifier). The isAttributeVisible API returns boolean value which is set to true by default. You can customize theisAttributeVisible API to return false in case the customer wants to hide any IBAs from facet.
Example:
public booleanisAttributeVisible(AttributeTypeIdentifier ibaAttribute){
if(ibaAttribute.getAttributeName().equals("name of attribute")){
return false;
}
return true;
}