Changes

Jump to navigation Jump to search
270 bytes removed ,  06:55, 11 December 2011
:[[Full-Text]] indexes are very powerful structures, which are mainly used in information retrieval use cases.
==Examples of using the indexesExample Queries==
Here are some examples for The following queries which are rewritten will be optimized for index access(provided that the relevant index exists in a particular database):
===Name/Path Index=== * <code>//name</code> may be rewritten to <code>/addressbook/address/name</code>* <code>/non-existing-name</code> may be rewritten to an empty sequence ===Text-Based QueriesIndex===
* <code>//node()[text() = 'Usability']</code>
* <code>//div[p = 'Usability' or p = 'Testing']</code>
* <code>//node[text() contains text 'Usebiliti' using fuzzy]</code>
* <code>//book[chapter contains text ('web' ftor 'WWW' using no stemming) ftand 'diversity' using stemming distance at most 5 words]</code>
 
The [[Full-Text|full-text]] index is optimized to support all features of the XQuery Full Text
Recommendation.
 
BaseX extends the specification offering a fuzzy match option.
Fuzzy search is based on the Levenshtein algorithm; the longer
query terms are, the more errors will be tolerated.
 
Default "Case Sensitivity", "Stemming" and "Diacritics" options
will be considered in the index creation. Consequently, all queries
will be sped up which use the default index options.
==Index data structures==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu