[Pmwiki-users] 0.6-beta -- possible change to search results

Patrick R. Michaud pmichaud
Sun Jan 25 19:20:44 CST 2004


Hi all--

I've just added an experimental feature for search functionality which
we may want to include in 0.6, and would like some feedback.

Previously the search results were given by a special "Search Results"
page, which didn't really match the format of other pages in the wiki.
In the 0.6-beta site (http://www.pmichaud.com/work/beta/pmwiki.php),
I've now added a [[$Searchresults]] directive which places any search
results in the middle of an existing wiki page.

So, now the SearchWiki page contains both a [[$Search]] markup
(to allow people to enter search text) and a [[$Searchresults]] markup
to display the results of the (previous) search.  It is possible to
put [[$Searchresults]] on wiki pages besides SearchWiki (the URI to the 
page has to include a ?text= parameter in order to see the results), and 
a [[$Search]] directive on another wiki page still directs people to SearchWiki
to see the results.

So, comments?  Is this a better approach than the previous one?
How should the [[$Search]] and [[$Searchresults]] markups work?
Feel free to experiment on http://www.pmichaud.com/work/beta/pmwiki.php.

(BTW, if this new form is adopted, for compatibility and flexibility 
PmWiki would continue to support ?action=search and produce a specialized
search results page as before.)

I'm also thinking of adding [[$Searchresults text]], which uses "text"
as the default string for the search if no other text is specified,
and perhaps [[$Search text]], which pre-fills the search box with "text"
if no text is specified.

All comments and suggestions greatly welcomed.

Pm



More information about the pmwiki-users mailing list