Show TOC

Configuring the Search for Web PagesLocate this document in the navigation structure

Use

You create a search index so that Web pages can be found by the search function in the portal.

Prerequisites

You are assigned to the System Administrator role.

Procedure

Using Knowledge Management tools, you create a Web repository and index. In the portal administration environment, you configure the indexing service.

Configure the TREX Server Address

  1. In SAP NetWeaver Administrator, go to Start of the navigation path Configuration Next navigation step Infrastructure Next navigation step Java System Properties End of the navigation path.

  2. In the Details section, choose the Services tab.

  3. In the Services tab, select TREX Service .

  4. In the Extended Details section, select the nameserver.address property.

  5. Choose Modify.

  6. In the dialog box that opens, change the value of the property to tcpip:// <trexserverhost> : <trexport> according to the TREX server attributes.

    Note

    Make sure not to add an extra slash at the end.

  7. Choose Set and save your changes.

Create an HTTP System

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Content Management End of the navigation path.

  2. In Content Management, choose Start of the navigation path Global Services Next navigation step System Landscape Definitions Next navigation step Systems Next navigation step HTTP System End of the navigation path.

  3. Choose New and then choose Show Advanced Options .

    Set the following properties:

    Property

    Value

    System ID

    portal_indexing_system

    Password

    <administrator password>

    Confirm the password

    Server URL

    http:// <server> : <port>

    Make sure not to add an extra slash at the end.

    User

    The user ID of the administrator

    Note

    If you change the administrator password for the portal, make sure that you update the password here as well.

    If you specify a user other than the administrator user, only content inside roles assigned to that user is indexed.

Define the Portal URL for the URL Generator

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Content Management End of the navigation path.

  2. In Content Management, choose Global Services and choose Show Advanced Options .

  3. Under Topics , choose URL Generator Service .

  4. Choose Edit .

  5. In the Host property, specify the same http:// <server> : <port> value as you specified in the Server URL property in the HTTP system that you defined above.

  6. Choose OK .

Configure the Possible Hosts and the Proxy

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Content Management End of the navigation path.

  2. In Content Management, choose Start of the navigation path Global Services Next navigation step System Landscape Definitions Next navigation step Systems Next navigation step Default Proxy System End of the navigation path.

  3. Choose Edit and specify the direct hosts (for example, localhost, <server name> , <fully qualified domain name> ) and the proxy URL (for example, http://proxy:8080 ).

  4. Choose OK .

Configure the Site from which to Start Indexing

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Content Management End of the navigation path.

  2. In Content Management, choose Start of the navigation path Repository Managers Next navigation step Web Sites Next navigation step Web Site End of the navigation path.

  3. Choose Edit .

  4. Choose New and then choose Show Advanced Options .

    Set the following properties:

    Property

    Value

    Name

    portal_indexing_ws

    System ID

    portal_indexing_system

    Login Form ID

    logonForm

    Login URI

    /irj/servlet/prt/portal/prtroot/com.sap.portal.indexing.framework.LogonComponent

    Login User Agent

    TREX (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)

    Start Page

    /irj/servlet/prt/Index/prtroot/com.sap.portal.indexing.framework.EntryComponent

  5. Choose OK .

Create the Web Repository

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Content Management End of the navigation path.

  2. In Content Management, choose Start of the navigation path Repository Managers Next navigation step Web Repository End of the navigation path.

  3. Choose Edit .

  4. Choose New and set the following properties:

    Property

    Value

    Name

    portal_indexing_wr

    Prefix

    /portal_indexing_wr

    Repository Services

    properties

    Cache Timeout

    20000

    HTTP Timeout

    600000

    Web Sites

    portal_indexing_ws

    Memory Cache

    portal_indexing

  5. Choose OK .

Connect a New Filter to the Web Repository

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Content Management End of the navigation path.

  2. In Content Management, choose Start of the navigation path Repository Filters Next navigation step com.sap.nw.kmc.indexing.filter.IndexPropertiesFilter End of the navigation path.

  3. Choose Edit .

  4. Choose New and then choose Show Advanced Options .

    Set the following properties:

    Property

    Value

    Name

    PortalContentFilter

    Active

    Select the checkbox

    Repositories

    portal_indexing_wr

  5. Choose OK .

Create a New Index

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Index Administration End of the navigation path.

  2. Choose Create and set the following properties:

    Property

    Value

    ID

    portal_indexing_ <unique identifier>

    Service

    TREX Search

    Items to index

    Documents

  3. Create a custom property:

    • Name: queryExtender

    • Value: com.sap.nw.kmc.permissionsQuery.PermissionCheckQueryExtender

    Choose Add .

  4. Choose Create Index and then save the index.

  5. In the index screen that opens, choose Data Sources .

  6. Choose Add .

  7. Select portal_indexing_wr and then choose portal_indexing_ws and choose OK .

  8. Save your changes.

Configure the Service Profile of the Indexing Framework

  1. In SAP NetWeaver Administrator, go to Start of the navigation path Configuration Management Next navigation step Infrastructure Next navigation step Application Modules End of the navigation path.

  2. In the module list, select com.sap.portal.indexing.framework .

  3. In the Web Module Details section, choose IndexingConfigurationService .

  4. In the Full Details section, choose indexID and set the value to the index ID that you created in the Create a New Index step above.

  5. Save and restart the service.

Configure Delta Indexing

  1. In SAP NetWeaver Administrator, go to Start of the navigation path Configuration Management Next navigation step Infrastructure Next navigation step Application Modules End of the navigation path.

  2. In the module list, select com.sap.km.appl.portal.index.provider .

  3. In the Web Module Details section, select SpiderIndexingService .

  4. In the Full Details section, select the UpdateInterval(minutes) property and set its value to the requested interval.

  5. Save and restart the service.

Configure the Search UI

  1. In SAP NetWeaver Administrator, go to Start of the navigation path Configuration Management Next navigation step Infrastructure Next navigation step Application Modules End of the navigation path.

  2. In the module list, select km.appl.portal.indexing.framework .

  3. In the Web Module Details section, select IndexPropertiesServiceWrapper .

  4. In the Full Details section, select ActivatePortalSearch and set it to true .

  5. Save and restart the service.

Reindex the Portal

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Index Administration End of the navigation path.

  2. Select the index that you created, and choose Reindex .

Running the Index in a Cluster Environment

If you run the portal in a cluster and try to run indexing, the process might get stuck in pending status indefinitely. To solve this, do the following:

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Content Management End of the navigation path.

  2. In Content Management, choose Start of the navigation path Global Services Next navigation step Scheduler Tasks Next navigation step Index Management Task Queue Reader  End of the navigation path.

  3. Assign one of the CM systems from the cluster.

  4. Optional: Edit the task and add intervals to the Time Table .

To view the indexing status, open the Indexing Monitor:

  • In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Index Administration End of the navigation path and in Related Links in Detailed Navigation, choose Indexing Monitor .

Web Page Composer sends an event whenever a new page is published. To see the changes at runtime, you need to flush the queue. By default this happens every 30 minutes. To change this interval, open the TREX Monitor:

  1. In the portal, go to Start of the navigation path System Administration Next navigation step System Configuration Next navigation step Knowledge Management Next navigation step Index Administration End of the navigation path.

  2. In Related Links in Detailed Navigation, choose TREX Monitor .

  3. In the TREX Monitor that opens, choose Edit Queue Parameters and in the Schedule Time property enter a value.

You can also flush the queue manually after every change.