This article describes, how to install the server variant of regain.
The regain server search consists of two separate applications: The crawler and the search. The crawler creates the search index. The search executes search queries on the finished index and presents the results.
regain\runtime\crawlerfrom the downloaded zip-file to the program directory.
c:\Program Files\regain\searchindex. This isn't done automatically by the crawler for security reasons.
The crawler is started from the console with the command: java -jar regain-crawler.jar
You can specify the following parameters:
–help: Shows the possible parameters.
-forceNewIndex: Forces the creation of a new index. If not specified, the crawler will try to update an existing index.
-retryFailedDocs: If set, the crawler tries to reindex documents, that failed the last time, too. Normally only those documents are retried, that have changed since the last try. Therefore this parameter only makes sense, if you have changed the configuration of the preparators, because otherwise these documents will fail again, which costs needlessly time.
-onlyEntries <WhitelistEntry1>,<WhitelistEntry2>: The list of whitelist entries that should be processed. All other entries of the white list will be left in the index, but not updated.
-config <filename>: Specifies the configuration file that should be used. Default is
-logConfig <filename>: Specifies the logging configuration file that should be used. Default is
-Xmx256m(allocate more memory to Java VM)
-Dfile.encoding=8859_1(file encoding is not the same as the locale)
Example with parameters:
java -jar regain-crawler.jar -config HomepageConfig.xml
regain.warin the tomcat subdirectory
webapps. You find it in the downloaded zip-file in the directory
SearchConfiguration.xmlin the tomcat subdirectory
conf\regain. You find it in the downloaded zip-file in the directory
Start tomcat: Execute
startup in the tomcat subdirectory
Note: If you start tomcat as a Windows service you have to set the absolute path to your
webapps/regain directory in the
<context-param> <param-name>webDir</param-name> <param-value>c:/Program Files/jakarta-tomcat/webapps/regain</param-value> </context-param>