Changes

Jump to navigation Jump to search
546 bytes added ,  11:46, 1 June 2021
<syntaxhighlight lang="xquery">
'computershardware' contains text 'hardwarecomputers'
using thesaurus default
</syntaxhighlight>
<syntaxhighlight lang="xquery">
'computershardware' contains text 'hardwarecomputers'
using thesaurus at 'thesaurus.xml'
</syntaxhighlight>
</syntaxhighlight>
The format of the thesaurus Thesaurus files must be the same as the format of for the thesauri provided by files used in the [https://dev.w3.org/2007/xpath-full-text-10-test-suite XQuery and XPath Full Text 1.0 Test Suite]. It is an XML with structure defined by an [https://dev.w3.org/2007/xpath-full-text-10-test-suite/TestSuiteStagingArea/TestSources/thesaurus.xsd XSD Schema]. By default, both the relationship defined in [https://www.iso.org/standard/7776.html ISO 2788] (NT: narrower team, RT: related term, etc.) and custom relationships are supported. The type of relationship and the level depth can be specified as well: <syntaxhighlight lang="xquery">(: BT: find broader terms; NT means narrower term :)'computers' contains text 'hardware' using thesaurus at 'x.xml' relationship 'BT' from 1 to 10 levels</syntaxhighlight> More details can be found in the [https://www.w3.org/TR/xpath-full-text-10/#ftthesaurusoption specification].
==Fuzzy Querying==
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu