Search This Blog

2014-03-23

Wiki Page Searching

In MoinMoin it can be useful to categorize pages and then build table of contents on pages that pull in all pages associated with those categories.

This can be done using the
<<FullSearch(category:[CategoryName])>>or <<FullSearchCached(category:[CategoryName])>>

The FullSearch will perform a active search on all categories to find out which pages belong to that category and the cached will maintain a cache of categories to make indexing these pages faster.

The Format for a category search can be controlled using:
page_category_regex
Which tells whichever search engine, xapian or default moinmoin search engine how to match categories for this searching. Xapian can sometimes have problems matching certain regex statements . So when upgrading from moinmoin search to xapian be aware you might not be able to index everything you want appropriately.

References:
Search Macros - http://moinmo.in/HelpOnMacros 
Search Parameters - http://moinmo.in/HelpOnSearching
Wiki Configuration (page_category_regex) - http://moinmo.in/HelpOnConfiguration
Category Explanation and Usage - http://moinmo.in/HelpOnCategories
Xapian FullSearch bug - http://moinmo.in/MoinMoinBugs/1.9.3FullSearchMacroDoesNotWorkWithXapian

No comments:

Post a Comment