You can retrieve the entire contents of the search engine database as a SOIF 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 SOIFStream. You can pipe the output to a program that uses SOIFStream routines to parse the SOIFs in the stream.