Both sides previous revision Previous revision Next revision | Previous revision |
help:search [2020/02/02 19:49] – [Partial matching (*)] icna | help:search [2020/02/02 19:59] (current) – [OpenSearch] icna |
---|
==== Phrase search ("") ==== | ==== Phrase search ("") ==== |
| |
You can search for exact phrases by putting double quotes around a set of words, e.g. ''%%[ "installing ICNApedia Wiki" ]%%''. | You can search for exact phrases by putting double quotes around a set of words, e.g. ''%%[ "acute disseminating encephalomyelitis" ]%%''. |
| |
==== Search within a namespace (@) ==== | ==== Search within a namespace (@) ==== |
| |
You can restrict the search to namespaces. To search pages within a namespace, prefix ''@'' or ''ns:'' to the namespace. To not search pages within a namespace, prefix ''^'' or ''-ns:'' to the namespace. | You can restrict the search to namespaces or categories. To search pages within a namespace, prefix ''@'' or ''ns:'' to the namespace. To not search pages within a namespace, prefix ''^'' or ''-ns:'' to the namespace. |
| |
For example, the query ''[ ICNApedia Wiki @wiki ^wiki:docs ]'' will find pages which contain a word "ICNApedia Wiki" and are within "wiki" namespace but not within "wiki:docs" namespace. The query ''[ ICNApedia Wiki ns:wiki -ns:wiki:docs ]'' will do the same thing. | For example, the query ''[ ataxia @content ^:neurolists ]'' will find pages which contain a word "ICNApedia Wiki" and are within "content" namespace but not within ":neurolists" namespace. The query ''[ ataxia ns:content -ns:neurolists ]'' will do the same thing. |
| |
==== The OR operator (|) ==== | ==== The OR operator (|) ==== |
| |
By default ICNApedia Wiki performs a logical AND search, but you can also use a logical OR search by using ''|'' or ''or'' as a separator of your search terms. For example, the query ''[ plugin | template ]'' will find pages which contain either "plugin" or "template" or both. The query ''[ plugin or template ]'' will do the same thing. You may use OR as a simple alternative to [[#Partial matching (*)]], e.g. in finding pages about people with spelling variations as ''[ Frank | Fränk ]''. | By default ICNApedia Wiki performs a logical AND search, but you can also use a logical OR search by using ''|'' or ''or'' as a separator of your search terms. For example, the query ''[ seizures | ataxia ]'' will find pages which contain either "seizures" or "ataxia" or both. The query ''[ seizures or ataxia ]'' will do the same thing. You may use OR as a simple alternative to [[#Partial matching (*)]], e.g. in finding pages about people with spelling variations as ''[ Frank | Fränk ]''. |
| |
The OR operator has a lower precedence than the default AND operator. That is, the query ''[ ICNApedia Wiki plugin | template ]'' can be represented as ''[ (ICNApedia Wiki plugin) | template ]'', not as ''[ ICNApedia Wiki (plugin | template) ]''. Instead, use a grouping syntax as described below. | The OR operator has a lower precedence than the default AND operator. That is, the query ''[ cerebellar ataxia | seizures ]'' can be represented as ''[ (cerebellar ataxia) | seizures ]'', not as ''[ cerebellar (ataxia | seizures) ]''. Instead, use a grouping syntax as described below. |
| |
If you want to [[#Search within a namespace (@) |restrict your search on a namespace]], you **have** to group your search with "()", otherwise a search ''[ plugin | template @plugin]'' will behave as ''[ (plugin) | (template @plugin)]'', i.e. searching for "plugin" OR "template @plugin" over //all// namespaces, but not as you may intend searching "plugin" OR "template" over the //plugin// namespace, the latter being correctly expressed as ''[ (plugin | template) @plugin]''. | If you want to [[#Search within a namespace (@) |restrict your search on a namespace]], you **have** to group your search with "()", otherwise a search ''[ ataxia | seizures @content]'' will behave as ''[ (ataxia) | (seizures @content)]'', i.e. searching for "ataxia" OR "seizures @content" over //all// namespaces, but not as you may intend searching "ataxia" OR "seizures" over the //content// namespace, the latter being correctly expressed as ''[ (ataxia | seizures) @content]''. |
==== Grouping search ==== | ==== Grouping search ==== |
| |
You can group search terms by enclosing terms with parentheses ''( ... )''. Having the highest precedence, parentheses may be used to force precedence. | You can group search terms by enclosing terms with parentheses ''( ... )''. Having the highest precedence, parentheses may be used to force precedence. |
| |
For example, the query ''[ ICNApedia Wiki -(plugin | @plugin) ]'' will find pages which contain a word "ICNApedia Wiki" but not contain a word "plugin" and also are not within a namespace "plugin". | For example, the query ''[ ataxia -(seizures | @content) ]'' will find pages which contain a word "ataxia" but not contain a word "seizures" and also are not within a namespace "content". |
| |
===== Quicksearch ===== | ===== Quicksearch ===== |
| |
===== OpenSearch ===== | ===== OpenSearch ===== |
| |
{{ :opensearch2.png|OpenSearch in Firefox}} | |
| |
[[http://www.opensearch.org/|OpenSearch]] is a standard to make it easy to integrate a website's search into your browser. It is supported by all modern browsers. ICNApedia Wiki is OpenSearch enabled. | [[http://www.opensearch.org/|OpenSearch]] is a standard to make it easy to integrate a website's search into your browser. It is supported by all modern browsers. ICNApedia Wiki is OpenSearch enabled. |