Changes

Jump to navigation Jump to search
68 bytes removed ,  13:54, 20 May 2013
|-
| width='90' | '''Signatures'''
|{{Func|ft:search|$db as item()xs:string, $terms as item()*|text()*}}<br/>{{Func|ft:search|$db as item()xs:string, $terms as item()*, $options as item()|text()*}}
|-
| '''Summary'''
|Returns all text nodes from the full-text index of the [[Database Module#Database Nodes|database node]] {{Code|$db}} that contain the specified {{Code|$terms}}.<br/>The options used for building the full-text will also be applied to the search terms. As an example, if the index terms have been stemmed, the search string will be stemmed as well.
The {{Code|$options}} argument can be used to overwrite the default full-text options, which can be either specified<br/>
* as children of an {{Code|&lt;options/&gt;}} element, e.g.:
|-
| width='90' | '''Signatures'''
|{{Func|ft:tokens|$db as item()xs:string|element(value)*}}<br/>{{Func|ft:tokens|$db as item()xs:string, $prefix as xs:string|element(value)*}}
|-
| '''Summary'''
|Returns all full-text tokens stored in the index of the [[Database Module#Database Nodes|database node]] {{Code|$db}}, along with their numbers of occurrences.<br/>If {{Code|$prefix}} is specified, the returned nodes will be refined to the strings starting with that prefix. The prefix will be tokenized according to the full-text used for creating the index.
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu