Changes

Jump to navigation Jump to search
696 bytes added ,  01:36, 23 May 2011
no edit summary
ft:extract(db:open('DB')//*[text() contains text 'hello'], 'b', 1)
</pre>
|}
 
==ft:count==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>ft:count</b>($nodes as node()*) as xs:integer</code>
|-
| valign='top' | '''Summary'''
|Returns the number of occurrences of the search terms specified in a full-text expression.
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors (BASX)|BASX0002]]</b> is raised if one of the resulting items is not a database node.
|-
| valign='top' | '''Version'''
|<font color='red'>BaseX 6.6.3</font>
|-
| valign='top' | '''Examples'''
|
* <code>ft:count(//*[text() contains text 'QUERY'])</code> returns the <code>xs:integer</code> value <code>2</code> if a document contains two occurrences of the string "QUERY".
|}
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu