Configuring the search function of the Business console
You can set up the search function in the Decision Center Business console to work with a remote instance of the Apache Solr search engine.
About this task
By default, the search function in the Business console uses an embedded instance of the Apache Solr search engine. Alternatively, you can have the search function work with a remote instance of the search engine, which you can run on another computer, or the same computer but in a dedicated web application.
Property | Description |
---|---|
SearchProvider |
This parameter takes one of the following
values:
|
SolrEmbeddedDataDir | Use this optional parameter to direct the index of the embedded version (SolrEmbedded) to a specific directory on Decision Center. |
SolrRemoteUrl | Use this parameter with SolrRemote to provide the URL of the remote Solr search engine. |
You set the configuration parameters for the search engine in the preferences.properties file for Decision Center. The preferences.properties file must be found in your class path, and can be placed in any package of jrules-teamserver-xxx.ear\decisioncenter.war. The names of the search properties depend on the location of the file, for example with SearchProvider:
- If you place the preferences.properties file in /WEB-INF/classes/com/ibm/rules/decisioncenter/web/search/, the name of the property must be SearchProvider.
- If you place the preferences.properties file in /WEB-INF/classes/com/ibm/rules/decisioncenter/web/, the name of the property must be search.SearchProvider.
See also IlrPropertyManager.
Solr server | Parameter settings |
---|---|
External server The URL of the external
server depends on the installation. For this example, the remote address
of the search engine is |
Set the preferences.properties file as follows:
|
Embedded server In this example, you store the index in the c:/temp/DC-SearchIndex directory on your computer. |
Set the preferences.properties file as follows:
|
If you do not specify a directory for SolrEmbeddedDataDir, Decision Center stores the search index in a temporary
directory that uses the system property denoted by java.io.tmpdir plus
decisioncenter-solr-<ext>, for example:
<temp_dir>/decisioncenter-solr-dir/
.
If you specify a directory for SolrEmbeddedDataDir, the directory and its content persist across server restarts, and the server does not re-index the repository with each restart.
Procedure
To configure the search function to run with a remote instance of the Solr search engine: