Difference between revisions of "QPL Solr Search Component Plug-In"

From wiki.searchtechnologies.com
Jump to: navigation, search

For Information on Aspire 3.1 Click Here

m (Protected "QPL Solr Search Component Plug-In" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(No difference)

Revision as of 17:07, 3 March 2017

Feature only available with Aspire Premium

The QPLSearchComponent is a Solr SearchComponent that executes a specified QPL Script. Its config parameters are:

  • defaultField - Default Solr Field.
  • scriptFile - Name of the QPL file to be invoked.
  • isProcessScript - If true, QPL script runs in process() method. If false or not specified, script runs in prepare() method.

It can be added to solrconfig.xml as follows:

 <searchComponent name="qplSearchFirst" class="com.searchtechnologies.qpl.solr.QPLSearchComponent" >
   <str name="scriptFile">search.qpl</str>
   <str name="defaultField">text</str>
   <str name="isProcessScript">false</str> 
 </searchComponent>	

To add a QPLSearchComponent to a requestHandler in solrconfig.xml, use something like the following:

 <arr name="first-components">
   <str>qplSearchFirst</str>
 </arr>