Creating a custom project for search-related customizations
You can create and maintain a utility project under your workspace for all your search-related customizations.
Follow
these steps to add your custom code into the search EAR class path:
Important: Be aware of the following restrictions when implementing
search-related customizations on the WebSphere Commerce search server.
The search server does not have access to the following components:
- BOD-based component services or SDO objects.
- WebSphere Commerce task or controller commands.
- WebSphere Commerce EJB, data beans, or access beans.
For more information about the search server architecture, see WebSphere Commerce search interface.
For more information about the search compatibility paths when migrating from previous feature packs, see Migrating WebSphere Commerce search.
Procedure
- Create a new utility project under your workspace. For
example, SearchServerExtensionsLogic.
- Select .
- Enter a project name, such as SearchServerExtensionsLogic and select Finish.
-
Configure the class path of the new project to include the Search EAR JAR files.
- Right-click the newly created project and select .
- Select the Libraries tab.
- Click Add Library.
- Select User Library and click Next.
- Select User Libraries.
- Select New and enter a name. For example, Search. Click OK.
- Click Add External JARs and select all JAR files under the Search EAR. For example, all files under WCDE_installdir\workspace\Search.
- Click .
-
Add the SearchServerExtensionsLogic to the
Search-Rest WAR utility projects.
- Select the J2EE view, if not already selected.
- Go to the following location: .
- Right click web.xml and select .
- Select
- Click Add and select Project.
- Select the newly created project, for example, SearchServerExtensionsLogic, and click Finish.
- Click OK.
- Publish your test server and restart your search application