Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

tf:containsText

Search for word tokens in a search string.


Syntax

tf:containsText(node $input, string $searchString) => boolean

Top of page

Description

This text retrieval function searches a node for a string, consisting of one or more words and returns true if the node contains the word tokens in the specified order.

With tf:containsText you can perform search operations including the use of a wildcard character. The section Pattern Matching in the XQuery 4 User Guide explains this in detail.

Top of page

Arguments

$input

node in which the search takes place

$searchString

string containing a sequence of one or more words to be searched

Top of page

Examples

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page