Changes

Jump to navigation Jump to search
1,199 bytes added ,  11:33, 1 June 2021
no edit summary
|
* <code>ft:tokenize("Häuser am Meer", map { 'case': 'sensitive' })</code> returns the string {{Code|Hauser am Meer}}.
|}
 
==ft:normalize==
 
{{Mark|Introduced with Version 9.6}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|ft:thesaurus|$node as node(), $term as xs:string|xs:string*}}<br/>{{Func|ft:thesaurus|$node as node(), $term as xs:string, $options as map(*)?|xs:string*}}<br/>
|-
| '''Summary'''
|Looks up a {{Code|$term}} in a [[Full-Text#Thesaurus|Thesaurus Structure]] supplied by {{Code|$node}}. The following {{Code|$options}} exist:
* {{Code|relationship}}: determines the relationship between terms. Apart from the standard relationships defined in [https://www.iso.org/standard/7776.html ISO 2788] (RT for Related Term, BT for Broader Term, etc.), custom relationships are supported as well.
* {{Code|min}}: determines the minimum number of levels to traverse
* {{Code|max}}: determines the maximum number of levels
|-
| '''Examples'''
| Returns {{Code|happy}} and {{Code|lucky}}:
<syntaxhighlight lang="xquery">
ft:thesaurus(
<thesaurus>
<entry>
<term>happy</term>
<synonym>
<term>lucky</term>
<relationship>RT</relationship>
</synonym>
</entry>
</thesaurus>,
'happy'
)
</syntaxhighlight>
|}
=Changelog=
 
; Version 9.6
* Added: [[#ft:thesaurus|ft:thesaurus]]
; Version 9.6
;Version 9.0
 
* Updated: error codes updated; errors now use the module namespace
;Version 8.0
 
* Added: [[#ft:contains|ft:contains]], [[#ft:normalize|ft:normalize]]
* Updated: Options added to [[#ft:tokenize|ft:tokenize]]
;Version 7.8
 
* Added: [[#ft:contains|ft:contains]]
* Updated: Options added to [[#ft:search|ft:search]]
;Version 7.7
 
* Updated: the functions no longer accept [[Database Module#Database Nodes|Database Nodes]] as reference. Instead, the name of a database must now be specified.
;Version 7.2
 
* Updated: [[#ft:search|ft:search]] (second argument generalized, third parameter added)
;Version 7.1
 
* Added: [[#ft:tokens|ft:tokens]], [[#ft:tokenize|ft:tokenize]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu