Configuring free-text search for embedded operation

Set up free-text search for embedded operation for preliminary testing with small amounts of test data. For final testing with larger volumes of data and to prepare for production, set up free-text search for external operation. It is only possible to set up free-text search for embedded operation in development environments.

Set up free-text search for embedded operation on QuickStart

About this task

You can set up free-text search on QuickStart for embedded operation only in a development environment.

Procedure

  1. In Studio Project window, expand configuration > config > solr:
    1. Open solrserver-config.xml.
    2. Verify that the file contains a <solrserver> element that matches the following:
      <solrserver name="embedded" type="embedded">
        <param name="provision" value="true"/>
        <param name="solrroot" value="/opt/gwsolr"/>
      </solrserver>
    3. In the <document> element, change the servername attribute to embedded.
      <document name="policy" archive="false" servername="embedded"/>
  2. Save your changes to the solrserver-config.xml file.
  3. Open a command prompt in the PolicyCenter installation directory and run the following command:
    • gwb packageSolr

What to do next

After completing this procedure, proceed to Enabling free-text search in PolicyCenter.

Set up free-text search for embedded operation on Tomcat

About this task

It is possible to set up free-text search in a development environment on Tomcat for either embedded or external operation. For embedded operation, you must include the gwsolrzip parameter in the solrserver element to specify the absolute path to the pc-gwsolr.zip file in your PolicyCenter home directory.

Procedure

  1. In the Studio Project window, expand configuration > config > solr:
    1. Open solrserver-config.xml.
    2. Verify that the file contains a <solrserver> element that matches the following:
      <solrserver name="embedded" type="embedded">
        <param name="provision" value="true"/>
        <param name="solrroot" value="/opt/gwsolr"/>
        <param name="gwsolrzip" value="/dev/PolicyCenter/solr/pc-gwsolr.zip">
      </solrserver>
    3. In the <document> element, change the servername attribute to embedded.
      <document name="policy" archive="false" servername="embedded"/>
  2. Save your changes to the solrserver-config.xml file.
  3. Open a command prompt in the PolicyCenter installation directory and run the following command:
    • gwb packageSolr

What to do next

After completing this procedure, proceed to Enabling free-text search in PolicyCenter.