<div dir="ltr">Thanks very much.<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 25 Jul 2021 at 20:50, Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You're the third person who has asked me about this since 2018.<br>
<br>
I *really* don't have the time and peace to clean up and document this <br>
now but I can release the current draft for download:<br>
<br>
   <a href="https://www.pmwiki.org/pmwiki/uploads/Cookbook/enhancesearch.php" rel="noreferrer" target="_blank">https://www.pmwiki.org/pmwiki/uploads/Cookbook/enhancesearch.php</a><br>
<br>
It is highly customized for the needs and structure of PmWiki.org. For <br>
other wikis you may need to edit the code itself.<br>
<br>
It is unsupported, until I've had the time to clean it up and to <br>
document it in a Cookbook page.<br>
<br>
I wrote this to prevent "HTTP 500" errors by optimizing and paginating <br>
the search results processing and HTML generation, which for common <br>
words return too many pages and break the server/PHP limits.<br>
<br>
The page names on top, matching or close to the search terms, are to <br>
help the person more easily notice pages that are probably more <br>
relevant, on top, in addition to the ones buried into the alphabetical <br>
list.<br>
<br>
At the bottom, for large numbers of pages, there are links to limit the <br>
search to specific wiki groups, with the numbers of matches per group.<br>
<br>
BTW the PmWiki search is favouring writers, per the PmWiki Philosophy <br>
#1. I'll need and hopefully I'll soon be writing a reader-favouring <br>
search function for semantic weighted results (page titles, section <br>
headings) so the existing one is not a priority for me.<br>
<br>
Don't hold your breath. ;-)<br>
<br>
Petko<br>
<br>
-- <br>
If you upgrade :  <a href="http://www.pmwiki.org/Upgrades" rel="noreferrer" target="_blank">http://www.pmwiki.org/Upgrades</a><br>
<br>
<br>
On 25/07/2021 03:54, Simon wrote:<br>
> PmWiki now appears to display as output from (:searchresults:) page and<br>
> group names that contain the search term.<br>
> <br>
> Yet it appears to be using a vanilla (:searchresults:).<br>
> <br>
> How do I get this for my wiki (e.g.<br>
> <a href="https://ttc.org.nz/pmwiki/pmwiki.php/TTC/Search" rel="noreferrer" target="_blank">https://ttc.org.nz/pmwiki/pmwiki.php/TTC/Search</a>)<br>
> <br>
> thanks<br>
> <br>
> Simon<br>
</blockquote></div>