r2 - 16 Jan 2007 - 04:12:02 - TWikiContributorYou are here: TWiki >  TWiki Web > TWikiSearchDotPm
Tags:
create new tag

Package TWiki::Search

This module implements all the search functionality.

ClassMethod new ($session)

Constructor for the singleton Search engine object.

StaticMethod getTextPattern ($text,$pattern)

Sanitise search pattern - currently used for FormattedSearch only

ObjectMethod searchWeb (...)

Search one or more webs according to the parameters.

If _callback is set, that means the caller wants results as soon as they are ready. =_callback_ should be set to a reference to a function which takes _cbdata as the first parameter and remaining parameters the same as 'print'.

If _callback is set, the result is always undef. Otherwise the result is a string containing the rendered search results.

If inline is set, then the results are not decorated with the search template head and tail blocks.

Note: If format is set, template will be ignored.

Note: For legacy, if regex is defined, it will force type='regex'

SMELL: If template is defined bookview will not work

SMELL: it seems that if you define _callback or inline then you are responsible for converting the TML to HTML yourself!

FIXME: callback cannot work with format parameter (consider format='| $topic |'


Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
dm42.netCopyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Before making contributions, read the site Contribution Policy
Ideas, requests, problems regarding this site should be sent to Send feedback
To report content which infringes copyright, see the Copyright Infringment page.






























































-- MatthewDent - 24 Nov 2007