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
-
In Studio Project window, expand :
- Open solrserver-config.xml.
-
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> -
In the
<document>element, change theservernameattribute toembedded.<document name="policy" archive="false" servername="embedded"/>
- Save your changes to the solrserver-config.xml file.
-
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
-
In the Studio Project window, expand :
-
Open
solrserver-config.xml. -
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> -
In the
<document>element, change theservernameattribute toembedded.<document name="policy" archive="false" servername="embedded"/>
-
Open
- Save your changes to the solrserver-config.xml file.
-
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.
