Using advanced configuration files for enhanced FTS functionality
The FTSLocaleConfig.xml file references the following advanced files to help you analyze your indexes and searches:
File | Description |
---|---|
indexAnalyzer | Allows you to define external Lucene analyzers for the indexing process. For more information, see http://lucene.apache.org/java/docs/index.html. |
searchAnalyzer | Allows you to define external Lucene analyzers for the searching process. For more information, see http://lucene.apache.org/java/docs/index.html. |
stemmer | Enable the FTSAnalyzer to use the Snowball stemmers from the Snowball project for performing stemming functionality. You can define which stemmer to use for a particular language, or you can define a custom stemmer with the Snowball project tools. For information about the Snowball project, see http://snowballstem.org/. Important: The http://snowball.tartarus.org/ link is deprecated and is listed here for reference. |
To use third-party configuration files
- Configure a third-party configuration jar file, for example, customAnalyzer.jar.
This jar file can contain one or more analyzers, such as indexAnalyzer, searchAnalyzer, and stemmer. Each analyzer should have a specific name, for example, org.myorg.lucene.analysis.EsparantoAnalyzer. Insert the analyzer names in the FTSLocaleConfig.xml file, for example:
<indexAnalyzer>org.myorg.lucene.analysis.EsparantoAnalyzer</indexAnalyzer>
<searchAnalyzer>org.myorg.lucene.analysis.EsparantoAnalyzer</searchAnalyzer>
<stemmer>Esparanto</stemmer>- Make sure that Java can find the jar file that you created in step 1 and perform the following:
- Place the jar file in the fts plug-in directory; by default, the directory is available at C:\Program Files\BMC Software\ARSystem\pluginsvr\fts.
To add the jar to the classpath, edit the pathelement option of the pluginsvr_config.xml file in the fts directory, for example:
<pluginsvr_config>
<port>9998</port>
.
.
.
<plugins>
plugin>
<name>ARSYS.ARF.FTS</name>
<pathelement type="location">C:/Program Files/BMC Software/ARSystem/pluginsvr/fts/ftsplugin _VerNum_.jar</pathelement>
<pathelement type="location">C:/Program Files/BMC Software/ARSystem/pluginsvr/fts/tika\-0.3\-standalone.jar</pathelement>
<pathelement type="location">C:/Program Files/BMC Software/ARSystem/pluginsvr/fts/ *customAnalyzer.jar*
</pathelement>
.
.
.
</plugin>
</plugins>
</pluginsvr_config>
AR System server does not support Full Text Search if you have a read-only database. For more information about using a read-only database, see Using read-only database.