Action: search
Union search, include results that match any of the whitespace separated keywords (
MATCH AGAINST IN BOOLEAN MODE
& LIKE lower
)1. Syntax
- Call:
{{search [phrase="Term"] [page="PageName"] [options=0|1] [topic=1] [form=1] [nomark=1] [style=one of ("br","ul","ol","comma") ] [scope=one of ("pages", "all")]}}
-
phrase
search term -
page
restricts the search to the specified namespace, usepage="/"
on sub-pages to search all clusters -
options
- with the value 0 only the search field is displayed, other options and filters are hidden -
topic
it is possible to calltitle
— if it is advanced into 1, then search occurs only on the names of pages, otherwise both on the names and on the texts; -
form
— indicates that it is necessary to derive the form of search together with the results. -
scope
answers for that, where to the search: only in the pages or in the commentaries also. -
max
— overwrites system default value -
nomark
, advanced in one, makes it possible to hide frame around the results of search. -
style
answers for the exterior view of results. - All parameters are optional.
2. Boolean Search Operators
TheMATCH AGAINST
clause in MySQL, when used with the IN BOOLEAN MODE
modifier, supports several operators to refine search queries. These operators include:-
+
(mandatory inclusion): The word following the plus sign must be present in the result. -
-
(exclusion): The word following the minus sign must not be present in the result. -
>
(increase ranking): The word following the greater-than sign is included, and its ranking value is increased. -
<
(decrease ranking): The word following the less-than sign is included, and its ranking value is decreased. -
()
(grouping): Parentheses are used to group words into subexpressions, allowing them to be treated as a single unit for inclusion, exclusion, or ranking. -
~
(negate ranking): The ranking value of the word following the tilde is negated. -
*
(wildcard): The asterisk serves as a truncation (or wildcard) operator, where words matching the prefix of the word preceding the asterisk are included. For example,sql*
finds words like "sql", "sqlite", etc.. -
"
(phrase matching): Double quotes are used to define a phrase, requiring the entire phrase to be matched for inclusion or exclusion. - [no operator] implies OR
These operators allow for complex and powerful searches, making the boolean mode suitable for experienced users who need precise control over search results.
2.1. Resources
3. Examples
{{search phrase="BadBehaviour" page="/"}}
Search results for «BadBehaviour» (13):
-
Patches and Hacks[link3]
BadBehaviour-> BadBehaviour (!/BadBehaviour)
-
Сергей Мартынов[link4]
Contributions * BadBehaviour Plugin (/Dev/Components/Lib/BadBehaviour)
-
Libraries[link5]
| 1 | bad_behaviour | Bad Behavior (https://github.com/Bad-Behaviour/badbehaviour) | 2.2.25 | unpatched | 2 | captcha | freeCap (!/Captcha) | 1.4.6 | unpatched ... documentation * /bad_behaviour (!/BadBehaviour) * /captcha (!/Captcha) * /HTMLSAX3 * /phpmailer (!/PHPMailer) * /safehtml (/Dev/Projects/SafeHTML) * /simplepie (!/SimplePie) ...
-
Action: search[link6]
-
5.5 Release Notes[link7]
audio, video and SVG files 1. added Bad Behaviour (/Dev/Components/Lib/BadBehaviour) as extension 1. public registration moderation by admin 1. using password_hash() ...
release, release notes
4. See also
- BinarySearch[link8] - allows users to do a string search using exact or regex search.
- [link1] https://dev.mysql.com/doc/refman/8.4/en/fulltext-boolean.html
- [link2] https://mariadb.com/docs/server/ha-and-performance/optimization-and-tuning/optimization-and-indexes/full-text-indexes/full-text-index-overview
- [link3] https://wackowiki.org/doc/Dev/PatchesHacks
- [link4] https://wackowiki.org/doc/Users/SergeyMartynoff
- [link5] https://wackowiki.org/doc/Dev/Components/Lib
- [link6] https://wackowiki.org/doc/Doc/English/Actions/Search
- [link7] https://wackowiki.org/doc/Dev/Release/R5.5/ReleaseNotes
- [link8] https://wackowiki.org/doc/Dev/PatchesHacks/BinarySearch