Friday 8 November 2013

How to create a serach collection for WCM Library search

In our project we had a requirement  where customer wants to show FAQ's related to their business.

Challenge with this requirement was that they wanted a search application which can show FAQ's based on the relevance of user input's. (Somewhat like google).

Second challenge was they want to maintain this FAQ's in WCM and want them to be properly organized so that even a non technical business user should be able to update it any time.

Third challenge they didn't had any external search engine which can cater to their requirement so all of it needs to be done in using IBM WebSphere Portal and IBM Web Content Management.

To fulfill this here are the steps:

1. Environment configuration : WAS v 7.0.0.23, WebSphere Portal v 7.0.0.2 WCM v 7.0.0.2
2. Click on Manage Search



3. Click on Default Portal Search Service and click on New Collection



4. Enter the following details :

Content Source name: Eg. FAQ
Collects document linked from this URL: eg: https://hostname:port/seedlist/myserver?SeedlistId=LibraryName/Sitearea&Source=com.ibm.workplace.wcm.plugins.seedlist.retriever.WCMRetrieverFactory&Action=GetDocuments
Rest of the details can be kept based on user preference.


5. Click on security tab and enter user name and password which has access to search each and every content.
6. Click Ok and start the search engine.
7. Now you can either user search and browser and configure it to show search results based on this collection only.

8. How to build custom portlet to utilize this collection for displaying customized serach results is in my second posts.