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
colas@0
     1
---+ Package =TWiki::Query::HoistREs=
colas@0
     2
colas@0
     3
Static functions to extract regular expressions from queries. The REs can
colas@0
     4
be used in caching stores that use the TWiki standard inline meta-data
colas@0
     5
representation to pre-filter topic lists for more efficient query matching.
colas@0
     6
colas@0
     7
See =Store/RcsFile.pm= for an example of usage.
colas@0
     8
colas@0
     9
colas@0
    10
%TOC%
colas@0
    11
colas@0
    12
---++ ObjectMethod *hoist* <tt>($query) -> @res</tt>
colas@0
    13
colas@0
    14
Extract useful filter REs from the given query. The list returned is a list
colas@0
    15
of filter expressions that can be used with a cache search to refine the
colas@0
    16
list of topics. The full query should still be applied to topics that remain
colas@0
    17
after the filter match has been applied; this is purely an optimisation.
colas@0
    18
colas@0
    19