Tags:
view all tags
---+ Package =TWiki::Search= This module implements all the search functionality. %TOC% ---++ ClassMethod *new* <tt>($session)</tt> Constructor for the singleton Search engine object. ---++ StaticMethod *getTextPattern* <tt>($text,$pattern)</tt> Sanitise search pattern - currently used for FormattedSearch only ---++ ObjectMethod *searchWeb* <tt>(...)</tt> 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. SMELL: If =format= is set, =template= will be ignored. SMELL: 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
|
Watch
|
P
rint version
|
H
istory
:
r5
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2006-02-01
-
TWikiContributor
Home
Site map
Sandbox web
TWiki web
XPDays2010 web
XPDays2011 web
XPDays2011SponsoringDemo web
XPDays2012 web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
Register User
Edit
Attach
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.TWikiSearchDotPm
.