Sun Java System Portal Server 7.1 Developer's Guide

Getting Search Server Database Contents as a SearchStream

You can retrieve the entire contents of the search engine database as a Search stream by using the rdmgr utility. The rdmgr utility must be run in a search-enabled Sun Java System Portal Server software instance directory. The default is PortalServer-base/bin directory.

From the PortalServer-base/bin directory, run the following command:

./rdmgr -U

Be sure that the environment variable LD_LIBRARY_PATH to PortalServer-base/lib directory.

This command prints the database contents as a SearchStream. You can pipe the output to a program that uses SearchStream routines to parse the Searches in the stream.