Changes

Jump to navigation Jump to search
355 bytes removed ,  13:18, 17 January 2016
</pre>
Note that BaseX does '''not''' support the ''ignore option'' (<code>without content</code>) of the [http://www.w3.org/TR/xpath-full-text-10/#ftignoreoption W3C XQuery Full Text 1.0] Recommendation. This means that it is not possible If you want to ignore descendant element content, such as footnotes or other material that does not belong to the same logical text flow. Here is an example document: <pre class="brush:xml"><p>This text is provided for illustrative<note>Serving as an example or explanation.</note> purposes only.</p></pre> The ignore option would enable , you can build a second database from and exclude all information you do not want to search for . See the string “illustrative purposes”following example (visit [[XQuery Update]] to learn more about updates):
<pre class="brush:xquery">
let $docs := db:open('docs')return db:create( 'index-db', $docs update delete node ( .//footnote ), $docs/p[db:path(. contains text ), map { 'illustrative purposesftindex' without content note]: true() })
</pre>
 
For more examples, see [http://www.w3.org/TR/xpath-full-text-10-use-cases/#Ignore XQuery and XPath Full Text 1.0 Use Cases].
 
As BaseX does not support the ignore option, it raises error [[XQuery_Errors#Full-Text_Errors|FTST0007]] when it encounters <code>without content</code> in a full-text <code>contains</code> expression.
=Functions=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu