Configuring Sun Master Indexes

Importing Custom Comparison Functions

The Master Index Match Engine is based on a very flexible framework that allows you to define new algorithms in the form of comparison functions that compare field values between two records. You need to import the comparison function into NetBeans to make it available to all master index applications or only the current application.

This section only describes importing custom comparison functions after they have been created. For information about creating a custom comparison function, see Creating Custom Comparators for the Master Index Match Engine, in Understanding the Master Index Match Engine

ProcedureTo Import a Comparison Function

  1. In the Projects window, expand the main master index project.

  2. Right-click Match Engine, and select Import Comparator Plug-in.

  3. In the dialog box that appears, navigate to the location of the plug-in ZIP file.

  4. Select the file containing the plug-in, and then click Open.

  5. Do one of the following:

    • To import the plug-in and make it available to all future master index application, click Yes.

    • To import the plug-in and make it only available to the current master index application, click No.

    The contents of the ZIP file are imported into the Match Engine node and the new comparators are added to the list of comparator definitions in comparatorsList.xml.

  6. In the Match Engine node, navigate to the /lib folder that was added and verify that all of the required files are there.

  7. Open comparatorsList.xml and verify the new comparator definitions are included.