Changes

Jump to navigation Jump to search
2,072 bytes added ,  21:26, 22 October 2013
==Match Options==
As indicated in the introduction, the input and query texts are tokenized before they are compared with each other. During this process, texts are split into tokens, which are then normalized, based on the following matching options: * wildcardsIf {{Code|case}} is insensitive, no distinction is made between characters in upper and lower case. By default, the option is {{Code|insensitive}}; it can also be set to {{Code|sensitive}}.<pre class="brush:xquery">"Respect Upper Case" contains text "Upper" using case sensitive</pre>* If {{Code|diacritics}} is insensitive, characters with and without diacritics (umlauts, characters with accents) are declared identical. By default, the option is {{Code|insensitive}}; it can also be set to {{Code|sensitive}}.<pre class="brush:xquery">"'Äpfel' will not be found..." contains text "Apfel" diacritics sensitive</pre>* If {{Code|stemming}} is activated, words are shortened to a base form by a language-specific stemmer. <pre class="brush:xquery">"catch" contains text "catches" using stemming, "Haus" contains text "Häuser" using stemmingusing language 'de'</pre>* With the {{Code|stop words}} option, casea list of words can be defined that will be ignored when tokenizing a string. This is particularly helpful when the size of a full-text index structure needs to be reduced:<pre class="brush:xquery">"You and me" contains text "you or me" using stop words ("and", diacritics"or"), "You and me" contains text "you or me" using stop wordsat "http://files.basex.org/etc/stopwords.txt"</pre>* Related terms such as synonyms can be found with the sophisticated [[#Thesaurus|Thesaurus]] option. The {{Code|wildcards}} option facilitates search operations similar to simple regular expressions: * {{Code|.}} matches a single arbitrary character.* {{Code|.?}} matches either zero or one character.* {{Code|.*}} matches zero or more characters.* {{Code|.+}} matches one or more characters.* <code>.{min, thesaurusmax}</code> matches ''min''–''max'' number of characters. <pre class="brush:xquery">"This may be interesting in the year 2000" contains text { "interest.*", "2.{3,3}" } using wildcards</pre>
==Scoring==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu