| Next revision | Previous revision |
| wiki:search [2026/03/11 16:15] – created admin | wiki:search [2026/03/11 17:19] (current) – admin |
|---|
| |
| |
| DokuWiki's default search is a "logical `AND`" search — that is, _all the words_ you put in the query will be used. | DokuWiki's default search is a "logical `AND`" search — that is, //all the words// you put in the query will be used. |
| |
| Search is always case insensitive. | Search is always case insensitive. |
| In this section, we'll use square brackets ''[ ... ]'' to represent characters entered in the query. | In this section, we'll use square brackets ''[ ... ]'' to represent characters entered in the query. |
| |
| --- | ---- |
| |
| ==== Phrase search ("") ==== | ==== Phrase search ("") ==== |
| {{:wiki:searchsample_1.jpg?400|}} | {{:wiki:searchsample_1.jpg?400|}} |
| |
| --- | ---- |
| |
| ==== Excluding Terms (-) ==== | ==== Excluding Terms (-) ==== |
| To exclude pages, from a search, which contain a specific word or phrase, then attach a minus sign ''-'' immediately before the excluded word/phrase. | To exclude pages, from a search, which contain a specific word or phrase, then attach a minus sign ''-'' immediately before the excluded word/phrase. |
| |
| For example, [searching](https://wikipreview.qacos.com/doku.php?do=search&id=wiki%3Asearch&sf=1&q=%22Cornell+Law+Review%22) for ''[ "Cornell Law Review" ]'' | For example, [[https://wikipreview.qacos.com/doku.php?do=search&id=wiki%3Asearch&sf=1&q=%22Cornell+Law+Review%22|searching]] for ''[ "Cornell Law Review" ]'' |
| |
| * will find the 3 pages — | * will find the 3 pages — |
| |
| those which contain "Cornell Law Review": | those which contain "Cornell Law Review": |
| |
| * briefing_book_pdf_files_4014 | * briefing_book_pdf_files_4014 |
| * problems_with_the_testimony_of_robert_brown_pdf_files_16269 | * problems_with_the_testimony_of_robert_brown_pdf_files_16269 |
| * problems_in_the_testimony_of_robert_brown_txt_pages_19389 | * problems_in_the_testimony_of_robert_brown_txt_pages_19389 |
| |
| But, [searching](https://wikipreview.qacos.com/doku.php?do=search&id=wiki%3Asearch&sf=1&q=%22Cornell+Law+Review%22+-Humbertson) for ''[ "Cornell Law Review" -Humbertson ]'' | But, [[https://wikipreview.qacos.com/doku.php?do=search&id=wiki%3Asearch&sf=1&q=%22Cornell+Law+Review%22+-Humbertson|searching]] for ''[ "Cornell Law Review" -Humbertson ]'' |
| |
| {{:wiki:cornell-humbertson.jpg?500|}} | {{:wiki:cornell-humbertson.jpg?500|}} |
| |
| * will find only the 2 pages — | * will find only the 2 pages — |
| |
| those which contain "Cornell Law Review" but do _not_ contain "Humbertson": | those which contain "Cornell Law Review" but do //not// contain "Humbertson": |
| |
| * briefing_book_pdf_files_4014 | * briefing_book_pdf_files_4014 |
| * problems_with_the_testimony_of_robert_brown_pdf_files_16269 | * problems_with_the_testimony_of_robert_brown_pdf_files_16269 |
| |
| --- | ---- |
| |
| ==== Partial matching (*) ==== | ==== Partial matching (*) ==== |
| |
| |
| To search for words for which you want the root word, plus any variation with suffixes (-ed, -ing, etc.), by using _Partial Matching_. | To search for words for which you want the root word, plus any variation with suffixes (-ed, -ing, etc.), by using //Partial Matching//. |
| |
| Add a prefix and/or suffix of an asterisk ''*****'' to a search word. | Add a prefix and/or suffix of an asterisk ''*****'' to a search word. |
| |
| For example, searching for ''[ [onboard](https://wikipreview.qacos.com/doku.php?do=search&id=start&sf=1&q=onboard) ]'' | For example, searching for |
| |
| * will only find "onboard". | ''[ [[https://wikipreview.qacos.com/doku.php?do=search&id=start&sf=1&q=onboard|onboard]] ]'' |
| |
| but [searching](https://wikipreview.qacos.com/doku.php?do=search&id=start&sf=1&q=onboard*) for ''[ onboard* ]'' | * will only find "onboard". |
| |
| * will also find "onboard, onboarding, onboarded". | but [[https://wikipreview.qacos.com/doku.php?do=search&id=start&sf=1&q=onboard*|searching]] for ''[ onboard* ]'' |
| | |
| | * will also find "onboard, onboarding, onboarded". |
| |
| **Extending the example:** | **Extending the example:** |
| |
| Searching for ''[ [onboard](https://wikipreview.qacos.com/doku.php?do=search&id=start&sf=1&q=onboard) ]'' results in these top search results: | Searching for |
| | ''[ [[https://wikipreview.qacos.com/doku.php?do=search&id=start&sf=1&q=onboard|onboard]] ]'' results in these top search results: |
| |
| * 8 Hits: energy_independence_charter_pdf_files_15840 | * 8 Hits: energy_independence_charter_pdf_files_15840 |
| * 8 Hits: texas_cos_energy_independence_coalition_eic_txt_pages_15296 | * 8 Hits: texas_cos_energy_independence_coalition_eic_txt_pages_15296 |
| * 7 Hits: texas_election_action_coalition_charter_docx_files_14865 | * 7 Hits: texas_election_action_coalition_charter_docx_files_14865 |
| |
| (where "# hits" in the search results means number of times word appeared in document); | (where "# hits" in the search results means number of times word appeared in document); |
| while searching for ''[ onboard* ]'' results in a different set of top 3 search results — and a larger number of "hits" within each document: | while searching for ''[ onboard* ]'' results in a different set of top 3 search results — and a larger number of "hits" within each document: |
| |
| * 64 Hits: leaders_onboarding_guide_pdf_files_22275 | * 64 Hits: leaders_onboarding_guide_pdf_files_22275 |
| * 19 Hits: lmt_applicant_processing_pdf_files_8219 | * 19 Hits: lmt_applicant_processing_pdf_files_8219 |
| * 17 Hits: texas_election_action_coalition_charter_docx_files_14865 | * 17 Hits: texas_election_action_coalition_charter_docx_files_14865 |
| |
| You can also perform ''[ doku***** ]'' (prefix matching) and [*okuwik*] (partial matching). | You can also perform ''[ doku***** ]'' (prefix matching) and [*okuwik*] (partial matching). |
| . | . |
| Note that ''*****'' is not a "wildcard". You can't use it _inside_ of a word. For example, searching ''[ doku*iki ]'' will not find anything for you. | Note that ''*****'' is not a "wildcard". You can't use it //inside// of a word. For example, searching ''[ doku*iki ]'' will not find anything for you. |
| |
| ==== The OR operator (|) ==== | ==== The OR operator (|) ==== |
| |
| |
| By default, DokuWiki searches for _all_ the words in your search, but you can also search for _any_ of your search terms. (This is called a logical OR search.) | By default, DokuWiki searches for //all// the words in your search, but you can also search for //any// of your search terms. (This is called a logical OR search.) |
| |
| "OR" searching is done by including ''|'' or ''or'' as a separator between your search terms. | "OR" searching is done by including ''|'' or ''or'' as a separator between your search terms. |
| * cos_gains_support_from_kansans_for_constitutional_integrity_txt_blogposts_19416 | * cos_gains_support_from_kansans_for_constitutional_integrity_txt_blogposts_19416 |
| |
| You can make use of OR as a way to find search terms with _spelling variations_, for example ''[ capitol | capital ]'', or, ''[ state capitol | state capital ]''. | You can make use of OR as a way to find search terms with //spelling variations//, for example ''[ capitol | capital ]'', or, ''[ state capitol | state capital ]''. |
| |
| _ | _ |
| ''[ (gun show) | event ]''. | ''[ (gun show) | event ]''. |
| |
| But, if you needed to search for (gun show) or for (gun event), you could _not_ write it as ''[ gun (show | event) ]''. | But, if you needed to search for (gun show) or for (gun event), you could //not// write it as ''[ gun (show | event) ]''. |
| |
| Instead, use a //grouping search// — as described below. | Instead, use a //grouping search// — as described below. |
| 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, let's say we want to find Robert Cahaly mentioned, but not in the context of John Birch Society _nor_ in the context of Georgia. | For example, let's say we want to find Robert Cahaly mentioned, but not in the context of John Birch Society //nor// in the context of Georgia. |
| |
| The query would be ''[ Cahaly -(JBS | Georgia) ]'', and it will find pages which do contain the word "Cahaly" but not contain the word "JBS" and also not contain the word "Georgia". | The query would be ''[ Cahaly -(JBS | Georgia) ]'', and it will find pages which do contain the word "Cahaly" but not contain the word "JBS" and also not contain the word "Georgia". |
| | |