Indexing web content | HCL Digital Experience
To search for web content, your content must first be indexed by the HCL Portal search engine. When the content is indexed, you can run searches by using the search center or by using a search component. If you search for documents in the HCL Portal search center, be aware that you see search results for published documents only. Unpublished pending changes in a project are not included in the results.
Creating a content source for a site area
- To open the Manage Search portlet, click the Administration menu icon. Then, click .
- Select or create a new collection. The default search collection that is named WebContentCollection is provided by default.
- Click New Content Source.
- Select WCM site as the content source type.
- Enter a name in the Content Source Name field.
- Enter the following URL in the Collect documents linked
from this URL field:
- For a stand-alone server:
You need to replace hostname, port_number, library, and site area with values appropriate for your site. If your library name or site area names contain spaces, you need to replace the spaces with a "+" symbol. For example, the pathhttp://hostname:port_number/wps/seedlist/myserver?SeedlistId=library/sitearea1/childsitearea2 &Source=com.ibm.workplace.wcm.plugins.seedlist.retriever.WCMRetrieverFactory&Action=GetDocuments
library one/site area one
would instead be defined aslibrary+one/site+area+one
- For a cluster:
- In this case you to use the host and port of the HTTP server:
You need to replace httpserver, port_number, library, and site area with values appropriate for your site. If your library name or site area names contain spaces, you need to replace the spaces with a "+" symbol. For example, the pathhttp://httpserver:port_number/wps/seedlist/myserver?SeedlistId=library/sitearea1/childsitearea2 &Source=com.ibm.workplace.wcm.plugins.seedlist.retriever.WCMRetrieverFactory&Action=GetDocuments
library one/site area one
would instead be defined aslibrary+one/site+area+one
- For a virtual portal configured to use the URL Context as its access point:
You need to replace httpserver, port_number, virtualPortalContext, library, and site area with values appropriate for your site. If your library name or site area names contain spaces, you need to replace the spaces with a "+" symbol. For example, the pathhttp://httpserver:port_number/wps/seedlist/myserver/virtualPortalContext?SeedlistId=library/sitearea1/childsitearea2 &Source=com.ibm.workplace.wcm.plugins.seedlist.retriever.WCMRetrieverFactory&Action=GetDocuments
library one/site area one
would instead be defined aslibrary+one/site+area+one
- For a virtual portal configured to use a different host name as its access point:
You need to replace vphostname, port_number, library, and site area with values appropriate for your site. If your library name or site area names contain spaces, you need to replace the spaces with a "+" symbol. For example, the pathhttp://vphostname:port_number/wps/seedlist/myserver/?SeedlistId=library/sitearea1/childsitearea2 &Source=com.ibm.workplace.wcm.plugins.seedlist.retriever.WCMRetrieverFactory&Action=GetDocuments
library one/site area one
would instead be defined aslibrary+one/site+area+one
Note: The seedlist ID can be any of the following:- library
- library/site area
- library/site area/sub-site area/...
- the JCRID of a site area
- If the content to be indexed is secured, go to the Security tab. Then, enter the user name and password of the user that is used to access the secured site. You must then click Create on the search tab itself.
- Click Create.
Searching web content in a virtual portal
Search services and search collections are separate for individual virtual portals and are not shared between individual virtual portals. You set up an individual search service and separate search collections for each virtual portal. These collections can be used to crawl and search the same set of documents.
- Create new search collection for the virtual portal. You can create a new content source by copying the URL from your original search collection.
- Create new search component, or copy an existing search component, and configure it to use the new virtual portal search collection that is created in step 1.
- Create new search form, by using an HTML component, which is configured to use the search component that is created in step 2.
- Create new content item to display the HTML component that you created in the previous step.
You must do these steps for each virtual portal in your system.