Configuring the Java manipulator

A Java manipulator must be configured for the term extraction class.

A Java manipulator component uses one or more Java modules to manipulate source records as part of Forge's data processing. You can use multiple Java manipulators in the pipeline.

The Java manipulator in a Term Discovery pipeline typically performs these major term extraction tasks:

The configuration attributes of a Java manipulator are described below.

Creating the Java manipulator

You use Developer Studio to create and configure a Java manipulator.

To create a Java manipulator:
  1. From the Pipeline Diagram in Developer Studio, click New.
  2. Select Java Manipulator. The New Java Manipulator editor is displayed.
  3. In the Name field, enter a name. The name must be unique among the pipeline components.
  4. Fill in the appropriate fields on the General, Sources, and Pass Throughs tabs. See the following sections for details on these tabs.
  5. Optionally, you can use the Comment tab to enter description or other comment about this component.
  6. Click Ok.

Configuring the General tab

Use the General tab to configure these Java property attributes:
  • Java home. Optional. Specifies the location of the Java runtime engine (JRE). If this attribute is not specified, Forge tries to obtain the location by using the following sequence:
    1. The argument to the Forge --javaHome flag.
    2. The ENDECA_ROOT/j2sdk directory, which is installed as part of the Endeca Platform Services package.
    3. The JAVA_HOME environment variable.
  • Class. Mandatory. Specifies the name of the Java class that will be used by this Java manipulator. Use this class for term extraction:
    com.endeca.edf.termextractor.TermExtractor
  • Class path. Mandatory. Specifies the absolute or relative path to the JAR file that contains the class specified by the Class attribute. The JAR file must contain the class and all other classes it depends on. The following example points to the location of the termextractor.jar (which contains the TermExtractor class):
    /endeca/PlatformServices/6.0.3/lib/java/te/termextractor.jar

The following is an example of the General tab:

Configuring the Sources tab

Use the Sources tab to specify which other component in the pipeline is providing records to this Java manipulator. You can specify multiple record sources.

A Java manipulator used for term extraction typically uses two record sources: one for the source records and the other for the exclude list. If two record source inputs are configured, the first input is used for source records and the second is for the exclude list.
Note: Make sure that the record sources are configured in the proper order, with the source record source being first. If they are reversed, the TermExtractor class in the Java manipulator will throw an exception and the Forge process will fail. Developer Studio arranges the sources in alphabetical order; therefore, you may have to rename them so that they are displayed in the correct order.

In the following example, the CleanBody record manipulator is considered to be the record data source while the LoadExcludeList source is the exclude list.

Configuring the Pass Throughs tab

The Pass Throughs tab is used to send configuration-specific information to the Java classes being executed by the Java manipulator. Descriptions of the pass-through name/value pairs for the Java classes are provided in the "Configuration Guidelines for Term Extraction" section.

To add a pass-through name/value pair:
  1. In the Java Manipulator editor, click the Pass Throughs tab
  2. In the Name field, enter the name of the pass-through.
  3. In the Value field, enter the value for the named pass-through.
  4. Click Add.
  5. Repeat steps 2-4 as necessary.
  6. Click Ok.

The following is an example of a populated Pass Throughs tab: