Free-text search system architecture
The system architecture of the Guidewire free-text search feature comprises the following components:
- The Guidewire PolicyCenter application.
- The Guidewire Solr Extension, a modified version of the Apache Solr full-text search engine.
- The Guidewire free-text batch load command.
- The Free-text Search page on the Internal Tools tab in the PolicyCenter application as an alternative during development to running the free-text batch load command.
The components of the free-text search feature depend on configuration parameters and configuration files in two primary locations: the PolicyCenter home directory and a separate Guidewire Solr home directory.
Guidewire Solr Extension deployment options
- Guidewire Solr Extension can run on a physical host or on a Virtual Machine (VM).
- Guidewire Solr Extension can run on the same host as PolicyCenter. It can also run on a separate host.
- Guidewire Solr Extension can run on a single server or a cluster of servers.
- Guidewire Solr Extension can use a number of host servers that is independent from whether PolicyCenter runs in a clustered configuration or in an unclustered configuration.
In the development environment alone, Guidewire Solr Extension and PolicyCenter can run in an embedded mode. In this mode, the two applications run as one in the same VM. Guidewire does not support embedded mode in a production environment.
Though options 1 through 4 lay out the possible deployments of Guidewire Solr Extension in the production environment, please note two caveats. Guidewire recommends that most customers run Guidewire Solr Extension on a separate physical host from PolicyCenter. Guidewire also recommends that larger customers running either Guidewire Solr Extension or PolicyCenter in a clustered configuration or in high availability also run the other application in a clustered configuration. Doing so avoids the other application becoming a single point of failure or bottleneck.
Free-text search system architecture in a production environment
The following diagram illustrates the system architecture for free-text search if you run PolicyCenter in a production environment. In a production environment, you must configure free-text search for external operation. In a development environment, such a configuration is an option but is not mandatory.
Free-text search system architecture in a development environment
The following diagram illustrates the system architecture for free-text search if you run PolicyCenter in a development environment. In a development environment, you are able to configure free-text search for either external operation or embedded operation.
With embedded operation, the Free-text Search page on the Internal Tools tab is available as an alternative to the free-text batch load command.
Free-text search configuration parameters and files
The components of the free-text search feature depend on configuration parameters and configuration files in two primary locations: the PolicyCenter home directory and a separate Guidewire Solr home directory.
Configuration parameters and files for free-text search in PolicyCenter
- FreeTextSearchEnabled
- A configuration parameter in config.xml, enabling certain
back-end components of free-text search to fully operate. The default value is
false. - EnableDisplayBasicSearchTab
- A script parameter in
script-parameters.xml, enabling the Search Policies Basic screen for free-text search. You define script parameters initially through Studio but administer them on the Script Parameters page of the Administration tab in the application. The script EnableDisplayBasicSearchTab parameter has no effect if the FreeTextSearchEnabled configuration parameter is set tofalse.Note: Set this script parameter tofalsebefore running the free-text search batch load command, and set it back totrueafter the batch command finishes. Setting the parameter tofalseprevents users from performing free-text searches while the batch process runs. - policy-search-config.xml
- Provides detailed configuration of the fields that free-text search extracts from the PolicyCenter database and sends to the full-text search database for indexing and searching.
- solrserver-config.xml
- Configures how PolicyCenter works with the Guidewire Solr Extension, including connection information, and whether the mode of operation is external or embedded.
See also
Configuration files for the Guidewire Solr extension
The following files configure the Guidewire Solr Extension, the full-text search engine that the free-text search feature depends on. These configuration files control how the Guidewire Solr Extension loads data that PolicyCenter sends for indexing and how the Guidewire Solr Extension responds to search requests from PolicyCenter.
- solr.xml – Defines the location in the Guidewire Solr home directory of the core for each searchable entity type in the Guidewire Solr Extension.
- schema.xml – Defines fields of data as known in the Guidewire Solr Extension.
See also
Configuration files for the free-text batch load command
The following files configure the free-text batch load command. The command extracts data directly from the PolicyCenter database through native SQL commands and loads the extracted data into the Guidewire Solr Extension.
- data-config.xml – Specifies the location of the index documents that the free-text batch load command creates for the Guidewire Solr Extension to load. The file also specifies the mapping between fields in the index documents and fields defined in policy-search-config.xml.
- batchload-config-databaseBrand.xml – Specifies working resources for the free-text batch load command. The file also contains the native SQL that the free-text batch load command uses to extract data from the database server.
- batchload.sh/batchload.bat – Runs the free-text batch load command. The file sets the following environment variables:
APP_PREFIX– The designation for PolicyCenter to use in a pathBASE_DIR– The root of the Guidewire Solr home directoryGWSOLR_HOME– The root of the Guidewire Solr Extension home directory, including the path to PolicyCenter filesCONFIGFILE– The batchload-config-databaseBrand.xml file to use
- postprocess.sh/postprocess.bat – Collates and compiles index documents for the Guidewire Solr Extension using data selected from the relational database.
See also
