Once 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 <installLocation>\OmniQ\lib directories.
You must place the JAR file into every container’s
library folder.
You must add the new parser to the internal set of parsers. Edit the <installLocation>\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 similar to 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 (octal, decimal, hexadecimal, and so on), but the configured instance expects the hexadecimal format.
Because Sybase Search is a distributed system, it is important
the new parsers are configured for the container instance that loads
the Text Manager.