You can use an SQL statement or XQuery to search through text search indexes.
To search a text search index for a specific term or phrase, use one of the following methods:
db2 "SELECT column-name FROM table-name
WHERE CONTAINS (...)=1"
db2 "SELECT NAME, PRICE FROM PRODUCT
WHERE CONTAINS (NAME, '"snow shovel"') = 1"
To search a text search index for a specific term or phrase using XQuery, use the db2-fn:xmlcolumn-contains() function.
db2 "xquery for \$info in db2-fn:xmlcolumn-contains
('PRODUCT.DESCRIPTION','"snow shovel"')
return <result> {\$info/description/name, \$info/description/price} </result>"