Configure free-text search for Tomcat
Before you begin
Procedure
-
On the host on which the Tomcat instance for free-text search resides, create an installation directory to use as the Guidewire Solr home directory. For example:
- Unix – /opt/gwsolr/pc
- Windows – C:\opt\gwsolr\pc
This topic uses
/opt/gwsolr/pcas the Guidewire Solr home directory name. -
Extract file
/solr/pc-gwsolr.zip on the PolicyCenter host into the folder you created on the Tomcat host. -
Perform the listed steps if either the following are true:
- You extracted
pc-gwsolr.zip to a directory other than/opt/gwsolr/pcin the previous step. - You are using the Microsoft Windows operating system.
-
From the directory on which you installed the Guidewire Solr Extension, open the following file for editing:
- pc-gwsolr/WEB-INF/web.xml
-
Change the value of the
<env-entry-value>entry in the following code to match the directory on which you installed the Guidewire Solr Extension. If you are using the Microsoft Windows operating system, change the value to a Windows path, including the drive designator:<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>C:\opt\gwsolr\pc\solr</env-entry-value> </env-entry> -
Open the following file for editing:
- GWSOLR_HOME/pc/pc-gwsolr.xml
-
Change the value for the
docBaseattribute to match the directory on which you installed the Guidewire Solr Extension. If you are using Windows, include the drive designator.<Context docBase="C:\opt\gwsolr\pc\pc-gwsolr" debug="0" crossContext="true"> - Save your changes.
- You extracted
-
Copy the file c:\opt\gwsolr\pc\pc-gwsolr.xml to the directory
TOMCAT_HOME/conf/Catalina/localhost.
Note: If the Catalina/localhost directory does not exist, you must create it.
-
Change the HTTP port number for Tomcat:
-
Edit the following file:
- TOMCAT_HOME/conf/server.xml
-
Change the
portproperty for the HTTP port value to 8983, as the following example shows.<Connector port="8983" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />The standard port for the Guidewire Solr Extension is 8983.
- Save your changes.
-
Edit the following file:
-
Copy the following logging files from
\opt\gwsolr\pc\logging_jarsto TOMCAT_HOME\lib:Important: Copy only the specified logging files.File name
Description
jcl-over-slf4j-1.7.12.jarJakarta commons logging over SLF4J
log4j.propertiesLog4j properties
log4j-over-slf4j-1.7.12.jarLog4j over SLF4J
slf4j-api-1.7.12.jarSLF4J API
slf4j-ext-1.7.12.jarSLF4J Extensions
slf4j-jdk14-1.7.12.jarSLF4J to Java Logging
-
Start Tomcat by performing one of the following from the TOMCAT_HOME/bin directory:
- If you want Tomcat to operate standard fashion, run the
following command.
- startup
- If you want to access the Guidewire Solr Extension with a
remote debugger, run the following command.
- catalina jpda start
As a result, you can connect a remote debugging session through port 8000.
- If you want Tomcat to operate standard fashion, run the
following command.
-
Examine the log file TOMCAT_HOME
/logs/catalinato ensure the Guidewire Solr Extension web application started successfully.The application started successfully if you see a number of log entries related to
pc-gwsolr. -
In a browser, open the administrative user interface for the Guidewire Solr Extension web application by
entering the following URL:
http://hostName:8983/pc-gwsolr -
Verify that you see links to administrative pages for each entity type that is searchable in PolicyCenter with
free-text search.
For example, click Core Admin to see information for the pc_policy_active core.
What to do next
After completing this procedure, proceed to About the free-text batch load command.
