Click Create to complete the source creation.

Managing Oracle SES Search in WebCenter 21-59 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.6.5 Configuring Search Crawlers Using WLST

You can use WLST commands to create crawlers and to start, stop and delete crawler schedules. These commands let you crawl new data in Oracle SES or delete old crawlers if the configuration data changes. The following examples 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–13 Create a WebCenter Spaces Crawler in WLST createSpacesCrawler webcenter, webcenter_host, webcenter_port, http:ses-host:ses-portsearchapiadminAdminService, ses-admin-pw, webcenter-crawl-user, webcenter-crawl-user-pw, tmp, authentication-id-format, ACCEPT_ALL, PROCESS_ALL, MANUAL, 1, 1, MONDAY, 1, 1, 1, 1 where: ■ webcenter_host = WebCenter host name ■ webcenter_port = WebCenter port number ■ ses-host = Oracle SES host name ■ ses-port = Oracle SES port number ■ ses-admin-pw = Oracle SES admin user password ■ webcenter-crawl-user = WebCenter crawl user name ■ webcenter-crawl-user-pw = WebCenter crawl user password ■ authentication-id-format = Use nickname if the Identity Management plug-in on Oracle SES is set to Oracle Internet Directory; otherwise, use the value of the Authentication Attribute parameter on the Identity Management plug-in on Oracle SES. Note: You can set the schedule for the Oracle WebCenter Spaces Crawler with the fullCrawlIntervalInHours parameter in WLST or the Full Crawl Interval parameter in Fusion Middleware Control. 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.6.2, Setting Up Oracle Content Server for Oracle SES Search. 21-60 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter Example 21–14 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 ■ authentication-id-format = Use nickname if the Identity Management plug-in on Oracle SES is set to Oracle Internet Directory; otherwise, use the value of the Authentication Attribute parameter on the Identity Management plug-in on Oracle SES ■ Document-pipeline = Document pipeline on Oracle SES created for this WebCenter instance Example 21–15 Create a WebCenter Discussions Crawler in WLST createDiscussionsCrawler webcenter,webcenter_host,webcenter_port, http:ses-host:ses-portsearchapiadminAdminService, ses-admin-pw, jdbc:oracle:thin:database-host:database-port:database-sid, Jive-crawler-schema,Jive-crawler-schema-pw, authentication-id-format, ACCEPT_ALL, PROCESS_ALL, MANUAL, 1, 1, MONDAY, 1, 1, 1, 1 where: ■ webcenter_host = WebCenter host name ■ webcenter_port = WebCenter port number ■ ses-host = Oracle SES host name ■ ses-port = Oracle SES port number ■ ses-admin-pw = Oracle SES admin user password ■ database-host = Oracle WebCenter Discussions database host name ■ database-port = Oracle WebCenter Discussions database port number ■ database-sid = Oracle WebCenter Discussions database name or SID Managing Oracle SES Search in WebCenter 21-61 ■ Jive-crawler-schema = Oracle WebCenter Discussions crawler schema name. Determine the prefix from RCU, and use rcu-prefix_DISCUSSION_CRAWLER. ■ Jive-crawler-schema-pw = Oracle WebCenter Discussions crawler schema password ■ authentication-id-format = Use nickname if the Identity Management plug-in on Oracle SES is set to Oracle Internet Directory; otherwise, use the value of the Authentication Attribute parameter on the Identity Management plug-in on Oracle SES.

21.6.6 Configuring Oracle SES Search for Spaces Using Python Script

A sample Python script runs the steps done using WebCenter WLST commands in Section 21.6, Configuring Oracle SES to Search WebCenter Spaces Applications. The sample script performs the following tasks: ■ Create Federation Trusted Entity on Oracle SES ■ Create crawl user with crawl role in WebCenter ■ Create connection to Oracle SES in WebCenter ■ Create WebCenter crawl source in Oracle SES ■ Create Oracle Content Server source in Oracle SES ■ Create Discussions source and Announcements source in Oracle SES This sample script has the following prerequisites: ■ Section 21.6.2, Setting Up Oracle Content Server for Oracle SES Search ■ Section 21.6.3, Setting Up Oracle WebCenter Discussions for Oracle SES Search ■ Section 21.6.4, Setting Up Oracle SES to Search WebCenter except for the steps to create crawl sources The sample Python script file and its properties file are in the WC_ORACLE_HOMEwebcenterscriptsses_11.1.2 directory. Follow these stepts to use the sample Pypton script: 1. Set a environment variable to reference the directory. For example: setenv SESDIR Oracle_WC1webcenterscriptsses_11.1.2 2. Update the ConfigureSES.properties file with appropriate values. 3. Set default directory to the directory of wlst.sh script. For example: cd Oracle_WC1oracleas11gr1wccommonbin Note: To effect WLST changes, you must restart the managed server on which the WebCenter application is deployed by default, WC_Spaces. For more information, see the section Starting and Stopping WebLogic Managed Servers Using the Command Line in Oracle Fusion Middleware Administrators Guide. Note: This script is supported only on Oracle SES 11.1.2 and above. 21-62 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter 4. Run the ConfigureSES.py script with ConfigureSES.properties. For example: .wlst.sh SESDIRConfigureSES.py SESDIRConfigureSES.properties 5. Restart WebCenter after successful completion of the Python script.

21.7 Troubleshooting Issues with Oracle SES Search

This section provides troubleshooting tips on administering Oracle SES search. It includes the following subsections: ■ Section 21.7.1, No Search Results Found ■ Section 21.7.2, Search Failure Errors ■ Section 21.7.3, Cannot Grant View Permissions to WebCenter ■ Section 21.7.4, Restricting Oracle SES Results by Source Group or Source Type

21.7.1 No Search Results Found

Problem No search results are found. Solution Check the following: ■ Oracle SES Connection ■ Documents and Discussions Connections ■ WebCenter Crawl Configuration ■ Oracle SES Configuration ■ User Authentication ■ Oracle SES Crawling ■ Oracle SES Authorization

21.7.1.1 Oracle SES Connection

Confirm that you can access the Oracle SES SOAP URL and that connection properties to Oracle SES are correct. For more information, see Section 21.4.5, Testing Oracle SES Connections.

21.7.1.2 Documents and Discussions Connections

Confirm that a Documents connection and an Oracle WebCenter Discussions connection exist in Oracle WebCenter. The Oracle SES search log shows if a WebCenter service is excluded from the Oracle SES Search. Locate the search log file on the Oracle SES instance and check the log file for totalSearchTime. No service excluded that is, Oracle SES search is enabled for all WebCenter services looks similar to the following: req=Search userName=vicki totalSearchTime=1150ms userQuery=0712