internal package
Foswiki::Search ClassMethod
new ($session) ObjectMethod
finish() ObjectMethod
parseSearch($searchString, $params) → Foswiki::*::Node StaticMethod
_isSetTrue( $value, $default ) → $boolean $value
is actually set to true, and 0 otherwise.
If the value is undef, then $default
is returned. If $default
is
not specified it is taken as 0.
ObjectMethod
searchWeb (...) _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.
The function will throw Error::Simple if it encounters any problems with the
syntax of the search string.
Note: If format
is set, template
will be ignored.
Note: For legacy, if regex
is defined, it will force type='regex'
If type="word"
it will be changed to type="keyword"
with wordboundaries=1
. This will be used for searching with scope="text" only, because scope="topic" will do a Perl search on topic names.
responsible for converting the TML to HTML yourself!
ObjectMethod
loadTemplates (...) StaticMethod
displayFormField( $meta, $args, $newline ) → $text args
string containing name of form field
$newline
- replacement text for newlines within the form field, if not defined defaults to <br />
args
can be appended with a commas
followed by a string format (\d+)([,\s*]\.\.\.)?). This supports the formatted
search function $formfield and is used to shorten the returned string or a
hyphenated string.
![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |