Changes

Jump to navigation Jump to search
1,072 bytes added ,  18:52, 12 January 2012
|
* <code>ft:score('a' contains text 'a')</code> returns the <code>xs:double</code> value <code>1</code>.
|}
 
==ft:tokens==
{{Mark|Introduced with Version 7.1}}
{|
|-
| valign='top' width='90' | '''Signatures'''
|{{Mono|<b>ft:tokens</b>($db as item()) as element(value)*}}<br/>{{Mono|<b>ft:tokens</b>($db as item(), $prefix as xs:string) as element(value)*}}
|-
| valign='top' | '''Summary'''
|Returns all full-text tokens stored in the index, along with their numbers of occurrences. {{Mono|$db}} may either be an <code>xs:string</code>, denoting the database name, or a node stored in the database. <br/>If {{Mono|$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.
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors|BASX0001]]</b> is raised if the full-text index is not available.<br/><b>[[XQuery Errors#BaseX Errors|BASX0002]]</b> is raised if {{Mono|$db}} is a node that is not stored in a database.<br/><b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the addressed database {{Mono|$db}} cannot be opened.<br/>
|}
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu