This sample code demonstrates one method for
exporting a single file using Outside In in a separate process. The
interprocess communication is handled using sockets. This particular
sample uses Search Export - SearchML, but it could easily be modified
to run any of the Outside In export technologies by simply changing
exporter.c. Two different versions of the sample code are provided, one
for the Windows platforms and one for the Unix platforms.
Batch Process Export builds upon the Process
Isolate sample code; however, it adds the ability to export multiple
files, to time the conversion, and to switch between two predefined
option sets. Like Process Isolate, Batch Process Ex uses sockets for
interprocess communication and exports files into SearchML. Files can
be converted a directory at a time using the "-d" option. Timings are
run on every conversion whether it is a single file or a complete
directory. The two predefined option sets are a basic option set or the
"best" option set for indexing customers. Batch Process Ex could easily
be adapted to other export technologies by simply changing exporter.c.
Batch Process Content Access builds upon the
Process Isolate sample code; however it adds the ability to convert
multiple files, to time the conversion, and to switch between two
predefined option sets. Like Process Isolate, Batch Process Content
Access uses sockets for interprocess communication; however, it uses
Content Access instead of Search Export - SearchML. The output for
Batch Process Content Access will be similar to that produced by the
CASample sample app. Files can be converted a directory at a time using
the "-d" option. Timings are run on every conversion whether it is a
single file or a complete directory. The two predefined option sets are
a basic option set or the "best" option set for indexing customers.
|