Full-text is an important [[Querying|query]] feature for working with XML documents, and BaseX was the first query processor that fully supported the upcoming [http://www.w3.org/TR/xpath-full-text-10/ W3C XQuery Full Text 1.0] Recommendation. This page lists some singularities and extensions of the BaseX implementation.
==Syntax==
In 2010, the syntax of the full-text expression has been changed from <code>ftcontains</code> to <code>contains text</code>. While BaseX 6.0 still supported both variants, the first writing was eventually been removed from later releases. Instead, BaseX provides the arrow shortcut <code>=></code> to shorten full-text requests. As a consequence, the following two queries both yield <code>true</code>:
'''Query:'''
<pre class="brush:xquery">
"world" contains text "hello",
"world" => "hello"
</pre>
==Query Evaluation==
"foo" and the text node "foo bar", and one error between
"foo" and "foa bar".
==Syntax==
In 2010, the syntax of the full-text expression has been changed from <code>ftcontains</code> to <code>contains text</code>. While BaseX 6.0 still supported both variants, the first writing was eventually been removed from later releases. Instead, BaseX provides the arrow shortcut <code>=></code> to shorten full-text requests. As a consequence, the following two queries both yield <code>true</code>:
'''Query:'''
<pre class="brush:xquery">
"world" contains text "hello",
"world" => "hello"
</pre>
==Functions==