A RESTful browser for eXist Java-Based Function Modules


http://exist-db.org/xquery/ngram
A module for NGram-based indexed searching.

ngram:contains($nodes as node()*, $queryString as xs:string?) node()*
Similar to the standard XQuery fn:contains function, but based on the NGram index. Searches the given $queryString in the index defined on the input node set $nodes. The string may appear at any position within the node content. String comparison is case insensitive. Nodes need to have an ngram index to be searched.
$nodesThe input node set to search
$queryStringThe exact string to search for

Returns a set of nodes from the input node set $nodes containing the query string or the empty sequence
Return to list of all modules