ngram:ends-with($nodes as node()*, $queryString as xs:string?) node()*
Similar to the standard XQuery fn:ends-with function, but based on the NGram index. Searches the given $queryString in the index defined on the input node set $nodes. The string has to appear at the end of the node's content. String comparison is case insensitive. Nodes need to have an ngram index to be searched.
$nodes
The input node set to search
$queryString
The exact string to search for
Returns a set of nodes from the input node set $nodes ending with the query string or the empty sequence