Searching
WCM Anonymously through WebSphere Portal Search
Create new library
named AnonLib. Grant User role to all portal users and anonymous
user.
Create a new
WebSphere Portal Search Collection. Login as the WP admin.
Navigate to Administration, Search Administration, Manage Search,
Search Collections. Click the New Collection button, enter
“AnonCollection” for location, name, and description. Leave the
rest blank. Hit OK.
Now,
have to allow anonymous users to access the portal search
collections. This is done through the WebSphere Portal
Administration page. Login as the WP admin. Navigate to
Administration, Access, Resource Permissions, PSE Sources. Click on
the Key button next to your AnonCollection collection.
Add
Anonymous user to the User role associated with the AnonCollection:

Now, have to set
up the WCM Content for searching. Navigate to the WCM Authoring
portlet. Edit the shared settings to add the AnonLib to the Library
Selection.
Create the
following items, allowing [all users] read access to every item:
Publish workflow
action named “WFA test publish action”
Workflow Stage
named “WFStage test published stage”. Select the WFA test
publish action in the execute upon entering. In the workflow
security section, add [all users] to the Read section, this will
automatically grant read access to users when content using the
workflow is published
Workflow named
“WF 1 Stage Workflow”. Select the WFStage test published stage
as the workflow stage in the workflow.
Authoring
Template named “AT TestAT”. Add Text component named
“TextCmpnt”.
Presentation
template named “PT TestPT”. Add the following tag: <Element
context=”current” type=”content” key=”TextCmpnt”/><br>
Site named
“AnonSite”. Map the AT TestAT to the PT TestPT. Mark the site
as searchable, select the AnonCollection. Add admin
username/password to the form.
Site Area named
AnonSiteArea, saved under AnonSite
Content
named “AnonContent”. Select the AT TestAT for the authoring
template, WF 1 Stage Workflow as the workflow, and AnonSiteArea as
its site area. In the TextCmpnt, enter “Search test”.
Now, you have all
anonymous WCM objects within the AnonLib library. You have a piece
of content with a search term. Next, we have to grant anonymous
access to the Portal Search Center portlet to allow anonymous
searching.
Navigate to Portal
Administration, navigate to Portlet Management → Portlets. Search
for “Search” in title starts with. Click on the Key icon to add
roles to the Search Center portlet. Grant Anonyous Portal User
privileged user role.
If you're using
the embedded search center portlet within the theme, follow these
instructions: http://www-01.ibm.com/support/docview.wss?rs=688&ca=portall2&
;uid=swg21265193
Otherwise,
deploy the Search Center portlet to an anonymous accessible page.
L ogout
of WebSphere portal, and search for “Search” within the search
center. The content you created should appear. (If it does not,
login and force a crawl on the AnonCollection to ensure the
collection contains the WCM content
object.
*NOTE
since we are anonymous, the link to the WCM content returns with the
/connect:
http://host:port/wps/wcm/connect/anonlibrary/AnonSite/AnonSiteA
rea/AnonContent
|