Chapter 15. Full text search 347
15.5.3  Indexing existing data through ODWEK
The ODWEK Java API contains two new methods that support FTS. The first method is 
ODFolder.FTIAddHits(). This method has a single parameter, which is a Vector of ODHits. 
The Vector of ODHit objects can be produced by using the search() methods of the 
ODFolder. All hits that are contained in the Vector parameter to FTIAddHits() are sent to FTS 
Exporter for full text indexing. 
The second new method of the ODFolder object is FTIReleaseHits(). This method also takes 
a Vector of ODHit objects as a parameter. This method is used to remove the indexes from 
the FTS Server.
Both of these calls produce work items in the arsftiwork table.
For more information about the ODWEK Java API, see IBM Content Manager OnDemand 
Web Enablement Kit Java APIs: The Basics and Beyond, SG24-7646.
15.5.4  Running the FTS Exporter
The FTS Exporter processes the work items in the arsftiwork table. The FTS Exporter begins 
processing work items, starting with the oldest items. It continues to process these work items 
until the table is empty. Then, it goes to sleep for a specified amount of time before it wakes 
up to look for more work items.
After you configure the FTS Exporter, as described in 15.4.2, “Configuration of the Full Text 
Search Exporter” on page 344, you must run the FTS Exporter with the config file as a 
parameter. The FTS Exporter requires a reference to the ODWEK native libraries that ship 
with Content Manager OnDemand to work correctly. The easiest way to perform this task is to 
add this reference to the start command line when you run Java with the FTS Exporter JAR 
file.
Example 15-3 shows how to start the FTS Exporter with odfts.cfg as the configuration file 
and /opt/ibm/ondemand/V9.0/lib64 as the directory where the native library is installed.
Example 15-3   Running the FTS Exporter
java -Djava.library.path=/opt/ibm/ondemand/V9.0/lib64 -jar ODFTIExporter.jar index 
-configFile odfts.cfg
In Windows environments, ensure that you enclose the ODWEK path with quotation marks if 
it contains spaces. 
15.6  Using full text search in Content Manager OnDemand 
clients
All Content Manager OnDemand clients use the same process and procedure when they 
search the full text index. The query is first sent to the Content Manager OnDemand server 
for processing. If the application group that is being searched contains a segment date, and if 
the search criteria specified a date range, that range is used to narrow the collections on the 
FTS Server that must be searched.