Configuring Sun Master Indexes

Specifying a Match Engine for the Master Index

Sun Master Index can support different match engines depending on the adapter configured to communicate with the engine. Default classes are provided for using the Master Index Match Engine. You can implement a custom match engine along with custom adapters. The match engine configuration is defined by the matcher-api and matcher-config elements.


Note –

The default adapters for the Master Index Match Engine are com.sun.mdm.index.matching.adapter.SbmeMatcherAdapter and com.sun.mdm.index.matching.adapter.SbmeMatcherAdapterConfig.


ProcedureTo Configure the Match Engine

  1. In the Projects window, expand the Configuration node in the project you want to modify, and then double-click mefa.xml.

    The file opens in the NetBeans XML editor.

  2. Scroll to the matcher-api element in the MatchingConfig section.

  3. Specify the Java class for the matching adapter to use, using the fully qualified class name as shown below.


    <matcher-api>
       <class-name>com.sun.mdm.index.matching.adapter.SbmeMatcherAdapter
       </class-name>
    </matcher-api>
  4. In the matcher-config element, specify the Java class for the configuration of the matching adapter, using the fully qualified class name as shown below.


    <matcher-config>
       <class-name>
        com.sun.mdm.index.matching.adapter.SbmeMatcherAdapterConfig
       </class-name>
    </matcher-config>
  5. Save and close the file.