![background image](http://html1.mh-extra.com/html/oracle/5-0/5-0_reference-manual_1646196959.webp)
Boolean Full-Text Searches
939
•
+
A leading plus sign indicates that this word must be present in each row that is returned.
•
-
A leading minus sign indicates that this word must not be present in any of the rows that are
returned.
Note: The
-
operator acts only to exclude rows that are otherwise matched by other search terms.
Thus, a boolean-mode search that contains only terms preceded by
-
returns an empty result. It
does not return “all rows except those containing any of the excluded terms.”
• (no operator)
By default (when neither
+
nor
-
is specified) the word is optional, but the rows that contain it
are rated higher. This mimics the behavior of
MATCH() ... AGAINST()
[934]
without the
IN
BOOLEAN MODE
modifier.
•
> <
These two operators are used to change a word's contribution to the relevance value that is assigned
to a row. The
>
operator increases the contribution and the
<
operator decreases it. See the example
following this list.
•
( )
Parentheses group words into subexpressions. Parenthesized groups can be nested.
•
~
A leading tilde acts as a negation operator, causing the word's contribution to the row's relevance to
be negative. This is useful for marking “noise” words. A row containing such a word is rated lower
than others, but is not excluded altogether, as it would be with the
-
operator.
•
*
The asterisk serves as the truncation (or wildcard) operator. Unlike the other operators, it should
be appended to the word to be affected. Words match if they begin with the word preceding the
*
operator.
If a word is specified with the truncation operator, it is not stripped from a boolean query, even
if it is too short (as determined from the
ft_min_word_len
[452]
setting) or a stopword. This
occurs because the word is not seen as too short or a stopword, but as a prefix that must
be present in the document in the form of a word that begins with the prefix. Suppose that
ft_min_word_len=4
[452]
.
ft_min_word_len=4
. Then a search for
'+word +the*'
will likely
return fewer rows than a search for
'+word +the'
:
• The former query remains as is and requires both
word
and
the*
(a word starting with
the
) to be
present in the document.
• The latter query is transformed to
+word
(requiring only
word
to be present).
the
is both too short
and a stopword, and either condition is enough to cause it to be ignored.
•
"
A phrase that is enclosed within double quote (“
"
”) characters matches only rows that contain the
phrase literally, as it was typed. The full-text engine splits the phrase into words and performs a
search in the
FULLTEXT
index for the words. Prior to MySQL 5.0.3, the engine then performed a
substring search for the phrase in the records that were found, so the match must include nonword
characters in the phrase. As of MySQL 5.0.3, nonword characters need not be matched exactly:
Phrase searching requires only that matches contain exactly the same words as the phrase and in
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...