Configure the Guidewire Solr Extension for provisioning

About this task

When configuring Guidewire Solr Extension for provisioning during development, you must run packageSolr to rebuild the pc-gwsolr.zip file. You must do so after modifying files in Guidewire Studio but before restarting the PolicyCenter application.

Procedure

  1. Start Guidewire Studio.
  2. In the Project window, navigate to configuration > config > solr.
  3. Double-click solrserver-config.xml to open the file in the editor.
  4. In a <solrserver> definition for an embedded server, set the value of the provision parameter to true.

    For example:

    <solrserver name="embedded" type="embedded">
      <param name="provision" value="true"/>
      <param name="solrroot" value="c:\opt\gwsolr"/>
    </solrserver>
  5. Stop the PolicyCenter application, if it is running.
  6. Open a command prompt window and navigate to the application directory.
  7. In the command prompt window, type the following command.
    gwb packageSolr
    The command rebuilds the pc-gwsolr.zip file in PolicyCenter/solr.
  8. Start the PolicyCenter application.
    Free-text search deploys the contents of pc-gwsolr.zip to the directory specified by solrroot. Files already in solrroot are overwritten by new files from pc-gwsolr.zip.