Skip Headers
Oracle® Secure Enterprise Search Administrator's Guide
11g Release 1 (11.1.2.0.0)

Part Number E14130-04
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

3 Understanding the Oracle SES Search User Interface

This chapter describes the syntax that both you and your user community use to search for documents using Oracle SES. It introduces the search interface and explains how you can alter the search results.

This chapter also describes the tasks to add an Oracle SES secure portlet to an OracleAS Portal page. A secure portlet requires Oracle Application Server Portal 10.1.4 or higher.

This chapter contains the following topics:

See Also:

"Tuning Search Performance"

Overview of Searching in Oracle Secure Enterprise Search

You can submit a search to Oracle SES in the following places:

See Also:

Oracle SES Search Application Help

Basic Search

Figure 3-1 shows the default Oracle SES Search Application. You enter your search string and click the Search button, the same as for any other search engine.

Figure 3-1 Oracle SES Search Application

Simple search page
Description of "Figure 3-1 Oracle SES Search Application "

A search string can consist of one or more words. It is case-insensitive. Clicking the Search button returns all matches for that search string.

Figure 3-2 shows sample results for the search string Secure Enterprise Search. You can reorder the way results are presented using the Group by and Sort by lists.

Figure 3-2 Sample Search Results

Search Results
Description of "Figure 3-2 Sample Search Results"

Keywords in Context

Oracle incorporates KWIC (keyword in context) as part of the search result. This has a size restriction of 4K. That is, if the searched keyword appears in the first 4K of a document, then the KWIC is shown for the search result. If the keyword appears after the first 4k, then no KWIC is shown.

Stemming Expansion

Oracle SES applies stemming to the query term. Stemming expands the term to other terms that share the same root. For example, [banks] returns documents containing the word banks, banking, or bank. Oracle SES uses stemming based on the language of query, which is determined by the language of browser in the default query application, or it is input by the caller in the query API. Implicit stemming expansion applies on individual terms in term search, in proximity search, and in attribute shortcut search for STRING attributes. Implicit stemming expansion does not apply to phrase search, and it can be turned off by enclosing the term in double quotes.

Alternate Words Expansion

Oracle SES can provide a suggestion for a query in the form of a "do you mean..." message for alternate word pairs. When you select the Auto-Expand option in the Oracle SES Administration GUI, Oracle SES automatically includes the alternate keyword as part of the search. An alternate keyword definition composed of multiple words is handled like a phrase in the search. For example, if the alternate word pair is "RAC" and "Real Application Clusters," then a query for "RAC" returns documents containing the word "RAC" or the phrase "Real Application Clusters."

If the search administrator has turned on spell checker, then Oracle SES only gives suggestions for term search, phrase search, and proximity search. Spell checker does not give suggestions for terms or phrases in attribute shortcut search.

Linked Results

The results can include the following links:

Cached: The cached HTML version of the document.

Links: Pages that link to and from this document.

Source Group: Browse the source group.

Any links on top of the search text box are source groups. Clicking a source group restricts the search to that group.

Syntax Rules

Table 3-1 describes rules that apply to the search string. Text in square brackets represents characters entered into the search.

Table 3-1 Search String Rules

Rule Description

Single term search

Entering one term finds documents that contain that term.

For example, [Oracle] matches all documents that contain the word Oracle anywhere in that document.

You can enter any two searchable items (including term, phrase, attribute shortcut, and proximity search) in a query with a white space separating them and the AND operator applies. The operator [&] also explicitly denotes an AND relationship.

For example, [oracle text] and [oracle & text] both return documents containing oracle and text.

Phrase search ["..."]

Put quotes around a set of words to find documents that contain that exact phrase.

Oracle SES does not apply implicit stemming expansion to a query phrase, but it can apply explicit term expansion to terms in a phrase. All operators except term expansion operators in a phrase are not treated as valid operators but as normal special characters.

For example, [oracle "RAC performance"] returns documents containing oracle and the phrase "RAC performance". Documents containing the stemming form "RAC performances" are not returned. (There is no implicit stemming expansion on either term.) The query ["sec*re search"] returns documents with the phrase "secure search". The query ["sec^re search"] returns documents with the phrase "sec re search".

Attribute shortcut search [attribute_nume:attribute_value]

Search on attributes with an attribute name, a colon (:), and then the value to be searched. Implicit stemming is applied to the attribute value term. You can specify operators as options. When no operator is specified, Oracle SES uses Contains for STRING attributes and Equals for NUMBER and DATE attributes.

For example, [DocVersion:>1] returns documents that have number attribute Docversion where attribute value is larger than 1. The query [title:"oracle text"] returns documents with the phrase "oracle text" in the title attribute. The query [oracle | title:S*S] returns documents with the term oracle or SES in the title attribute. The query [title:^oracle] has the same effect as [title:oracle]. The contains [^] operator applies only to the STRING attribute.

  • Equals [=] returns documents with an attribute equaling the query with case-insensitivity. For example, [title:="oracle text"] returns documents whose title equals "oracle text". It applies to all three attributes.

  • Lessthan and narrower terms [<] return documents with an attribute value less than or earlier than the query value. For example, [DocVersion:<2] returns documents that have number attribute Docversion and where the attribute value is less than 2. They apply to all three attributes.

  • Lessthanequals [<=] applies to NUMBER and DATE attributes.

  • Greaterthan and broader terms [>] return documents with an attribute value greater than or later than the query value. They apply to all three attributes.

  • Greaterthanequals [>=] applies to NUMBER and DATE attributes. For example, [price:>=10] returns documents whose price attribute value is larger than or equal to 10. The query [lastmodifieddate:>=12/23/2006] returns documents whose lastmodifieddate attribute value is on or after December 23, 2006.

See Also: "Searching on Date Attributes" and "Advanced Search"

Proximity search ["..."~]

A proximity search specifies the maximum distance within which multiple terms occur. A proximity search must have the search terms in double quotes. When the maximum spanning distance is not specified, Oracle SES applies a default window of 100 terms. The maximum number is 100. When a value larger than 100 is specified, Oracle SES treats it as 100. For example, ["ses performance"~10] returns documents with the terms SES and performance within any 10 terms spanning windows. The query ["ses performance"~] returns documents containing the terms SES and performance within any 100 terms spanning windows.Implicit stemming expansion is applied to each term in proximity search. Term expansion operators can be applied to terms in proximity search.

Fuzzy [...~] search

Put the operator (~) after a single term to return documents that contain terms similar to the query term. For example, [hallo~] returns documents containing term hello. The query [specifi*tion~] returns documents containing the term specification. Note: If a single term enclosed in double quotes is followed by ~, then the query is not a proximity search but a fuzzy search. The query ["parformance"~] returns documents containing the term performance.

Thesaurus-based search

Synonym [~...] search

Narrower term [<] search

Broader term [>] search

Thesaurus-based operators require that a thesaurus be loaded into Oracle SES.

Put the operator [~] at the beginning of a term to return documents that contain the original query term or a synonym for it. For example, [title:~"RAC"] returns documents with RAC or the synonym real application clusters in the title. A synonym relationship is symmetric: real application clusters is a synonym of RAC, and RAC is a synonym of real application clusters. In attribute search, it applies only to the STRING attribute.

The query [<"Northern California"] returns documents with the thesaurus-defined narrower term San Francisco or the original phrase Northern California. The query [product:>chair] returns documents whose product attributes contain the broader term furniture or the original term chair. Broader and narrower terms are symmetric. Specifying that furniture is a broader term of chair also implicitly specifies that chair is a narrower term of furniture.

See Also: "Thesaurus-Based Search"

OR [|] search

Use the OR [|]operator to connect any two searchable items.

For example, [oracle | "RAC performance"~ ] returns documents with the term oracle or with the terms RAC and performance in any 100 terms spanning windows. The query [oracle | title:SES] returns documents with the term oracle or SES in the title attribute.

Grouping ( ) search

Use parentheses ( ) to group query components to change precedence of the binary logical operators AND and OR. The grouped query components must form a valid query. If the query string inside parentheses is not a valid query, then Oracle SES implicitly rewrites it to the closest valid query.

For example, [(oracle | database) sales] returns documents containing sales and containing either oracle or database. The query [(oracle |) sales] returns documents containing oracle and sales. This is because [oracle |] is not a valid query.

Wildcard matching [*] for multiple characters

Put the operator [*] in the middle or end of a term for wildcard matching. It can be applied multiple times in one term.

For example, [ora*] finds documents that contain words beginning with ora, such as Oracle and orator. The query [title:a*e] returns documents with the title containing words such as apple or ape.

Multiple character wildcard expansion could result in too many results. For example, [a*] could find too many results. Oracle SES throws an error to refine the queries.

The wildcard operator [*] is ineffective with the escape character [\] just before it. For example [Pro\*c].

Wildcard matching cannot be used with Chinese or Japanese native characters.

Wildcard matching [?] for single characters

Put the operator (?) in middle or end of a term for wildcard matching for a single character. It can be applied multiple times in one term.

For example, [orac?e] and [or?cl?] both return documents containing terms that replace ? with a single character, such as Oracle.

The wildcard operator [?] is ineffective with the escape character [\] just before it.

Wildcard matching cannot be used with Chinese or Japanese native characters.

Compulsory inclusion [+] search

Put the operator (+) at the beginning of any searchable item (including term, phrase, attribute, and proximity search) to require that the word be found in all matching documents. There should be no space between the [+] and the search term.

For example, searching for [Oracle +Applications] only finds documents that contain the words Oracle and Applications.

When compulsory inclusion search is used with the OR (|) operator, the compulsory inclusion operator does not have any effect. For example, searching for [text | +database] returns documents containing the term text or database.

Compulsory exclusion [-] search

Put the operator (-) at the beginning of any searchable item (including term, phrase, attribute, and proximity search) to require that the word not be found in all matching documents. It can be a single word or a phrase, but there should be no space between the [-] and the token.

For example, [oracle –applications] returns documents containing oracle but not containing applications. The query [oracle –"application server"] returns documents containing oracle but not containing the phrase "application server". The query [oracle –title:oracle] returns documents containing oracle but with the title not containing oracle. The query [oracle –"application server"~] returns documents containing oracle but not containing application and server in any 100 terms spanning window.

The compulsory exclusion query cannot be the only query. For example, the query [-oracle] raises an error. Also, the compulsory exclusion query cannot be connected with the OR [|] operator. For example, [oracle | -database] raises an error.

Filetype search [filetype:filetype]

Use [filetype:filetype] after the search term to limit results to that particular file type. A search can have only one file type. No operator is allowed in file type shortcut search.

For example, [documentation filetype:pdf] returns PDF format documents for the term documentation. The "filetype" shortcut must be lowercase, but the file type name is case-insensitive; that is, [documentation filetype:PDF] returns the same documents.

The following file types are supported, with their corresponding mimetype:

filetype string: mimetype

ps: application/postscript

ppt: application/vnd.ms-powerpoint, application/x-mspowerpoint

doc: application/msword

xls: application/vnd.ms-excel, application/x-msexcel, application/ms-excel

txt: text/plain

html: text/html

htm: text/html

pdf: application/pdf

xml: text/xml

rtf: application/rtf

Site search [site:host]

Use [site:host] after the search term to limit results to that particular site.

For example, [site:www.oracle.com filetype:pdf] returns documents from www.oracle.com in PDF format. The "site" shortcut must be lowercase, but the host name is case-insensitive; that is, [site:www.Oracle.com filetype:pdf] returns the same documents.

Oracle SES only supports exact host matching. The query [site:*.oracle.com] does not work.

Group [sg:source group] search

Use [sg:source group] to limit results to that particular source group.

For example, [sg:intranet] returns documents in the intranet source group. The "sg" shortcut must be lowercase, but the source group name is case-insensitive; that is, [sg:IntraNet] returns the same documents.

In federated search, the source group names are the source groups in the local (broker) node. If the local source groups contain federated sources, then Oracle SES translates the local source group name to the federated source group name by changing the query, which is then sent to federated source for results.


Browse Source Groups

Source groups are groups of sources that can be searched together. A source group consists of one or more sources, and a source can be assigned to multiple source groups. Source groups are defined on the Search - Source Groups page. Infosource nodes, or folders, are only generated for Web, e-mail, and OracleAS Portal source types.

On the basic Search page, users can browse source groups that the administrator created. Click a source group name to see the subgroups under it, or drill down further into the hierarchy by clicking a subgroup name.To view all the documents under a particular group, click the number next to the source group name. You can also perform a restricted search in the source group from this page.

The source hierarchy lets end users limit search results based on document source type. The hierarchy is generated automatically during crawl time.

Searching on Date Attributes

Date attribute values on the result list are shown in Greenwich Mean Time (GMT). For example, when you crawl a document on your local computer with a last modified date value of "Sep 13 2007 20:30:00 PDT", the Oracle SES crawler converts this date value to the corresponding GMT date value, which is "Sep 14 2007 3:30:00 GMT". These two values represent the same moment in time, but Oracle SES only displays the date (not the time or time zone). Therefore, the last modified date displayed in the result list is Sep 14 2007 and not Sep 13 2007.

To search on the lastModifiedDate attribute, use the GMT date value. In the previous example, you would search on lastModifiedDate=09/14/2004. The query lastModifiedDate=09/13/2004 does not return the document. Note that you must enter the date using the format mm/dd/yyyy.

To display the lastModifiedDate in your local time zone: 

  1. Open the ORACLE_HOME/search/webapp/config/search.properties file in a text editor.

  2. Set ses.qapp.convert_timezone=true.

  3. Restart the Oracle SES middle tier:

    searchctl restart
    

The browser picks up your local time zone and lastModifiedDate is converted to your local time zone before displaying the search results.

Submit URL

The URL submission feature lets users submit URLs to be crawled and indexed. These URLs are added to the seed URL list for a particular source and are included in the crawler search space.

This feature is disabled on the Search page if it is disabled on the Global Settings - Query Configuration page or if you have not created a Web source.

To allow users to submit URLs: 

  1. Log on to the Oracle SES Administration GUI.

  2. On the Global Settings page, select Query Configuration.

  3. Select Allow URL Submission.

  4. Select the Web source to which the submitted URLs are added.

  5. Click Apply.

To examine the submitted URLs before they are indexed by the crawler: 

  1. On the Home page, select the Schedules secondary tab.

  2. Click the Edit icon of a schedule.

  3. Under Update Crawling Mode on the Edit Schedule page, select Examine URLs Before Indexing.

  4. Click Update Crawling Mode.

Configuring the Display Options on the Search Page

You can configure how search options are displayed on the Search page. You can choose to display the Attribute Filters link or the Advanced Search link next to the basic search option.

This is done by specifying the following setting at the beginning of each of the four Freemarker template files: query.ftl, results.flt, noresults.ftl, and error.ftl.

<#assign advSearchOpt = "configuration_setting">

For example,

<#assign advSearchOpt = "filters">

The configuration options are:

  • filters — Displays the Attribute Filters link next to the Search button. Using this link, you can access the attributes filter table. This is the default display setting.

  • link — Displays the Advanced Search link next to the Search button. Using this link, you can access the advanced search page.

  • both — Displays the Attribute Filters link next to the Search button. The More Advanced link at the bottom of the attribute filters table takes you to the Advanced Search page.

See Also:

Chapter 10, "Customizing the Search User Interface" for more information about configuring Freemarker template files

Attribute Filters

Attribute filters enable you to refine your search query by specifying attribute values of documents. Oracle SES includes default attributes for every instance, such as title, description, and keywords. For example, the Author attribute is mapped to the From header in e-mail documents and the Author metatag in HTML documents. Search administrators can also create custom attributes.

Using the Attributes Filter Table

The attributes filter table provides several user friendly features that makes it easier for you to create a search query based on attributes. The features include auto-complete for attribute names that match the user's input, and a calendar picker that is displayed when the user selects a date attribute. In the Attribute Filters table, you can specify any number of attribute filters by specifying a boolean condition followed by "any" or "all". Attribute filter rows may be added or removed by clicking on the icons to the right of each row.

Auto Complete for Attribute Names

To assist the user in selecting search attributes, auto complete is enabled for the attribute name. As you begin entering the attribute name, the attributes with the matching characters are displayed in a list and you can select from this list. Additionally, the list displays the data type next to the attribute name.If a source group or multiple source groups are selected, then this list of search attributes is restricted to those attributes that are included in any of the selected source groups.

Attribute Type-Specific Operators

The choice of operator is specific to the data type of the selected attribute. For example, STRING attributes allow the Equals and Contains operators. NUMBER and DATE attributes allow Equals, Less than, Less than or equals, Greater than, and Greater than or equals operators. Also note that the choice of available operators depends on the attribute itself. For example, with the Tag attribute, you can use only the Equals operator.

Calendar Date Picker for Date Attributes

When a date attribute is selected and a user clicks or tabs into the attribute value input box for the date attribute, a calendar control automatically appears to allow the user to easily select a date. In addition to providing a visual interface, this also aids the user in entering the correct date format for Oracle SES, which is currently MM/DD/YYYY.

Link Label in Collapsed State

When the attribute filters table is collapsed/hidden, the Attribute Filters link indicates the number of valid attribute filters.

Although there may be many more rows in the attribute filter table, this number only counts rows that have both a valid attribute name and a non-empty value. Incomplete rows are ignored if the query is submitted, so this number is an accurate count of the filters in the search query.

Display Query for Advanced Search

When a search is performed with the attributes specified in the attributes filters table, the equivalent “advanced search” query with attribute shortcuts is constructed to display to the user various statistics like the title, hit stats, and bottom query box. This is useful to show the user what the equivalent query would be if entered solely in the query box.

See "Search by Attribute" for more information.

Advanced Search

Oracle SES 11g provides a feature-rich set of advanced search options for the end user. You can target your search results more accurately using the Advanced Search page, which is shown in Figure 3-3. Advanced Search lets you refine searches in the following ways:

Figure 3-3 Advanced Search Page

Surrounding text describes Figure 3-3 .

Search Documents in a Specific Language

Oracle SES can search documents in different languages. Specifying a language restricts searches to documents that are written in that language. Select a language in the Language box.

The following are possible internationalization issues with supported operators:

  • Proximity Search ["secure search"~10]: The term distance definition could be different for non-whitespace delimited languages, such as Japanese. The behavior of proximity search for those languages could be different.

  • Implicit stemming: This is available in English, German, French, Spanish, Italian, Dutch.

  • Wildcard search [feat*e] or [featu?e]: The term definition is different for non-whitespace-delimited languages, such as Japanese. The behavior of wildcard expansion for those languages is different.

  • Fuzzy expansion [hallo~]: This is available in English, German, French, Chinese, Japanese, Spanish, Italian, and Dutch.

Search in Specific Source Groups

If one or more source groups are defined, then corresponding check boxes appear when you select specific categories. You can limit your search to source groups by selecting those check boxes. If no source group is selected, then all documents are searched.

A source group represents a collection of documents. They are created by the Oracle SES administrator.

Search by Attribute

Similar to the attributes filter table, the Attribute Selection panel enables you to specify attribute values for a search. Date format must be entered in the MM/DD/YYYY format. Click Add more attributes to enter more than four search attribute values. Table 3-2 provides the list of operators supported for each data type.

Table 3-2 Oracle SES Attribute Search Operators and Types of Attributes

Attribute Contains (^) Equals (=) Synonym (~) Lessthan, Narrower terms (<) Lessthanequals (<=) Greaterthan, Broader terms (>) Greaterthanequals (>=)

String

Yes

Yes

Yes

Yes

No

Yes

No

Number

No

Yes

No

Yes

Yes

Yes

Yes

Date

No

Yes

No

Yes

Yes

Yes

Yes


The Equals operator returns a hit only if the attribute value that you enter exactly matches the attribute value in the document. The Contains operator returns a hit if the attribute value you enter matches any of the tokens in the attribute values in the document. The token must be an exact match; partial matches are not returned.

For example, suppose that the following four documents are indexed:

Document Author Number of Tokens
doc1 "scott"  
doc2 "scott tiger" 2 (scott, tiger)
doc3 "scottm tiger" 2 (scottm, tiger)
doc4 "scott.tiger@oracle.com" 4 (scott, tiger, oracle, com)

An attribute restricted search for "author equals scott" returns only doc1. But an attribute restricted search for "author contains scott" returns doc1, doc2, and doc4. There is no hit for doc3 because scott is only a partial match for scottm.

Search Using Oracle Text Query Syntax

When a query is prefixed with 'otext::', Oracle SES identifies it as an Oracle Text syntax query. Both the Oracle SES Search Application and in the Web Services API support this query syntax.

Oracle Text query syntax and Oracle SES query syntax cannot be used in the same query.

To use the Oracle Text query syntax, note the following: 

  • A highlight query highlights terms in returned documents. Use a highlight query only after an Oracle Text-compatible query and prefixed by the string highlight:. When no highlight query is specified, Oracle SES chooses highlight terms from the original queries.

  • To support thesaurus-based (that is, synonym, broader or narrower term) searching, load a thesaurus.

  • For 'about' to work, change the index to index themes.

Table 3-3 compares the syntax of Oracle Text and Oracle SES.

Table 3-3 Syntax Comparison Between Oracle Text and Oracle SES

Query Oracle Text Oracle SES

Term

otext::secure

secure

Phrase

otext::secure search

otext::{secure search}

"secure search"

Proximity search

otext::secure ; search

otext::near((secure, search),10)

"secure search"~

"secure search"~10

Attribute search

otext::oracle within title

otext::(oracle & text) within title

N/A for numeric and date attribute

title:oracle

title:oracle & title:text

lastmodifieddate:10/20/2006

AND operator

otext::secure & search

secure search

OR operator

otext::secure | search

secure | search

ACCUM and Weight

otext::secure*10, search *5

N/A

Compulsory exclusion

otext::oracle ~apps

oracle -apps

Compulsory inclusion

N/A

oracle +apps

Grouping operator

otext::(rac | {real application clusters}) & whitepaper

(rac | "real application clusters") whitepaper

Stemming operator

otext::$feature

N/A (implicit stemming, turned off by using double quotes)

Multiple character wildcard

Single character wildcard

Fuzzy expansion

otext::feat%e

otext::featu_e

otext::?hallo

feat*e

featu?e

hallo~

Soundex

otext::!smythe

N/A

Theme search

otext::about(dogs)

N/A

Synonym search

Narrower term search

Broader term search

otext::syn(dog)

otext::NT(dog)

otext::BT(dog)

~dog

<dog

>dog

Query template

otext::<query> <textquery>123</textquery></query>

N/A

Query relaxation

otext::<query> <textquery> <progression> <seq>secure search</seq> <seq>secure;search </seq> <seq>secure & search</seq> </progression> </textquery></query>

N/A (implicitly done)

Highlight

otext::oracle highlight:search

N/A (implicitly done)


See Also:

Oracle Text Reference, available on Oracle Technology Network

Thesaurus-Based Search

A thesaurus is a list of terms or phrases with relationships specified among them, such as a synonym, a broader term, and a narrower term. When a user issues a search query, Oracle SES can expand the search results to include matches for the related terms. Users can include the thesaurus operators in their queries:

  • ~ Synonyms

  • > Broader terms

  • < Narrower terms

If no thesaurus is loaded or if the specified term or phrase cannot be found in the loaded thesaurus, then query expansion is not possible. Oracle SES only returns documents containing the original term or phrase.

You can apply thesaurus-based expansion operators to attributes in an attribute search. Because an attribute value is either a term or a phrase, the expansion has the same effect on both, except that the expansion in attribute shortcut search is restricted to attribute value search.

Including Related Terms from a Thesaurus

You can expand the search results by providing a thesaurus. A thesaurus is a list of terms or phrases with relationships specified among them, such as a synonym, a broader term, and a narrower term. When a user issues a search query, Oracle SES can expand the search results to include matches for the related terms.

A thesaurus contains domain-specific knowledge. You can build a thesaurus, buy an industrial-specific thesaurus, or use utilities to extract a thesaurus from a specific corpus of documents. The thesaurus must be compliant with both the ISO-2788 and ANSI Z39.19(1993) standards.

Only one thesaurus can be loaded at a time, and it must be named DEFAULT. If no thesaurus is loaded or if the specified term or phrase cannot be found in the loaded thesaurus, then thesaurus-based query expansion is not possible. Oracle SES only returns documents containing the original term or phrase. The default expansion level is one.

Alternate Words

Oracle SES maintains an alternate word list containing word pairs. The two words in the word pair can be used alternatively. The semantic similarity between the two words is higher than that between two synonyms.

Oracle SES uses alternate words in the following places:

  • To provide a suggestion for a query. For example, the query [RAC] can result in the suggestion: "did you mean 'real application clusters'?"

  • To provide an implicit expansion based on alternate words. For example, the query [RAC] returns documents containing RAC or real application clusters.

Oracle SES provides an option for each alternate word pair to do implicit expansion for this pair.

Suggesting Alternate Words

Oracle SES can maintain an alternate word list containing word pairs. The two words in the word pair can be used alternatively. The semantic similarity between the two words is higher than that between two synonyms. Oracle SES uses the list to provide suggestions or to expand the search results.

See Also:

Oracle Secure Enterprise Search Administration API Guide for more information about configuring alternate words

Oracle Secure Enterprise Search Administration API Guide for more information about the search admin API commands related to altWord

Restricted Search and the Browse Popup

On the Basic search page, users can browse source groups that the administrator created by clicking the Browse link next to the Search box. This action displays a Browse popup window containing a tree view of the browse information hierarchy. Users can click an expand icon (>) to see the infosource nodes under it, or drill down further by clicking additional expand icons.

Clicking the document count number of a browse node refreshes the entire page to show the set of all documents within that infosource node. Clicking the node label causes the list of source groups above the Search box to be replaced with the message "Search within: <infosource node name>".

The infosource node in the browse tree, along with its subtree, are highlighted to indicate which node is selected to search within.

The search result set is not immediately replaced. Instead, users must click Search to perform a restricted search within the selected infosource node. Only one infosource node may be selected at a time for "search-within."

To restrict search to a set of top-level source groups (rather than an infosource node), select multiple source groups within the Browse Tree popup. The source group has a check mark next to it, and the list of selected source group names are displayed above the Search box. Again, users must click Search to perform a restricted search within the selected source groups.

Providing Oracle SES Search in a Secure Portlet

You can provide a secure portlet for Oracle SES on any OracleAS Portal page. You can place separate portlets for the search box and search results, and you can display customized results. Oracle SES portlets conform to the Web Services for Remote Portlets (WRSP) specification.

To implement a secure portlet, you must configure both Oracle SES and the OracleAS Portal page. The supported OracleAS Portal Server version is 10.1.4.2.0 with a mandatory one-off patch 7560661.

Choosing a Portlet Type

Oracle SES supports three different portlet types:

  • Full Portlet: Displays both the search box and the search results in a single portlet. The default name is SESPortlet. Figure 3-4 shows a full Oracle SES portlet.

  • Search Box Portlet: Displays the search box, source groups, and alternate keywords. The search results are displayed in a separate search results portlet, which must be on the same Portal page. The default name is SearchBox Portlet.

  • Search Results Portlet: Displays the result list, suggested links, and pagination links for a query entered in a search box portlet. The search results portlet must be on the same Portal page as the search box portlet. The default name is SearchResults Portlet.

Figure 3-4 Oracle SES Portlet

Surrounding text describes Figure 3-4 .

Figure 3-5 shows a search box portlet and a search results portlet. They automatically coordinate their interactions, so they are always synchronized.

Figure 3-5 SearchBox Portlet and SearchResults Portlet

Surrounding text describes Figure 3-5 .

Configuring Oracle SES for a Secure Portlet

On the Oracle SES (provider) side, you must edit the XML configuration file and restart the Oracle SES middle tier so that the changes take effect.

If you are supporting a secure portlet for the first time, follow this procedure:

Customizing the Portlet Configuration File

You can optionally make these changes at any time:


Supporting Multiple Instances of a Portlet Type
Supporting Result List Customizations

To implement your changes, follow this procedure:

Restarting the Oracle SES Middle Tier

About the Portlet Configuration File

The Oracle SES portlet configuration file is portlet.xml. It is located in the following directory:

ORACLE_HOME/search/webapp/search_portlet/search_portlet_war/WEB-INF

Note:

Only the Oracle SES administrator should edit the portlet.xml file. Changes to portlet.xml are global to the Oracle SES instance. Changes take effect when you restart the Oracle SES.

Customizing the Portlet Configuration File

The current version of portlet.xml supports all the functionality provided in Oracle SES 11g for secure portlets.

To configure a new default portlet.xml file 

  1. Create a copy of the file search_portlet.ear, which is located in ORACLE_HOME/search/webapp/. To do this, first create a folder called tempPortlet within the webapp directory, and then save a copy of the search_portlet.ear file in the tempPortlet folder.

  2. Navigate to the tempPortlet folder.

  3. Edit the portlet.xml file. To do this, from the tempPortlet folder, first expand the search_portlet.ear file, and then expand the search_portlet_war.war file within this.

    The portlet.xml file is located inside WEB-INF/ in the directory where you expanded search_portlet_war.war. For example, its path is ORACLE_HOME/search/webapp/tempPortlet/search_portlet/search_portlet_war/WEB-INF/portlet.xml.

  4. Open portlet.xml in an XML or text editor.

  5. Set the initialization parameters described in Table 3-4 as desired.

  6. Repackage the search_portlet_war.war. Use the command

    jar cvf search_portlet_war.war images/jsp/WEB-INF
    
  7. Repackage search_portlet.ear. Use the command

    jar cvfM search_portlet.ear search_portlet_war.war META-INF/
    
  8. Create a backup of the original search_portlet.ear file in ORACLE_HOME/search/webapp/.

  9. Copy search_portlet.ear from tempPortlet to ORACLE_HOME/search/webapp/.

  10. Redeploy the search_portlet.ear to the Oracle WebLogic Server using the Web console located at http://<hostname>:<portNumber>/console.

  11. Restart the Oracle SES midtier, as described in "Restarting the Oracle SES Middle Tier".

You can customize some portlet preferences from the Edit Defaults page and the Edit page in the Portal user interface. See "Using the Portal User Interface to Change Preferences".

Table 3-4 Oracle SES Portlet Initialization Parameters

Parameter Description

absUrlPrefix

Set to http://HostName:PortNumber/ where HostName and PortNumber are the host name and port number of the Oracle SES instance.

appID

Set this value to one of the keys that is configured as a federated trusted entity to enable secure search.

appPWD

Set this value to be the same as the password of the configured federated trusted entity to enable secure search.

Note: Set up federated trusted entities on the Global Settings - Federation Trusted Entities page in Oracle SES. Enter an entity name and password, then click Add. The entry is added to the Trusted Entities table.

displayMode

When configuring a second instance of a portlet type, set to one of the following values:

  • full: Displays the search box and search results in the same portlet. (Default)

  • search_box: Displays the search box in separate portlet. The search box portlet also displays source groups either in a list or as links, and optionally shows an image for the search button. See the searchButtonImage parameter.

  • search_results: Displays the results in a separate portlet for the search term entered in the search box portlet.

See "Supporting Multiple Instances of a Portlet Type".

enableSourceGroups

Controls the use of source groups:

true: Displays source groups.

false: Disables and hides source groups. Queries are performed on the All group.

endPointURL

Set to http://HostName:PortNumber/search/query/OracleSearch where HostName and PortNumber are the host name and port number of the Oracle SES instance.

navSize

Specifies the number of additional page number links to display on either side of the current page in the pagination links. (Default 3)

portletHeight

Controls the height of the portlet:

auto: Enables the portlet height to grow with the size of the content.

Integer: Sets the fixed height of the portlet in pixels.

searchButtonImage

Specifies an image to use for the Search button. (Optional)

Set to one of the following:

  • A relative path for an image hosted by the Oracle SES portlet such as /images/custom/search_btn.gif. You must configure resource proxy on the midtier of the Oracle Portal instance that is consuming the Oracle SES portlet. See "Configuring Resource Proxying" in the Oracle Application Server Portal Configuration Guide.

  • An absolute URL that points to an image located on another system, which must be accessible to portal end users.

Add any image files to the /images/custom portlet deployment directory. No other locations are supported.

searchInputBoxSize

Specifies the width of the search input text box.

  • Enter an integer, such as 50, to indicate characters.

  • Append a px suffix to the integer, such as 350px, to indicate pixels.

secureContentSearch

Controls access to secure data sources:

  • true: Enables secure search.

  • false: Enables public search only. (Default)

secureMode

Controls authentication of end users. You can set the following values:

  • 2: End users are not prompted for their credentials.(Default)

  • 3: End users must provide credentials. Use this setting when the end-user authentication for secure search has been set to Require login for public and secure content on the Global Settings - Query Configuration page.

useDefaultAppHtml

Controls use of advanced result configuration settings:

  • true: Enables advanced result configuration for the Oracle SES portlet. If you are using separate but connected search box and search results portlets, then set this parameter to true for both of them. When advanced result configuration is enabled, users of the secure portlet can configure fewer display options.

  • false: Disables advanced result configuration. (Default)

Advanced result configuration is enabled in the Oracle SES Administration GUI on the Configure Search Result List page.

wiringKey

Connects portlets using a shared key. (Optional)

Enter a unique key string value, such as tL2mZX8sjQ4k or NYSalesDepA12.

A key is recommended when multiple pairs of connected portlets share the same Portal page.


Supporting Result List Customizations

Oracle SES supports result list customizations for portals and for other search interfaces. You can choose the attributes returned by a query and format the results using a custom XSLT style sheet.

To support result list customizations in a secure portlet: 

  1. If you have not done so, customize the results list as described in "Customizing the Appearance of Search Results".

  2. Open portlet.xml in an XML or text editor.

  3. Set the useDefaultAppHtml parameter to true for the portlets that support result list customizations. This is either SESPortlet or both the SearchBox and SearchResults portlets.

  4. Restart the middle tier as described in "Restarting the Oracle SES Middle Tier".

See Also:

The Extensible Stylesheet Language Family (XSL) at http://www.w3.org/Style/XSL/

Supporting Multiple Instances of a Portlet Type

Under some circumstances, you might want to have different initialization parameter settings for different instances of the same portlet type. For example, you might want to have two SearchBox portlets on different Portal pages, but with different heights. Or you might want to have multiple instances of SESPortlet, with some instances displaying default results and other instances showing Advanced Result List Customization results.

To change the configuration of a second instance of a portlet type: 

  1. Open portlet.xml in an XML or text editor.

  2. Copy the <portlet> element for the existing instance of the portlet type.

  3. Enter new values for <portlet-name> and <display-name>.

  4. Make whatever other changes you want to the initialization parameter settings, then save the file.

  5. Restart the Oracle SES midtier, as described in "Restarting the Oracle SES Middle Tier".

The two portlet definitions appear as distinct choices when adding portlets to the Portal page region.

Restarting the Oracle SES Middle Tier

Restart the Oracle SES middle tier to enable the changes made to portlet.xml.

On Linux and UNIX, from the ORACLE_HOME/bin directory, enter the following command:

./searchctl restart

On Windows, enter the following command:

searchctl restart

You can now register the portal with OracleAS Portal.

Configuring an OracleAS Portal for a Secure Portlet

The OracleAS Portal administrator must register a secure portlet. The administrator and end users can optionally set preferences.

Registering a Secure Portlet in OracleAS Portal Tasks

As an OracleAS administrator, you must register Oracle SES as a Portlet provider and create a Portlet page that contains a secure portlet.

To register Oracle SES as a portlet provider: 

  1. Log on to OracleAS Portal.

  2. Click the Navigator link.

  3. Click the Providers tab.

  4. Click the Registered Providers link.

  5. Click the Register New… Provider link.

  6. Enter a name for the provider and select WSRP from the Implementation Style box. Click Next.

  7. Enter the Oracle SES portlet WSDL URL in the text box, then click Next.

    http://HostName:PortNumber/sesPortlet/portlets/WSRPBaseService?WSDL 
    

    Where HostName and PortNumber are the host name and port number of the Oracle SES instance.

  8. Click Finish.

  9. Click OK to complete registration of portlet provider.

The following error can occur when registering the portlet:

HTTP transport error : java.lang.NullPointerException

If you encounter this error:

  • Confirm that the portlet WSDL URL that you entered during registration is correct.

  • If Oracle Portal 10.1.4 uses Oracle Database 10g Release 2, then install Portal patch 5009567.

To add a secure portlet to a Portlet page:

  1. Click the Page groups tab in OracleAS Portal.

  2. Click the Create New… Page Group link.

  3. Enter a display name. Click Create.

  4. Click Add Portlet.

  5. Click Portlet Staging Area.

  6. Click the link that shows the provider name, as defined in the preceding procedure.

  7. Click one of the following links:

    SES Portlet: Displays the full portlet which contains both the search box and search results.

    SearchBox Portlet: Displays the search box, source groups, and alternate keywords.

    SearchResults Portlet: Displays the result list, suggested links, and pagination links.

  8. Click OK.

    The portlet is now added to the portal page.

Using the Portal User Interface to Change Preferences

You can set default values for certain user preferences by using the Edit Defaults page. These settings affect end users who have not yet personalized their portlet; they do not overwrite the user settings for portlets that have already been personalized.

These are among the configurable preferences for a secure portlet:

  • Number of search matches displayed in a portlet view

  • Displaying or hiding the date and author

  • Listing source groups in a drop-down list or in tabbed links

  • Opening links in a new window

  • Displaying a gray line between search results

To change the default preferences for a secure portlet: 

  1. Log on to OracleAS Portal as the administrator.

  2. Edit the Portal page containing the Oracle SES portlet as desired.

  3. Click the pencil icon in the upper left corner to display the Edit Defaults page.

  4. Make the desired changes.

  5. Click OK to save the changes.

End users can also set default values for certain user preferences from the Edit page. These preferences depend on the display mode of the portlet and certain initialization parameter settings in the portlet.xml file.

Note:

In previous releases, the base path of Oracle SES was referred to as ORACLE_HOME. In Oracle SES release 11g, the base path is referred to as ORACLE_BASE. This represents the Software Location that you specify at the time of installing Oracle SES.

ORACLE_HOME now refers to the path ORACLE_BASE/seshome.

For more information, see "Conventions".