Recent Changes - Search:

PmWiki

pmwiki.org

01023

Summary: Include PTVs and values and PVs and values in pageindex
Created: 2008-04-19 13:39
Status: Open
Category: CoreCandidate
Assigned:
Priority: 2
Version: 2.2.0-beta65
OS:

Description: Currently searches on terms or pagenames are fairly quick but searches on PTVs or PVs (especially the relatively commonly desired feature of searching by title) require the long process of opening each page individually.

Could the .pageindex definition be expanded to include a PTV and/or PV section? Multi-line values would be awkward but presumably could be truncated or something...

It seems like it could speed up searches significantly.

Another option would be to put some hooks into scripts/pagelist.php for recipes to work off of. Currently as far as I can see the only option to make modifications to this functionality is to modify the core source with all the attendant difficulties.

Perhaps a recipe could be put together with existing hooks/capability (even just register_shutdown_function()) to add an additional .pageindex (perhaps .titleindex? .ptvindex? .varindex?) which would cache values. However, are the hooks available in (:pagelist ...:) to use a cache like this?

Granted the code in scripts/pagelist.php is tight and optimized and adding features might work against this -- I just know there are a lot of sites & recipes that do a lot of searching against PTVs or PVs and they would be helped in a big way.

Edit - History - Print - Recent Changes - Search
Page last modified on April 19, 2008, at 03:41 PM