Oracle Text Application Developer's Guide
Release 9.0.1

Part Number A90122-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Introduction to Oracle Text , 7 of 8


Presenting the Hitlist

After executing the query, query applications typically present a hitlist of all documents that satisfy the query along with a relevance score. This list can be a list of document titles or URLs depending on your document set.

Your application presents a hitlist in one or more of the following ways:

Hitlist Example

Figure 1-4 is a screen shot of a query application presenting the hitlist to the user.

Figure 1-4 Query Application Presenting Hitlist


Text description of fig3.gif follows.
Text description of the illustration fig3.gif

Presenting Structured Fields

Structured columns related to the text column can help identify documents. When you present the hitlist, you can show related columns such as document titles or author or any other combination of fields that identify the document.

You specify the name of structured column or columns in the SELECT statement.

Ordering the Hitlist

When you issue either a text query or theme query, Oracle returns the hitlist of documents that satisfy the query with a relevance score for each document returned. You can use these scores to order the hitlist to show the most relevant documents first.

The score for each document is between one and one hundred. The higher the score, the more relevant the document.

Oracle calculates scores when you use the CONTAINS and CATSEARCH operator. You obtain scores using the SCORE operator.

See Also:

Chapter 3, "Querying" 

Presenting Document Hit Count

You present the number of hits the query returned alongside the hitlist, using SELECT COUNT(*). For example:

SELECT COUNT(*) FROM docs WHERE CONTAINS(text, 'oracle', 1) > 0;

To count hits in PL/SQL, you can also use the CTX_QUERY.COUNT_HITS procedure.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback