Changes

Jump to navigation Jump to search
597 bytes removed ,  12:41, 3 October 2011
==Options==
To support a wide variety of scenarios, the The available full-text index can handle differentvarious combinations of the match options defined in the XQuery Full Text Recommendation.By default, most indexing options are disabled. The GUI dialogs for creating new databasesor displaying the database properties contain a tab for choosing between all availableoptions. On the command-line, the <code>SET</code> command can be used to activatefull-text indexing or creating a full-text index for existing databases:* <code> SET FTINDEX on; CREATE DB FILENAMEinput.xml</code>* <code> CREATE INDEX fulltext </code>
The following indexing options are available:
* '''Diacritics''': diacritics are indexed as well (<code>SET DIACRITICS ON</code>)
* '''TF/IDF Scoring''': TF/IDF-based scoring values are calculated and stored in the index (<code>SET SCORING 0/1/2</code>; details see below)
* '''Stopword List''': a stop word list can be defined to reduce the number of indexed tokens (<code>SET STOPWORDS [filename]</code>)  '''Caution:''' The index will only be applied if the activated options are also specified in the query:  '''Index Options:''' Case Sensitive, Stemming ON  '''Query 1 (wrong):'''  <pre class="brush:xquery">//*[text() contains text 'inform']</pre> '''Query 2 (correct):'''  <pre class="brush:xquery">//*[text() contains text 'inform' using case sensitive using stemming]</pre> '''Query 3 (correct):'''  <pre class="brush:xquery">declare ft-option using case sensitive using stemming;//*[text() contains text 'inform']</pre>
==Languages==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu