Changes

Jump to navigation Jump to search
101 bytes added ,  19:45, 18 July 2022
m
Text replacement - "\[\[#(ft:[^|]+)\|(ft:[^|]+)\]\]" to "{{Function|Full-Text|$1}}"
|-
| '''Summary'''
|Checks if the specified {{Code|$input}} items contain the specified {{Code|$terms}}.<br/>The function does the same as the [[Full-Text]] expression {{Code|contains text}}, but options can be specified more dynamically. The {{Code|$options}} are the same as for [[#ft:search{{Function|Full-Text|ft:search]]}}, and the following ones exist:
* {{Code|case}}: determines how character case is processed. Allowed values are {{Code|insensitive}}, {{Code|sensitive}}, {{Code|upper}} and {{Code|lower}}. By default, search is case-insensitive.
* {{Code|diacritics}}: determines how diacritical characters are processed. Allowed values are {{Code|insensitive}} and {{Code|sensitive}}. By default, search is diacritical insensitive.
|-
| '''Summary'''
|Extracts and returns relevant parts of full-text results. It puts a marker element around the resulting {{Code|$nodes}} of a full-text index request and chops irrelevant sections of the result.<br />The default element name of the marker element is {{Code|mark}}. An alternative element name can be chosen via the optional {{Code|$name}} argument.<br />The default length of the returned text is {{Code|150}} characters. An alternative length can be specified via the optional {{Code|$length}} argument. Note that the effective text length may differ from the specified text due to formatting and readibility issues.<br />For more details on this function, please have a look at [[#ft:mark{{Function|Full-Text|ft:mark]]}}.
|-
| '''Examples'''
; Version 9.6
* Added: [[#ft:thesaurus{{Function|Full-Text|ft:thesaurus]]}}* Updated: [[#ft:search{{Function|Full-Text|ft:search]]}}, [[#ft:contains{{Function|Full-Text|ft:contains]]}}: new {{Code|errors}} option.
; Version 9.1
* Updated: [[#ft:tokenize{{Function|Full-Text|ft:tokenize]] }} and [[#ft:normalize{{Function|Full-Text|ft:normalize]] }} can be called with empty sequence.
;Version 9.0
;Version 8.0
* Added: [[#ft:contains{{Function|Full-Text|ft:contains]]}}, [[#ft:normalize{{Function|Full-Text|ft:normalize]]}}* Updated: Options added to [[#ft:tokenize{{Function|Full-Text|ft:tokenize]]}}
;Version 7.8
* Added: [[#ft:contains{{Function|Full-Text|ft:contains]]}}* Updated: Options added to [[#ft:search{{Function|Full-Text|ft:search]]}}
;Version 7.7
;Version 7.2
* Updated: [[#ft:search{{Function|Full-Text|ft:search]] }} (second argument generalized, third parameter added)
;Version 7.1
* Added: [[#ft:tokens{{Function|Full-Text|ft:tokens]]}}, [[#ft:tokenize{{Function|Full-Text|ft:tokenize]]}}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu