Changes

Jump to navigation Jump to search
120 bytes removed ,  18:36, 1 December 2023
m
Text replacement - "<syntaxhighlight lang="xquery">" to "<pre lang='xquery'>"
is returned for the following two types of queries:
<syntaxhighlight pre lang="'xquery"'>
'私は本を書いた' contains text '書く' using stemming using language 'ja'
'私は本を書く' contains text '書いた' using stemming using language 'ja'
</syntaxhighlightpre>
=Wildcards=
queries both return <code>true</code>:
<syntaxhighlight pre lang="'xquery"'>
'芥川龍之介' contains text '.之介' using wildcards using language 'ja'
'芥川竜之介' contains text '.之介' using wildcards using language 'ja'
</syntaxhighlightpre>
However, there is a special case that requires attention. The following
query will yield <code>false</code>:
<syntaxhighlight pre lang="'xquery"'>
'芥川龍之介' contains text '芥川.之介' using wildcards using language 'ja'
</syntaxhighlightpre>
This is because the next word boundary metacharacters
an additional whitespaces as word boundary:
<syntaxhighlight pre lang="'xquery"'>
'芥川龍之介' contains text '芥川 .之介' using wildcards using language 'ja'
</syntaxhighlightpre>
As an alternative, you may modify the query as follows:
<syntaxhighlight pre lang="'xquery"'>
'芥川龍之介' contains text '芥川' ftand '.之介' using wildcards using language 'ja'
</syntaxhighlightpre>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu