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
- Start Guidewire Studio.
- In the Project window, navigate to .
- Double-click solrserver-config.xml to open the file in the editor.
-
In a
<solrserver>definition for an embedded server, set the value of the provision parameter totrue.For example:
<solrserver name="embedded" type="embedded"> <param name="provision" value="true"/> <param name="solrroot" value="c:\opt\gwsolr"/> </solrserver> - Stop the PolicyCenter application, if it is running.
- Open a command prompt window and navigate to the application directory.
-
In the command prompt window, type the following command.
gwb packageSolrThe command rebuilds thepc-gwsolr.zip file inPolicyCenter/solr. -
Start the PolicyCenter
application.
Free-text search deploys the contents of
pc-gwsolr.zip to the directory specified bysolrroot. Files already insolrrootare overwritten by new files frompc-gwsolr.zip.
