Changes

Jump to navigation Jump to search
951 bytes added ,  13:02, 15 September 2015
is thus skipped. If index optimizations are missing, it sometimes helps to give
the compiler a second chance and try different rewritings of the same query.
 
By default, the full-text index options will also be applied to optimized full-text queries.
However, the default index options will be overwritten by supplying options in the query.
For example, if words were stemmed in the index, and if the query can be rewritten for index
access, the query terms will be stemmed as well, unless stemming is not explicitly disabled.
This is demonstrated in the following [[Commands#Command_Scripts|Command Script]]:
 
<pre class="brush:xml">
<commands>
<!-- Create database with stemmed full-text index -->
<set option='stemming'>true</set>
<set option='ftindex'>true</set>
<create-db name='test-db'> <text>house</text> </create-db>
<!-- Index access: Query term will be stemmed -->
<xquery> /text[. contains text { 'houses' }] </xquery>
<!-- Disable stemming (query will not be evaluated by the index) -->
<xquery> /text[. contains text { 'houses' } using no stemming] </xquery>
</commands>
</pre>
==FTAnd==
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu