data/TWiki/TWikiQueryHoistREsDotPm.txt
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 ---+ Package =TWiki::Query::HoistREs=
     2 
     3 Static functions to extract regular expressions from queries. The REs can
     4 be used in caching stores that use the TWiki standard inline meta-data
     5 representation to pre-filter topic lists for more efficient query matching.
     6 
     7 See =Store/RcsFile.pm= for an example of usage.
     8 
     9 
    10 %TOC%
    11 
    12 ---++ ObjectMethod *hoist* <tt>($query) -> @res</tt>
    13 
    14 Extract useful filter REs from the given query. The list returned is a list
    15 of filter expressions that can be used with a cache search to refine the
    16 list of topics. The full query should still be applied to topics that remain
    17 after the filter match has been applied; this is purely an optimisation.
    18 
    19