Configure JCR search in a portal farm

To enable search in a portal farm for content stored in the JCR database, configure each instance in the farm to access a shared directory. JCR-based content includes content created with Web Content Manager or Personalization.

Create a shared directory called jcr/search on a server in the farm and ensure that each instance in the farm has network access to the directory.

Set up the remote search service on the primary instance of the farm; refer to Configuring a remote search service for information.


Prerequisites


Configure a remote search service If you are creating content in a portal farm using the authoring portlet provided with Web Content Manager, additional configuration steps are required to enable content created by these content features to be searchable in a farm.

Perform the following steps on each instance in the farm to configure the JCR search:

  1. Edit the icm.properties file, located in the WP_PROFILE/PortalServer/jcr/lib/com/ibm/icm directory.

  2. Change the value of the jcr.textsearch.indexdirectory property to the shared directory; for example, jcr.textsearch.indexdirectory=////your_server//your_share//jcr//search. You can specify the shared directory value in one of the following formats:

    The format for the shared directory.

    Format Shared directory
    Universal Naming Convention (UNC) format ////your_server//your_share//jcr//search

    Example: ////hostname.example.com//share//jcr//search

    Mounted resource format (with forward slashes) /your_share/jcr/search

    For example: /mnt/jcr/search

    This format requires that you mount the shared directory to the local server (for example, through a mapped network drive or a mounted directory). When using the mounted resource format, always use forward slashes instead of back slashes, regardless of the native OS path format.

  3. Based on the configuration of remote search service, change the jcr.textsearch.PSE.type property to either EJB or SOAP; then choose the appropriate additional steps:

    The steps depending on the value for the jcr.textsearch.PSE.type property.

    Value Additional steps
    EJB If you have an EJB service:

    1. Change the jcr.textsearch.EJB.IIOP.URL property to the URL of the naming service used to access the WebScanner EJB; for example iiop://localhost:2811.

    2. change the jcr.textsearch.EJB.EJBName property to the name of the WebScanner EJB; for example ejb/com/ibm/hrl/portlets/WsPse/WebScannerLiteEJBHome.

    SOAP If you have a SOAP service, change the jcr.textsearch.SOAP.url property to the SOAP URL of the WebScanner for the search service.

  4. Required: To delete the default search collections from the Manage Search portlet:

    1. Log on to WebSphere Portal as an administrator.

    2. Click Administration -> Search Administration -> Manage Search.

    3. Click Search Collections.

    4. Click the Delete Collection icon for the Portal Content search collection.

    5. Click OK.

    6. Restart the WebSphere_Portal server.

    7. Go to the Manage Search portlet and confirm that the Portal Content search collection was deleted.

    8. Manually create a JCR Collection called JCRCollection1; refer to Setting up JCR Search Collection for information.


Parent

Configure search in a portal farm


Set up JCR search collections

 


+

Search Tips   |   Advanced Search