[pmwiki-devel] PmWiki Search results

0 views
Skip to first unread message

Simon

unread,
Jul 24, 2021, 9:56:21 PM7/24/21
to PmWiki Devel Mailing List
PmWiki now appears to display as output from (:searchresults:) page and group names that contain the search term.

Yet it appears to be using a vanilla (:searchresults:).

How do I get this for my wiki (e.g. https://ttc.org.nz/pmwiki/pmwiki.php/TTC/Search)

thanks

Simon

Petko Yotov

unread,
Jul 25, 2021, 4:51:49 AM7/25/21
to Simon, PmWiki Devel Mailing List
You're the third person who has asked me about this since 2018.

I *really* don't have the time and peace to clean up and document this
now but I can release the current draft for download:

https://www.pmwiki.org/pmwiki/uploads/Cookbook/enhancesearch.php

It is highly customized for the needs and structure of PmWiki.org. For
other wikis you may need to edit the code itself.

It is unsupported, until I've had the time to clean it up and to
document it in a Cookbook page.

I wrote this to prevent "HTTP 500" errors by optimizing and paginating
the search results processing and HTML generation, which for common
words return too many pages and break the server/PHP limits.

The page names on top, matching or close to the search terms, are to
help the person more easily notice pages that are probably more
relevant, on top, in addition to the ones buried into the alphabetical
list.

At the bottom, for large numbers of pages, there are links to limit the
search to specific wiki groups, with the numbers of matches per group.

BTW the PmWiki search is favouring writers, per the PmWiki Philosophy
#1. I'll need and hopefully I'll soon be writing a reader-favouring
search function for semantic weighted results (page titles, section
headings) so the existing one is not a priority for me.

Don't hold your breath. ;-)

Petko

--
If you upgrade : http://www.pmwiki.org/Upgrades
_______________________________________________
pmwiki-devel mailing list
pmwiki...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Simon

unread,
Jul 26, 2021, 5:05:02 AM7/26/21
to Petko Yotov, PmWiki Devel Mailing List
Thanks very much.

Reply all
Reply to author
Forward
0 new messages