Loading...
 
Skip to main content

History: Search User

Source of version: 13 (current)

Copy to clipboard
            ! Search User

The administrator can choose between 2 search systems: See ((Search Admin))


!!# Boolean search with 'Basic Search' (tiki-searchresults.php)
Added in Tiki 3.0. When Basic Search is enabled, then this is the list of operators to manage a boolean search. 

By default, you can use these boolean operators to refine your search results:
* + : A leading plus sign indicates that this word must be present in every object returned.
* - : A leading minus sign indicates that this word must not be present in any row returned.
* By default (when neither plus nor minus is specified) the word is optional, but the object that contain it will be rated higher.
* < > : These two operators are used to change a word's contribution to the relevance value that is assigned to a row.
* ( ) : Parentheses are used to group words into subexpressions.
* ~ : A leading tilde acts as a negation operator, causing the word's contribution to the object relevance to be negative. It's useful for marking noise words. An object that contains such a word will be rated lower than others, but will not be excluded altogether, as it would be with the - operator.
* * : An asterisk is the truncation operator. Unlike the other operators, it should be appended to the word, not prepended.
* " : The phrase, that is enclosed in double quotes ", matches only objects that contain this phrase literally, as it was typed.


!!!#Default search behavior
By default, all search terms are ''optional''. It behaves like an OR logic. Objects that contain the more terms are rated higher in the results and will appear first in their type. For example, __wiki forum__ will find:

*objects that include both terms
*objects that include the term __wiki__
*objects that include the term __forum__
!!!#Requiring terms
Add a plus sign ( + ) before a term to indicate that the term ''must'' appear in results. Example: __+wiki forum__ will find objects containing at least__wiki__. Objects with both terms and many occurences of the terms will appear first.
{ANAME()}excluding{ANAME}
!!!#Excluding terms
Add a minus sign ( - ) before a term to indicate that the term ''must not''appear in the results. To reduce a term's value without completely excluding it, [#reducing|use a tilde]. Example: __-wiki forum__ will find objects that do not contain __wiki__ but contain __forum__

!!!#Grouping terms
Use parenthesis ( ) to group terms into subexpressions. Example: __+wiki +(forum blog)__ will find objects that contain __wiki__ and __forum__ or that contain __wiki__ and __blog__ in any order.

!!!#Finding phrases
Use double quotes ( " " ) around a phrase to find terms in the exact order, exactly as typed. Example: __"Alex Bell"__ will not find __Bell Alex__ or__Alex G. Bell__.

!!!#Using wildcards
Add an asterisk ( * ) after a term to find objects that include the root word. For example, __run*__ will find:

*objects that include the term __run__
*objects that include the term __runner__
*objects that include the term __running__
{ANAME()}reducing{ANAME}
!!!#Reducing a term's value
Add a tilde ( ~ ) before a term to reduce its value indicate to the ranking of the results. Objects that contain the term will appear lower than other objects (unlike the [#excluding|minus sign] which will completely exclude a term). Example: __+wiki ~forum__ will rate an object with only __wiki__ higher that an object with __wiki__ and __forum__.

!!!#Changing relevance value
Add a less than ( < ) or greater than ( > ) sign before a term to change the term's contribution to the overall relevance value assigned to a object. Example: __+wiki +(>forum < blog)__ will find objects that contain__wiki__ and __forum__ or __wiki__ and __blog__ in any order. __wiki forum__ will be rated higher.

!!# Boolean Search with 'Advanced Search' (tiki-searchindex.php)

!!!#Default search behavior
By default, all search terms are ''optional''. It behaves like an OR logic. Objects that contain the more terms are rated higher in the results and will appear first. For example, __wiki forum__ will find:

*objects that include both tokenized terms
*objects that include the term __wiki__
*objects that include the term __forum__ or __forums__
!!!#Boolean operators
You can use AND or OR or NOT also to do a boolean search. Example:__wiki and forum__ will find objects with both terms. Example: __wiki or forum__ will find objects with one of the term.

!!!#Grouping terms
Use parenthesis ( ) to group terms into subexpressions. Example: __wiki and (forum blog)__ will find objects that contain __wiki__ and __forum__ or that contain __wiki__ and __blog__ in any order.

!!!#Finding phrases
Use double quotes ( " " ) around a phrase to find terms in the exact order, next to each other. Example: __"Alex Bell"__ will not find __Bell Alex__or __Alex G. Bell__ but __Alex Bells__.

-=Related pages=-
* ((Search))
* ((Search Admin))
* ((Search Details))