| Syntax |
|
| Documentation | The function indexer parses the html/text/... file or directory specified in parameter 1 recursively and stores the results in the tables specified by parameter 2 and parameter 3 in the current branchs database. The indexer log is traced to the file specified in parameter 4 in the accounts static directory. All other arguments are passed as pairs to the DocFather index creator. For available arguments please refer to the DocFather documentation. The function returns a list of lines containing the unsatisfied links.
st_name, name of table where the site will be stored wt_name, name of table where the words will be stored filename, name of file for output further parameters, valid as pairs
{-debug}{ 0 | 1 } - if 0 - license key required / if 1 - indexing of 30 files {-forbiddenSites}{path} - path/filename of files which will not be parsed {-forbiddenKeys}{path} - path to file with forbidden keys which will not be parsed {-ignoreCase}{ 0 | 1 } - 1 - ignores case / 0 - capitalization {-licenseKey}{license key} - license key {-language}{ 0 | 1 } - 0 - english / 1 - german {-max}{integer} - max count of pages {-mode}{ normal | meta | text } - index mode, normal (text and meta), text (only), meta (only) {-newerAs}{} - newer as (time in ms) {-olderAs}{} - older as (time in ms) {-parseFT}{} - sets the type of the file which will be indexed, text / html {-remindKeyCount}{ 0 | 1 } - 1 - reminds count of words / 0 - does not remind count of words {-skipTitleKeys}{ 0 | 1 } - sets if title words will be considered {-sortSubNumerical}{ 0 | 1 } - sets if all numbers will be sorted {-useTempFile}{ 0 | 1 } - sets if a temp file will be used (1 - default) |
| Examples | |
{SFSites} {SFWords} {output.txt} {-debug}{1} {-mode}{normal} {-useTempFile}{1} {-outDir}{/usr/tmp} {-remindKeyCount}{1} Result: parses all pages linked and sublinked from the startpage of www.sun.com if they are in the html format, stores the result in the tables 'SFSITES' and 'SFWORDS' |
|
| Group | Special |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_EXPERT |
| Minimum parameters | 0 |
| Maximum parameters | 0 |