Documentation
(C) IBM Corp. 1996, 1999

Text Extender: Administration and Programming

RANK

RANK can search in text documents and return a rank value for each document found, indicating how well the found document is described by the search argument.

RANK returns an DOUBLE value between 0 and 1. The rank value is absolute, indicating how well the found document satisfies the search criteria in relation to other found documents. The value indicates the number of matches found in the document in relation to the document's size.

Function syntax

>>-RANK---(--handle--,--search-argument----)-------------------><
 

Function parameters

handle
An expression whose result is a value of type DB2TEXTH or DB2TEXTFH. It is usually the name of a handle column containing the handles of the text documents to be searched.

search-argument
A string of type LONG VARCHAR containing the terms to be searched for. See Chapter 10, Syntax of search arguments.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]