Changes

Jump to navigation Jump to search
652 bytes removed ,  00:14, 26 May 2012
no edit summary
| valign='top' | '''Summary'''
|Puts a marker element around the resulting <code>$nodes</code> of a full-text index request.<br />The default tag name of the marker element is <code>mark</code>. An alternative tag name can be chosen via the optional <code>$tag</code> argument.<br />Note that the XML node to be transformed must be an internal "database" node. The <code>transform</code> expression can be used to apply the method to a main-memory fragment (see example).
|-
| valign='top' | '''Errors'''
|'''[[Database Module#Errors|BXDB0001]]''' is raised if a referenced node is not stored in a database (i.e., references a main-memory XML fragment).<br />'''[[XQuery Errors#Functions Errors|FOCA0002]]''' is raised if <code>$name</code> is no valid QName.
|-
| valign='top' | '''Examples'''
| valign='top' | '''Summary'''
|Extracts and returns relevant parts of full-text results. It puts a marker element around the resulting <code>$nodes</code> of a full-text index request and chops irrelevant sections of the result.<br />The default tag name of the marker element is <code>mark</code>. An alternative tag name can be chosen via the optional <code>$tag</code> argument.<br />The default length of the returned text is <code>150</code> characters. An alternative length can be specified via the optional <code>$length</code> argument. Note that the effective text length may differ from the specified text due to formatting and readibility issues.
|-
| valign='top' | '''Errors'''
|'''[[Database Module#Errors|BXDB0001]]''' is raised if a referenced node is not stored in a database (i.e., references a main-memory XML fragment).
|-
| valign='top' | '''Examples'''
| valign='top' | '''Summary'''
|Returns the number of occurrences of the search terms specified in a full-text expression.
|-
| valign='top' | '''Errors'''
|'''[[Database Module#Errors|BXDB0001]]''' is raised if a referenced node is not stored in a database (i.e., references a main-memory XML fragment).
|-
| valign='top' | '''Examples'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu