A RESTful browser for eXist Java-Based Function Modules


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

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.
$nodesThe input node set to search
$queryStringThe 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
Return to list of all modules