Configure free-text search for external operation

Before you begin

PolicyCenter free-text search requires that you set up a Guidewire Solr Extension instance separate from the server instance that runs your PolicyCenter application.

Note:

The PolicyCenter base configuration presets a number of items of which two are of emphasis here. First, PolicyCenter automatically sets the SOLR_HOME environment variable with a relative path. In a Microsoft Windows context, the application configures the variable in the solr.in.cmd path. In a Linux or Mac context, the application configures the environment variable in the solr.in.sh path. You do not need to set the SOLR_HOME environment variable.

Second, the PolicyCenter base configuration accounts for logging. You do not need to change the logging settings to configure free-text search.

Procedure

  1. On the host where the Guidewire Solr Extension instance for free-text search will reside, 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/pc as the Guidewire Solr home directory name.

  2. Extract file /solr/pc-gwsolr.zip on the PolicyCenter host into the folder you created on the Guidewire Solr Extension host.
  3. Start Guidewire Solr Extension by performing one of the following from the \opt\gwsolr\pc\bin directory:
    • If you want Guidewire Solr Extension to operate in standard fashion, run the following command:
      • solr start -p. In the solr command, the -p option indicates the port number.
    • If you want to access the Guidewire Solr Extension with a remote debugger, run the following command:
      • solr start -p 8983 -a [Debug Arguments]

    As a result, you can connect a remote debugging session through port 8000.

  4. Examine the logs to ensure the Guidewire Solr Extension web application started successfully. Find the logs at \opt\gwsolr\pc\server\logs. One such log file is solr.log.

    The application started successfully if you see a number of log entries related to pc-policy-active.

  5. In a browser, open the administrative user interface for the Guidewire Solr Extension web application by entering the following URL:
    http://hostName:8983/solr
  6. 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.