Line: 44 to 44 | ||||||||
---|---|---|---|---|---|---|---|---|
Note: For legacy, if regex is defined, it will force type='regex' | ||||||||
Changed: | ||||||||
< < | 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. | |||||||
> > | 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. | |||||||
SMELL: If template is defined bookview will not work |
Line: 55 to 55 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | StaticMethod formatQuery ($meta,$query) -> $text | |||||||
StaticMethod displayFormField ($meta,$args) -> $textParse the arguments to a $formfield specification and extract |
Line: 11 to 11 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | ObjectMethod finish ()Break circular references. | |||||||
StaticMethod getTextPattern ($text,$pattern)Sanitise search pattern - currently used for FormattedSearch only | ||||||||
Line: 32 to 37 | ||||||||
If inline is set, then the results are not decorated with
the search template head and tail blocks. | ||||||||
Added: | ||||||||
> > | 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' | ||||||||
Added: | ||||||||
> > | 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. | |||||||
SMELL: If template is defined bookview will not work
SMELL: it seems that if you define _callback or inline then you are | ||||||||
Line: 44 to 54 | ||||||||
FIXME: callback cannot work with format parameter (consider format='| $topic |' | ||||||||
Added: | ||||||||
> > |
StaticMethod displayFormField ($meta,$args) -> $textParse the arguments to a $formfield specification and extract the relevant formfield from the given meta data.
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. |
Line: 32 to 32 | ||||||||
---|---|---|---|---|---|---|---|---|
If inline is set, then the results are not decorated with
the search template head and tail blocks. | ||||||||
Changed: | ||||||||
< < | SMELL: If format is set, template will be ignored. | |||||||
> > | Note: If format is set, template will be ignored. | |||||||
Changed: | ||||||||
< < | SMELL: If regex is defined, it will force type='regex' | |||||||
> > | Note: For legacy, if regex is defined, it will force type='regex' | |||||||
SMELL: If template is defined bookview will not work |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | Package
This module implements all the search functionality.
|