Text Extender provides a sample program, DESSAMP1.C, located in the SAMPLES directory.
DESSAMP1.C is an example of a program that uses the DesGetSearchResultTable function and your own browser program. It follows the sequence of API function calls shown in Figure 13.
You need access to an enabled database and an enabled text column. To run this program, do the following:
DESRESTB database-name
This table is used to store information such as the search results;
it has the following structure:
Column | Data type |
---|---|
HANDLE | DB2TX.DB2TEXTH or DB2TX.DB2TEXTFH |
RANK | DOUBLE |
MATCHES | INTEGER |