Due to varying site requirements, you will probably find it necessary to customize the catalog search function. The catalog search databean is a class. To customize it, do the following:
- Create a subclass of the CatEntrrySearchListDataBean class.
- Specify the new searchable attributes that you want to add. Note that these attributes must be previously defined in the Search Interface RuleQuery class before they will be available as constraints in a generated query.
- Create a populate() method which does the following:
- Instantiate either RuleQuery or a subclass of RuleQuery.
- Reference this instance of RuleQuery to the instance in the parent bean class using the setRuleQuery(ruleQueryInstance)method.
- Call the super.setPredefinedAttributes() method.
- Formulate the search logic for the new searchable constraints which will use the search interface.
- Call the super.execute() method.