Oracle® Ultra Search Administrator's Guide
10g Release 2 (10.1.2) Part No. B14041-01 |
|
Previous |
Next |
This chapter contains the following topics:
This chapter provides information about getting started with Oracle Ultra Search. It features a case study that describes installation and use of Oracle Ultra Search. It enables you to create a browser-based search application to query data sources.
The example uses a fictional customer service call center named Ultra Appliance, Inc. Ultra Appliance is a retail company that sells and supports hundreds of different appliances from dozens of manufacturers nationwide. Customers contact the customer service call center every day to receive technical help for, and assistance with, an appliance.
This chapter describes how you, acting as the Ultra Appliance search administrator, can set up a browser-based search application that enables call center agents to find information for appliances that they support. It also describes how you, acting as an Ultra Appliance call center agent, can use Oracle Ultra Search to query the company intranet and database.
Ultra Appliance call center agents must access a variety of online resources to provide the information needed by the customer. In this example, the Ultra Appliance call center agents have access to two types of information:
An intranet that contains documents on Web pages with detailed information about appliances sold and serviced by Ultra Appliance.
A database that contains information about previous maintenance issues and solutions for appliances sold and serviced by Ultra Appliance.
For this example, the Ultra Appliance call center agents search the company intranet and the problem database for information on, and any issues associated with, the Springmaster 2000 refrigerator.
The instructions in this section are meant to briefly cover installation. For further installation information, see Chapter 3, "Installing Oracle Ultra Search" in this book. You may also want to see the Oracle Universal Installer Concepts Guide for detailed installation instructions. Oracle Ultra Search is installed as part of the Oracle Database Server installation, which uses Oracle Universal Installer.
Insert the Oracle Installation CD and start the Oracle Universal Installer. Follow the installation wizard instructions to perform an Oracle Database Server install. For more information, see Chapter 3, "Installing Oracle Ultra Search".
Along with the Oracle Database Server, the Oracle Universal Installer also installs the Oracle Ultra Search backend and the Oracle Ultra Search middle tier.
If you have not already done so, unlock the Oracle Ultra Search schema and user:
Log in to the database as a DBA user (for example, as SYS
).
Unlock the Oracle Ultra Search schema, WKSYS
, and set its password:
ALTER USER wksys account unlock identified by password
Unlock the Oracle Ultra Search WK_TEST
schema. Its password is wk_test
.
ALTER USER wk_test account unlock identified by wk_test
You must have an Oracle Ultra Search instance. During installation, an instance was created for you, so you need only configure it by following the directions in "Unlock WK_TEST".
Upon installation, the default Oracle Ultra Search instance, WK_INST
, is available; it is built on the default WK_TEST
schema.
To access the administration application, start up the Oracle Ultra Search middle tier:
$ORACLE_HOME/bin/searchctl start
After the middle tier has been started, you can access the administration interface with an HTML browser pointed to:
http://your_computer.com:http_port/ultrasearch/admin/index.jsp
At the end of the installation, find http_port on the Oracle Universal Installer screen. You can find out the value of http_port by looking at:
$ORACLE_HOME/oc4j/j2ee/OC4J_SEARCH/config/http-web-site.xml
Oracle Ultra Search provides APIs with which you can build customized, J2EE query applications. Oracle Ultra Search also includes an application of this sort.
To set up the query application, do the following steps, using your own values for the host name, the port, and the SID:
Add the following entry to the ORACLE_HOME/oc4j/j2ee/OC4J_SEARCH/config/data-sources.xml
file:
<data-source class="oracle.jdbc.pool.OracleConnectionCacheImpl" name="UltraSearchDS" location="jdbc/UltraSearchPooledDS" username="wk_test" password="wk_test" url="jdbc:oracle:thin:@database_host:oracle_port:oracle_sid" />
If you started the Oracle Ultra Search middle tier to access the Oracle Ultra Search administration application, then you must stop and restart it, with the query application now configured to use the query application:
$ORACLE_HOME/bin/searchctl stop $ORACLE_HOME/bin/searchctl start
After the middle tier has been started, you can access the query application with an HTML browser pointed to:
http://your_computer.com:http_port/ultrasearch/query/search.jsp.
At the end of the installation, find http_port on the Oracle Universal Installer screen. You can find out the value of http_port by looking at:
$ORACLE_HOME/oc4j/j2ee/OC4J_SEARCH/config/http-web-site.xml
To access the Ultra Appliance intranet site, go to:
http://www.oracle.com/technology/products/ultrasearch/gettingstarted/
To set up the Ultra Appliance company database, perform the following steps:
Copy the appliances.sql
script shown in Example 2-1 into a text editor. Save this file as appliances.sql
to your database server computer
Upload appliance.sql
to your database schema WK_TEST
with the following statements:
prompt > sqlpls WK_TEST/WK_TEST SQLPLUS > @appliance.sql; SQLPLUS > commit; SQLPLUS > exit
Example 2-1 appliances.sql script
DROP TABLE product; CREATE TABLE product (id NUMBER PRIMARY KEY, Description VARCHAR2(200), Parts VARCHAR2(80)); INSERT INTO product VALUES(1, 'Springmaster 2000', 'Cantaloupe Tray'); INSERT INTO product VALUES(2, 'TipNClear 2000', 'TipNVac Tray'); INSERT INTO product VALUES(3, 'Spew 2000', 'Extra Dirt' ); INSERT INTO product VALUES(4, 'Hold Em 2000', 'Spare Magnets'); INSERT INTO product VALUES(5, 'Pizza Legend 2000', 'No. 7 Pizza Tube'); INSERT INTO product VALUES(6, 'SnoozePower 2000', 'Lint Screen'); DROP TABLE problems; CREATE TABLE problems (Problem_ID NUMBER PRIMARY KEY, Customer_Name VARCHAR2(40), Product_ID NUMBER, Date_ID DATE, Problem_Description VARCHAR2(200), Resolution_Text VARCHAR2(200)); INSERT INTO problems VALUES(1, 'Jones', 4, '10-Aug-03', 'Magnets pointed wrong way', 'Solved by reversing pet'); INSERT INTO problems VALUES(2, 'Smith', 1, '01-Oct-02', 'Cantaloupe wrong color', 'Solved by icing down melons'); INSERT INTO problems VALUES(3, 'Chan', 3, '10-Apr-03', 'Clogged by cat hair', 'Solved by getting new cat'); INSERT INTO problems VALUES(4, 'Ali', 5, '29-May-03', 'Will not work with anchovies', 'Cannot solve'); INSERT INTO problems VALUES(5, 'Johnson', 2, '28-Feb-03', 'Husband on couch', 'Solved by removing husband'); INSERT INTO problems VALUES(6, 'Kawamoto', 6, '11-Nov-02', 'Pillow too loud', 'Solved by turning pillow over'); INSERT INTO problems VALUES(7, 'Weiss', 3, '15-May-03', 'Dirt coming out wrong color', 'Solved by bleaching dirt'); INSERT INTO problems VALUES(8, 'Claire', 5, '20-Jun-03', 'Overheats cheese', 'Solved by using better-quality cheese'); INSERT INTO problems VALUES(9, 'Dontenmann', 2, '08-Jan-03', 'Gum stuck, will not shake out', 'Solved by increasing power'); INSERT INTO problems VALUES(10, 'Glass', 4, '22-Aug-03', 'Ferret allergic to magnets', 'Solved by washing magnets'); INSERT INTO problems VALUES(11, 'Heyboll', 1, '03-Sep-02', 'Flying cantaloupes injuring family', 'Solved by ducking');
This section describes the steps you take as the Ultra Appliance search administrator to set up Oracle Ultra Search to crawl and index the company intranet. After you perform this setup, the call center agents can use Oracle Ultra Search to obtain information about the Springmaster 2000 refrigerator.
To crawl and index the Ultra Appliance intranet:
Log on to Oracle Ultra Search using the Oracle Ultra Search Administration Tool screen.
In your Web browser, enter the domain and port of the computer where you have Oracle Ultra Search installed, followed by /ultrasearch/admin/index.jsp
:
http://your_computer.domain:http_port/ultrasearch/admin/index.jsp
For example:
http://comp1.ultrasupply.com:7778/ultrasearch/admin/index.jsp
Enter the user name and password to log in to Oracle Ultra Search. For example:
Login: WK_TEST
Password: WK_TEST
The login screen is displayed in Figure 2-1.
Select an Oracle Ultra Search Instance screen.
Select the Instances tab on the browser view.
Select the WK_INST
instance from the pull down menu and click Apply.
Configure the Oracle Ultra Search crawler settings.
Select the Crawler tab on the browser view.
Use the following values for crawler settings:
Crawler Threads: 20
Number of Processors: 1
Automatic Language Detection: No
Default Language: English
Crawling Depth: No Limit
Crawler Timeout Threshold: 30
Default Character Set: ISO Latin-1
Cache Directory Location and Size: /tmp, 5
Crawler Logging: /tmp/, English
Database Connect String: Leave this field unchanged.
Create a Web data source.
Select the Sources tab on the browser view.
Under Web Sources, click Create Web Source.
Create Web Source: Step 1
Enter Ultra Appliance as the Source name.
Under the Starting Addresses heading, enter the complete URL of the location of the Ultra Appliance intranet Web site demo:
http://www.oracle.com/technology/products/ultrasearch/gettingstarted/
Click Add to add the Ultra Appliance data source to the list of Web addresses.
Click Next.
Create Web Source: Step 2 (URL Boundary Rules)
Accept the default values and click Next.
Create Web Source: Step 3 (Document Types)
Specify the types of document you would like Oracle Ultra Search crawler to crawl.
Under the Document Types header, select HTML, Microsoft Word document, and PDF document. After you make each selection, click >> to add the document types to the list of document types for crawling.
Click Next.
Create Web Source: Step 4
Accept the default values and click Finish.
The Ultra Appliance Web site demo is added to the Web source list.
Schedule the Oracle Ultra Search crawler.
Select the Schedule tab and click Create New Schedule.
In the Name field, enter Ultra Appliance. Click the Proceed to Step 2.
Select "Every 1 week(s) on Monday starting at 0100 hours." Under the Indexing option heading, select "Automatically accept all URLS for indexing." Under the Remote Crawler Profiles, select database host from the drop down list. Click Proceed to step 3.
Select Web from the drop down menu. Select Ultra Appliance from the Available Sources menu and transfer it to the Assigned Sources menu by clicking >>. Click Finish.
Start crawling and indexing the documents.
On the Synchronization Schedules page, locate Ultra Appliance in the Schedules column.
In the Status column for the Ultra Appliance row, verify that the status is in the Scheduled condition.
Click Scheduled. The Synchronization Schedule Status page is displayed.
Click Execute Immediately so that Oracle Ultra Search can crawl and index the Ultra Appliance intranet site.
Click Refresh status to see schedule status changes. When the schedule status displays Scheduled, the crawling is complete.
This section describes how, acting as the Ultra Appliance search administrator, you set up Oracle Ultra Search to search for the Ultra Appliance company database.
You can configure the Oracle Ultra Search crawler to crawl the database you set up in "Setting up the Ultra Appliance Demo".
To crawl and index the Ultra Appliance database:
Follow steps 1 through 4 in "Crawl and Index Ultra Appliance's Intranet Documents".
Create a table data source.
Select the Sources tab and then the Table subtab on the browser view.
Under the Table Sources header, click Create New Table Source.
Create Table Source: Step 1
Enter a name, such as Ultra Appliance DB, in the Name field for the table source name. The name should not be the same as the one you entered when you crawled and indexed Intranet documents.
Under the Database Table heading do not use a database link.
Enter the schema name of WK_TEST
in the Schema field.
Enter the name of Problems in the Table name field.
Click Locate Table.
The following note is displayed if a table is present in your database:
Note: Successfully located table problems.
Click Proceed to Step 2.
Create Table Source: Step 2
Accept the default values for Language.
Under the Complex Primary Key heading, add the PROBLEM_ID
table column by clicking Add column.
Under the Content Column and Type heading, select PROBLEM_DESCRIPTION
for Column and Plaintext
for the Type.
Click Proceed to Step 3.
Create Table Source: Step 3
Under the Verify Table Source Details heading, confirm the settings and values that will be displayed in the Oracle Ultra Search output.
Click Create Table Source.
Table Source Logging
Select Disable logging mechanism and click Apply.
Create Table Source: Step 4
Specify the table columns and search attribute mappings you want Oracle Ultra Search crawler to crawl on the database.
For this example, select:
RESOLUTION_TEXT
for table column with search attribute of Description [String]
CUSTOMER_NAME
for table column with search attribute of Author [String]
After you make each selection, click Map to add the document types to the list of document types for crawling.
Click Proceed to step 5.
Create Table Source: Step 5
Select No display URL and click Finish.
Schedule the Oracle Ultra Search Crawler.
See Step 6 in "Crawl and Index Ultra Appliance's Intranet Documents" for procedures on how to set up a crawler schedule.
Select Table from the drop-down list seen on the Create Schedule: Step 3 of 3 screen.
Start crawling and indexing, as shown in Step 7 in "Crawl and Index Ultra Appliance's Intranet Documents".
This section describes the steps you take, acting as the Ultra Appliance call center agent, using Oracle Ultra Search to query the company intranet and database. You can query the Ultra Appliance information sources after you have allowed Oracle Ultra Search to crawl and index the Ultra Appliance intranet and database.
To query the Ultra Appliance intranet:
Enter the URL for the Oracle Ultra Search location. For example:
http://your_computer.com:http_port/ultrasearch/query/search.jsp
Enter Springmaster 2000 in the Search For field.
You should see the output displayed in Figure 2-2.
To query the Ultra Appliance database:
Enter Cantaloupe Wrong Color in the Search For field.
You should output similar to the display in Figure 2-2 with links to the Springmaster 2000 Cantaloupe Tray Problem table.