Changes

Jump to navigation Jump to search
223 bytes added ,  14:19, 25 October 2013
| '''Examples'''
|
* {{Code|ft:search("DB", "QUERY")}} returns : Return all text nodes of the database {{Code|DB}} that contain the term {{Code|QUERY}}.* Return all text nodes of the database {{Code|DB}} that contain the numbers {{Code|2010}} and {{Code|2011}}:<br/><code>ft:search("DB", ("2010","2011"), { 'mode': 'all' })</code><br/>returns all * Return text nodes of that contain the database terms {{Code|DBA}} that contain the numbers and {{Code|2010B|}} and in a distance of at most 5 words:<pre class="brush:xquery">ft:search("db", ("A", "B"), { "mode": "all words", "distance": {Code|2011 "max": "5", "unit": "words" }}.)</pre>* The last example iterates Iterate over five three databases and returns return all elements containing terms similar to {{Code|Hello World}} in the text nodes:
<pre class="brush:xquery">
let $terms := "Hello Worlds"
let $fuzzy := true()
let $options := <options> <fuzzy>value="{ $fuzzy }<"/fuzzy> </options>
for $db in 1 to 3
let $dbname := 'DB' || $db
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu