Remove a search attribute

You may want users to exclude a search attribute when performing an advanced search. In such a scenario, you can remove the corresponding attribute from the search criteria.

About this task

To remove a search attribute:

Procedure

  1. Create a corresponding Advanced Search metadata file if it does not already exist in the <install_dir>/extensions/sbc/webpages/sbc/metadata/advancedsearch folder.
  2. Create an element, Attribute, as a child element of the Attributes root element.
  3. Set the value of the Name attribute to the name of the search attribute you want to remove.
  4. Set the value of the corresponding Action XML attribute to DELETE.

    The search attribute is removed.

    Note: Ensure that you rebuild the enterprise archive (EAR) after removing a search attribute.