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

John Rankin john.rankin
Sun Jan 25 20:22:32 CST 2004


On Monday, 26 January 2004 3:20 PM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>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.
>

One of the features of the previous version of [[$Search]] is that the
search results display as if from that page name and hence group name.

So adding a group-restricted search box to the search results page means
the search is restricted to the original search group. However, with the new
scheme, the first search will be restricted to the originating group, say
PmWiki/, whereas subsequent searches would be restricted to the Main/ group.

Also, have you considered putting [[$Searchresults]] above the [[$Search]]
box? 

And yes, it makes sense that search results are just another wiki page.

>(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.

So if I put:

    [[$Searchresults [[$Title]]]]

in a GroupFooter

I'd automatically get a list of referring pages at the foot of every page?

Cool. But why is it [[$Searchresults text]] and not (say) [[search text]]?
It looks to me more like a directive (cf [[include:...]]) than a variable.

JR


>
>All comments and suggestions greatly welcomed.
>
>Pm
>
>-- 
>Pmwiki-users mailing list
>Pmwiki-users at pmichaud.com
>http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
>


-- 
JR
--
John Rankin





More information about the pmwiki-users mailing list