Help / Search
Help.Search HistoryHide minor edits - Show changes to markup Changed lines 15-18 from:
to:
(:include Site.SpecialPages:) Changed line 15 from:
to:
Changed line 17 from:
to:
Changed lines 15-16 from:
Find all -Talk pages Find all pages to:
Changed lines 1-76 from:
(:description A page for advanced and customized search options:) (:Summary:Targeting and customising search results:) (:if !equal {$Action} "search":) Try it: this page generates custom searches
Any search that is run from this page will automatically generate pre-defined sets of search results that: target different clusters of pages (documentation, cookbook and PITS, if available); use customized formats, content and ordering; and reveal the specific parameters used to generate each search result. Whether you use the search box below, or the regular search box that appears at the top of this page, any search that you run from this page will provide the customized results. (:searchbox size=120:) PmWiki provides a basic search function. While it is not powered by a "search engine", it can be tweaked to produce results that are targeted and customized. Targeted searches
Searches can be targeted to restrict the search to certain pages. For example, a search can be restricted based on groups, where, for instance, "group=PmWiki" searches only the PmWiki group, and "group=-PmWiki" searches only pages that are not in the PmWiki group. In addition to groups, searches can be restricted based on page names ("name="), wiki trails ("trail="), backlinks ("link=") and other criteria (e.g. "list=normal") and capped at a maximum number ("count="). For documentation about each of these parameters, see page lists. Customized display
The display of search results can be customized to control the format, content and order of the returned results.
For examples of pagelist template formats see Site.Page List Templates, (:if2 exists Site.LocalTemplates:)Site.Local Templates?,(:if2end:) and Cookbook:Pagelist Template Samples. The
This can be used in many more cases than the default pmwiki search. Data from pages with PTVs, etc can be searched, filtered, and reordered. Note that the default ordering is of text strings, ie. 1, 10, 2, 3 and not the numeric value 1, 2, 3, 10, but a custom pagelist sort function (see the cookbook?) can return any order required. Anyone, anywhere
Readers can create targeted and customized search results simply by typing the relevant parameters , e.g. "group=PmWiki", into search boxes together with their search string. Authors can predefine such targeted and customized searches by incorporating the parameters into pages using the
See also (:ifend:) (:if equal {$Action} "search":) back (:table border=0 width=100%:) (:cell width=30%:) All Documentation
(:searchresults group=PmWiki fmt=#onegroupdesc order=name:) (:if expr exists Cookbook.Cookbook and equal {$Action} "search":) (:cell width=35%:) All Cookbook Recipes?
(:searchresults group=Cookbook fmt=#summary order=name:) (:if expr exists PITS.PITS and equal {$Action} "search":) (:cell width=35%:) PITS (Issue Tracking)?
(:searchresults group=PITS fmt=#summary name=0* order=-name:) (:if equal {$Action} "search":) (:tableend:) Note: The strings that were used to target and format each search result are shown above in italics and can be entered directly into a regular search box. (:title Search:) (:if false:) to:
(:Summary:Search wiki:) (:searchbox:) (:searchresults:) A search for more than one word will find pages that contain all of the words. Use quotation marks to search for a phrase. Also use quotes for text with punctuation or special characters. Searches are case insensitive. To limit your search to a single group, enter the group name followed by a slash at the beginning of the search string (e.g., "PmWiki/" or "Site/"). To list all pages, enter a slash for the search. Search examples
Some special characters need to be enclosed in quotes, including the colon (:), equals sign (=), less than (<), single quote (') and double quote("). Added line 7:
Changed lines 13-14 from:
Searches can be targeted to restrict the search to certain pages. For example, a search can be restricted based on groups, where, for instance, "group=PmWiki" searches only the PmWiki group, and "group=-PmWiki" searches only pages that are not in the PmWiki group. In addition to groups, searches can be restricted based on page names ("name="), wiki trails? ("trail="), backlinks ("link=") and other criteria (e.g. "list=normal") and capped at a maximum number ("count="). For documentation about each of these parameters, see page lists?. to:
Searches can be targeted to restrict the search to certain pages. For example, a search can be restricted based on groups, where, for instance, "group=PmWiki" searches only the PmWiki group, and "group=-PmWiki" searches only pages that are not in the PmWiki group. In addition to groups, searches can be restricted based on page names ("name="), wiki trails ("trail="), backlinks ("link=") and other criteria (e.g. "list=normal") and capped at a maximum number ("count="). For documentation about each of these parameters, see page lists. Changed line 18 from:
to:
Changed line 30 from:
Readers can create targeted and customized search results simply by typing the relevant parameters , e.g. "group=PmWiki", into search boxes together with their search string. Authors can predefine such targeted and customized searches by incorporating the parameters into pages using the to:
Readers can create targeted and customized search results simply by typing the relevant parameters , e.g. "group=PmWiki", into search boxes together with their search string. Authors can predefine such targeted and customized searches by incorporating the parameters into pages using the Added lines 4-9:
Try it: this page generates custom searches
Any search that is run from this page will automatically generate pre-defined sets of search results that: target different clusters of pages (documentation, cookbook and PITS, if available); use customized formats, content and ordering; and reveal the specific parameters used to generate each search result. Whether you use the search box below, or the regular search box that appears at the top of this page, any search that you run from this page will provide the customized results. (:searchbox size=20:) Deleted lines 37-42:
Try it: this page generates custom searches
Any search that is run from this page will automatically generate pre-defined sets of search results that: target different clusters of pages (documentation, cookbook and PITS, if available); use customized formats, content and ordering; and reveal the specific parameters used to generate each search result. Whether you use the search box below, or the regular search box that appears at the top of this page, any search that you run from this page will provide the customized results. (:searchbox size=20:) Deleted lines 3-6:
This page uses custom searches.
For regular searches, view another page. Added lines 1-79:
(:description A page for advanced and customized search options:) (:Summary:Targeting and customising search results:) (:if !equal {$Action} "search":) This page uses custom searches.
For regular searches, view another page. PmWiki provides a basic search function. While it is not powered by a "search engine", it can be tweaked to produce results that are targeted and customized. Targeted searches
Searches can be targeted to restrict the search to certain pages. For example, a search can be restricted based on groups, where, for instance, "group=PmWiki" searches only the PmWiki group, and "group=-PmWiki" searches only pages that are not in the PmWiki group. In addition to groups, searches can be restricted based on page names ("name="), wiki trails? ("trail="), backlinks ("link=") and other criteria (e.g. "list=normal") and capped at a maximum number ("count="). For documentation about each of these parameters, see page lists?. Customized display
The display of search results can be customized to control the format, content and order of the returned results.
For examples of pagelist template formats see Site.Page List Templates, (:if2 exists Site.LocalTemplates:)Site.Local Templates?,(:if2end:) and Cookbook:Pagelist Template Samples. The
This can be used in many more cases than the default pmwiki search. Data from pages with PTVs, etc can be searched, filtered, and reordered. Note that the default ordering is of text strings, ie. 1, 10, 2, 3 and not the numeric value 1, 2, 3, 10, but a custom pagelist sort function (see the cookbook?) can return any order required. Anyone, anywhere
Readers can create targeted and customized search results simply by typing the relevant parameters , e.g. "group=PmWiki", into search boxes together with their search string. Authors can predefine such targeted and customized searches by incorporating the parameters into pages using the
See also
Try it: this page generates custom searches
Any search that is run from this page will automatically generate pre-defined sets of search results that: target different clusters of pages (documentation, cookbook and PITS, if available); use customized formats, content and ordering; and reveal the specific parameters used to generate each search result. Whether you use the search box below, or the regular search box that appears at the top of this page, any search that you run from this page will provide the customized results. (:searchbox size=20:) (:ifend:) (:if equal {$Action} "search":) back (:table border=0 width=100%:) (:cell width=30%:) All Documentation
(:searchresults group=PmWiki fmt=#onegroupdesc order=name:) (:if expr exists Cookbook.Cookbook and equal {$Action} "search":) (:cell width=35%:) All Cookbook Recipes?
(:searchresults group=Cookbook fmt=#summary order=name:) (:if expr exists PITS.PITS and equal {$Action} "search":) (:cell width=35%:) PITS (Issue Tracking)?
(:searchresults group=PITS fmt=#summary name=0* order=-name:) (:if equal {$Action} "search":) (:tableend:) Note: The strings that were used to target and format each search result are shown above in italics and can be entered directly into a regular search box. (:title Search:) (:if false:) |
Edit - History - Print - Recent Changes - Search Page last modified on 2013-03-02 01:17 [UTC-7] - 5463 views