To crawl a Microsoft SQL Server or IBM DB2 database, download the

Managing Oracle SES Search in WebCenter 21-31 Authorization Query : Enter the following on one line: SELECT DISTINCT forumID as WCSECATTR FROM AUTHCRAWLER_FORUM_VW WHERE username = ? UNION SELECT DISTINCT -1 as WCSECATTR FROM AUTHCRAWLER_FORUM_VW Authorization User ID Format : Authentication attribute used in the active identity plug-in. To find this value, go to the Global Settings - Identity Management Setup page in Oracle SES. Enter the value of the Authentication Attribute under the Active Plug-in for example, nickname or username or something else. If you are using the Oracle E-Business Suite R12 identity plug-in, then leave the this parameter blank.

f. Click Create to complete the source creation.

21.5.3.4 Additional Oracle SES Configuration

This section describes the required steps in the Oracle SES administration tool.

1. Create a source group that includes the names of the Oracle Content Server,

Discussions, Announcements, and WebCenter services sources you created.

a. Go to the Search - Source Groups page, and click Create.

b. Enter the same source group name entered in

Section 21.5.4, Setting Up WebCenter for Oracle SES Search.

c. From the Select Source Type dropdown list, select each source type

Database, Oracle Content Server, Oracle WebCenter, and then from the Available Sources listed for each source type, move the source you created for that source type into the Assigned Sources list.

d. Click Finish.

2. Optionally configure the security filter lifespan. This refreshes the authorization

policies for users in the system. It is best to have a short lifespan when user policies change frequently. This chapter uses Oracle Internet Directory identity plug-in as the example. For example, on the Global Settings - Query Configuration page, under Secure Search Configuration , enter 0 for Security Filter Lifespan minutes. Valid values for the security filter lifespan are between 0 minutes no cache and 526500 minutes cache for one year.

3. To index everything, you must force a full crawl for each source; that is, you must

change the existing incremental crawl schedule for each source to first process ALL documents. Note: Previous releases of Oracle Content Server used the following authorization query: SELECT forumID FROM AUTHCRAWLER_FORUM_VW WHERE username = ? or userID=-1 UNION SELECT f.forumID FROM jiveForum f, AUTHCRAWLER_CATEGORY_VW c WHERE f.categoryID = c.categoryID AND c.username = ? or userID=-1 21-32 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter This step is very important, in that searching does not work unless the content is first indexed completely. Go to the Home - Schedules page, select the source schedule, and click Edit to force a full crawl. After each source has been crawled, go back to the same page and change the crawl policy back to incremental index documents that have changed since the previous crawl. Also, in the Frequency section of the page, select a non-manual type for running incremental crawl for example, weekly or daily.

21.5.4 Setting Up WebCenter for Oracle SES Search

This section describes how to configure WebCenter to work with Oracle SES. Make sure you have created and configured the connection between WebCenter and Oracle SES, specifying the Federation Trusted Entity, and optionally specifying a source group. The Oracle SES crawlers are enabled by default in WebCenter Portal applications.

21.5.4.1 Configuring WebCenter Portal Applications After Deployment

After a WebCenter Portal application has been deployed to an Oracle WebLogic managed server, you can configure it using WLST or Fusion Middleware Control. This section contains the following subsections: ■ Section 21.5.4.1.1, Modifying Search Parameters Using WLST ■ Section 21.5.4.1.2, Configuring Search Crawlers Using WLST ■ Section 21.5.4.1.3, Configuring Search Parameters and Crawlers Using Fusion Middleware Control

21.5.4.1.1 Modifying Search Parameters Using WLST Use the WLST command

setSearchConfig to modify search parameters post deployment. Example 21–2 shows how to specify a data group also known as source group under which you search Oracle SES. Example 21–2 Set a Source Group setSearchSESConfigappName=webcenter, dataGroup=MySources where dataGroup is the source group you create in Section 21.5.3.4, Additional Oracle SES Configuration for WebCenter Portal applications or in Section 21.6.4.6, Additional Oracle SES Configuration for WebCenter Spaces applications. Note: Before the first crawl of Oracle Content Server, remember to go to the Oracle Content Server Administration page, select SES Crawler Export , and take a snapshot. For more information, see Section 21.5.1, Setting Up Oracle Content Server for Oracle SES Search. See Also: Setting Up Connectionsf or the Search Service in Oracle Fusion Middleware Developers Guide for Oracle WebCenter Managing Oracle SES Search in WebCenter 21-33 Example 21–3 shows how to increase the number of search results displayed. Five is the default setting for the number of search results displayed in Oracle SES results, but result sets generally are larger than five. Example 21–3 Increase Number of Search Results Displayed setSearchConfigappName=webcenter, numResultsMain=10 Example 21–4 shows how to configure the maximum time that a service is allowed to execute a search in ms. When a service times out largely depends on the system load. If you consistently get time out errors, adjust this parameter. Example 21–4 Configure Maximum Time WebCenter Waits for Search Results setSearchConfigappName=webcenter, executionTimeout=10000 For command syntax and examples, see the section, setSearchConfig in Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.

21.5.4.1.2 Configuring Search Crawlers Using WLST You can use WLST commands to

create crawlers and to start, stop and delete crawler schedules post deployment. These commands let you crawl new data in Oracle SES or delete old crawlers if the configuration data changes. Example 21–5 and Example 21–6 show some of these commands. For more information, see the section, Search - Oracle SES Search Crawlers in Oracle Fusion Middleware WebLogic Scripting Tool Command Reference. Example 21–5 Create a WebCenter Documents Crawler in WLST createDocumentsCrawler portal, portal_host, portal_port, http:ses-host:ses-portsearchapiadminAdminService, ses-admin-pw, http:ucm-host:ucm-portcsidcplg?IdcService= SES_CRAWLER_DOWNLOAD_CONFIGsource=default, ucm-crawl-user, ucm-crawl-user-pw, tmp, http:ucm-host:ucm-portcsidcplg, http:ucm-host:ucm-portcs, Idc Security csidcplg, authentication-id-format, Document-pipeline, ACCEPT_ALL, PROCESS_CHANGED, MANUAL, 1, 1, MONDAY, 1, 1, 1, 1 where: ■ portal = Name of the Portal application in which to perform this operation ■ portal_host = Host name of the system where the Portal application is running ■ portal_port = Port number used to access the Portal application ■ ses-host = Oracle SES host name ■ ses-port = Oracle SES port number ■ ses-admin-pw = Oracle SES admin user password ■ ucm-host = Oracle Content Server host name ■ ucm-port = Oracle Content Server port number ■ ucm-crawl-user = Oracle Content Server crawl user name ■ ucm-crawl-user-pw = Oracle Content Server crawl user password