Skip Headers
Oracle® Ultra Search Administrator's Guide
10g Release 2 (10.2)

Part Number B14222-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

2 Getting Started with Oracle Ultra Search

This chapter contains the following topics:

Overview

This chapter provides information about getting started with Oracle Ultra Search. A case study is featured 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 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, as the 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:

For this example, the Ultra Appliance call center agents search the company intranet and the problem database for information and any issues associated with, the Springmaster 2000 refrigerator.

Installation

This section gives a vrief overview of installation of of Oracle Ultra Seacrh. The instructions in this section are meant to briefly cover installation. For further installation information, refer to Chapter 4, "Installing Oracle Ultra Search" in this book. For more information refer to 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.

Using the Oracle Universal Installer

Insert the Oracle Installation Media and start the Oracle Universal Installer. Follow the instructions in the installation wizard to perform an Oracle Database Server installation. For more information, refer to Chapter 4, "Installing Oracle Ultra Search".

Along with the Oracle Database Server, the Oracle Universal Installer also installs the Oracle Ultra Search back end and the Oracle Ultra Search middle tier.

If you have not done this, unlock the Oracle Ultra Search schema and user:

  1. Log in to the database as a DBA user (for example, as SYS).

  2. Unlock the Oracle Ultra Search schema, WKSYS, and set its password:

    ALTER USER wksys account unlock identified by password
    
    
  3. Unlock the Oracle Ultra Search WK_TEST schema. Its password is wk_test.

    ALTER USER wk_test account unlock identified by wk_test
    

Accessing the Oracle Ultra Search Administration Application

You must have an Oracle Ultra Search instance. During installation, an instance is created and you need to 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

Setting up the Query Application

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 set of values for the host name, the port, and the SID:

  1. 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"
    />
    
    
  2. If you have started the Oracle Ultra Search middle tier to access the Oracle Ultra Search administration application, then you must 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

Setting up the Ultra Appliance Demo

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:

  1. 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

  2. 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');
    

Crawl and Index Ultra Appliance's Intranet Documents

This section describes the steps taken by 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:

  1. 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
    
    
  2. Enter your 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.

    Figure 2-1 Oracle Ultra Search Login Screen

    Description of loginscreen.gif follows
    Description of the illustration loginscreen.gif

  3. Select an Oracle Ultra Search Instance screen.

    Select the Instances tab on the browser view.

    Select the WK_INST instance from the menu and click Apply.

  4. 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.

  5. Create a Web data source.

    Select the Sources tab on the browser view.

    Under Web Sources, click Create Web Source.

    1. 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.

    2. Create Web Source: Step 2 (URL Boundary Rules)

      Accept the default values and click Next.

    3. 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.

    4. 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.

  6. 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 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.

  7. Start crawling and indexing the documents.

    On the Synchronization Schedules page, locate Ultra Appliance in the Schedules column.

    1. In the Status column for the Ultra Appliance row, verify that the status is in the Scheduled condition.

    2. Click Scheduled. The Synchronization Schedule Status page is displayed.

    3. Click Execute Immediately so that Oracle Ultra Search can crawl and index the Ultra Appliance intranet site.

    4. Click Refresh status to see schedule status changes. When the schedule status displays Scheduled, the crawling is complete.

Crawl and Index Ultra Appliance's Database Documents

This section describes how you as the Ultra Appliance search administrator sets 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:

  1. Follow steps 1 through 4 in "Crawl and Index Ultra Appliance's Intranet Documents".

  2. 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.

    1. 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 which you entered 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.

    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.

    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.

    4. Table Source Logging

      Select Disable logging mechanism and click Apply.

    5. 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 the selection, click Map to add the document types to the list of document types for crawling.

      Click Proceed to step 5.

    6. Create Table Source: Step 5

      Select No display URL and click Finish.

  3. Schedule the Oracle Ultra Search Crawler.

    Refer to 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 list seen on the Create Schedule: Step 3 of 3 screen.

  4. Start crawling and indexing, as shown in Step 7 in "Crawl and Index Ultra Appliance's Intranet Documents".

Issuing a Query

This section describes the steps taken by you 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 permitted Oracle Ultra Search to crawl and index the Ultra Appliance intranet and database.

To query the Ultra Appliance intranet:

  1. Enter the URL for the Oracle Ultra Search location. For example:

    http://your_computer.com:http_port/ultrasearch/query/search.jsp
    
    
  2. Enter Springmaster 2000 in the Search For field.

    You should refer to the output displayed in Figure 2-2.

    Figure 2-2 Oracle Ultra Search Search Output

    Description of intraquery.gif follows
    Description of the illustration intraquery.gif

To query the Ultra Appliance database: