Changes

Jump to navigation Jump to search
135 bytes removed ,  20:02, 18 July 2022
no edit summary
|-
| '''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 {{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 {{Function|Full-Text|ft:mark}}.
|-
| '''Examples'''
; Version 9.6
* Added: {{Function|Full-Text|ft:thesaurus}}* Updated: {{Function|Full-Text|ft:search}}, {{Function|Full-Text|ft:contains}}: new {{Code|errors}} option.
; Version 9.1
* Updated: {{Function|Full-Text|ft:tokenize}} and {{Function|Full-Text|ft:normalize}} can be called with empty sequence.
;Version 9.0
;Version 8.0
* Added: {{Function|Full-Text|ft:contains}}, {{Function|Full-Text|ft:normalize}}* Updated: Options added to {{Function|Full-Text|ft:tokenize}}
;Version 7.8
* Added: {{Function|Full-Text|ft:contains}}* Updated: Options added to {{Function|Full-Text|ft:search}}
;Version 7.7
;Version 7.2
* Updated: {{Function|Full-Text|ft:search}} (second argument generalized, third parameter added)
;Version 7.1
* Added: {{Function|Full-Text|ft:tokens}}, {{Function|Full-Text|ft:tokenize}}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu