Changes

Jump to navigation Jump to search
60 bytes removed ,  18:37, 18 May 2012
no edit summary
|Returns all text nodes from the full-text index of the database <code>[[Database Module#Database Argument|$db]]</code> that contain the specified {{Mono|$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 {{Mono|$options}} argument can be used to overwrite the default full-text options. It can be specified as
* {{Mono|element(full-text-options)}}: <code>&lt;full-text-options/&gt;</code> must be used as root element, and the parameters are specified as child nodes, with the element name representing the key and the text node representing the value:<br />
<pre class="brush:xml">
<full-text-options>
<key>value</key>
...
</full-text-options>
</pre>
* [[Map Module|map structure]]: all parameters can be directly represented as key/value pairs:<br /><code>map { "key" := "value", ... </code>}<br/>This variant is more compact, but please note that the W3Cā€™s specification of maps in XQuery is still work in progress.
let $fuzzy := true()
let $options :=
<full-text-options>
<fuzzy>{ $fuzzy }</fuzzy>
</full-text-options>
for $db in 1 to 3
let $dbname := 'DB' || $db
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu