After you have compiled the new parser class, you must make it available to the system. The easiest way to do this is by adding the class to a Java Archive (JAR) file and placing the JAR file in the install_location\OmniQ\lib directories.
You must place the JAR file into every container’s
library directory.
You must add the new parser to the internal set of parsers. Edit the install_location\OmniQ\config\Parsers.xml configuration file and add a new Parser tag.
For example, a parser that parses user IDs from strings might have a configuration like this:
<Parser identifier=“intUserId_8” class=“com.mycompany.IntParserImpl”> <Param name=“base” value=“16” /> </Parser>
You can load multiple instances of the same class. This example assumes the parser class can parse different integer bases (such as octal, decimal, hexadecimal, and so on), but the configured instance expects the hexadecimal format.
Because Sybase Search is a distributed system, it is important
to configure the new parsers for the container instance that loads
the Text Manager.